File: 09-pull-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 (16 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

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

M=`ls Mail/cur/ | wc -l`

mpull --dry-run
assert $? 0 "failed mpull --dry-run"
test -d target/Mail
assert $? 1 "mpull --dry-run did something"
N=`ls -l target/.smd/*.db.txt* 2>/dev/null | wc -l`
assert $N 0 "mpull --dry-run created dbfile"
N=`grep mail-transferred log.pull | sed 's? , ?\n?g' | wc -l`
assert $N $M "dry run not printing the list of mails"