File: 22-local-pull

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 (28 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

mpull -t
assert $? 0 "failed mpull -t"
echo DEBUG=true >> target/.smd/config.default
echo SERVERNAME=localhost >> target/.smd/config.default
echo SMDCLIENTOPTS=-l >> target/.smd/config.default
echo MAILBOX= >> target/.smd/config.default
echo MAILBOX_LOCAL=MailBK >> target/.smd/config.default
echo MAILBOX_REMOTE=Mail >> target/.smd/config.default
echo "TRANSLATOR_RL=\"smd-translate -m move -d RL default\"" >> target/.smd/config.default
echo "TRANSLATOR_LR=\"smd-translate -m move -d LR default\"" >> target/.smd/config.default

mv Mail target/

mcheck

mpull
assert $? 0 "failed mpull"
test_eq target/Mail target/MailBK 

mpull
assert $? 0 "failed 2nd mpull"
test_eq target/Mail target/MailBK

mpush
assert $? 0 "failed mpush"
test_eq target/Mail target/MailBK