File: 29-copybody-in-newdir

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 (19 lines) | stat: -rw-r--r-- 318 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
#!/bin/bash

msync 1

test_eq Mail target/Mail 

mkdir -p Mail/foo/cur
mkdir -p Mail/foo/tmp
mkdir -p Mail/foo/new

cp Mail/cur/`ls Mail/cur | head -n 1` Mail/foo/new
sed -i 's/^Subject:.*/Subject: XXX/' Mail/foo/new/*

msync 2

test_eq Mail target/Mail
test -d target/Mail/foo/new
assert $? 0 "not creating foo/new"