File: 24-local-translator

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 (26 lines) | stat: -rw-r--r-- 778 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
#!/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=Mail >> target/.smd/config.default
echo "MAILBOX_REMOTE='MyMail/'" >> 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/MyMail

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

mkdir -p target/Mail/.foo.bar
cp -r target/Mail/cur target/Mail/.foo.bar/

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