File: 10-replace-header-dry-run

package info (click to toggle)
syncmaildir 1.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,104 kB
  • sloc: ansic: 6,643; sh: 1,780; makefile: 247
file content (15 lines) | stat: -rw-r--r-- 338 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

mpull -t
assert $? 0 "failed mpull -t"
echo DEBUG=true >> target/.smd/config.default

mpull 
assert $? 0 "failed mpull"
cp -r target/Mail target/Mail.backup
sed -i 's/^Subject:.*$/Subject: PIPPO/' Mail/cur/`ls Mail/cur/ | head -n 1`

mpull --dry-run
assert $? 0 "failed mpull --dry-run"
test_eq target/Mail.backup target/Mail