File: 27-db-mismatch

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 (21 lines) | stat: -rw-r--r-- 380 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/bash


msync 1

test_eq Mail target/Mail 

cp -r target/Mail target/Mail.bak

# altering the bd
sed -i 's/52/35/' .smd/test__Mail.db.txt

mv Mail/cur/`ls Mail/cur/ | head -n 1` Mail/cur/moved_here

msync 2

test_eq target/Mail.bak target/Mail
assert $? 0 "altering mailbox even if db mismatch"

N=`grep TAGS log.client.* | wc -l`
assert $N 1 "spitting tags more than once"