File: 06-replace-header-already-ok

package info (click to toggle)
syncmaildir 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,188 kB
  • sloc: ansic: 6,321; sh: 1,995; makefile: 232; xml: 14
file content (21 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh


msync 1

sed -i 's/^Subject:.*$/Subject: PIPPO/' Mail/cur/`ls Mail/cur/ | head -n 1`
sed -i 's/^Subject:.*$/Subject: PIPPO/' target/Mail/cur/`ls Mail/cur/ | head -n 1`
test_eq Mail target/Mail 

msync 2

test_eq Mail target/Mail 
X=`grep '^REPLACEHEADER ' log.s2c | wc -l`
assert $X 1 "missing REPLACEHEADER in s2c"

X=`grep '^GETHEADER ' log.c2s | wc -l`
assert $X 0 "GETHEADER present in c2s, should not"

X=`grep '^COMMIT$' log.c2s | wc -l`
assert $X 1 "missing COMMIT in c2s"