aboutsummaryrefslogtreecommitdiffstats
path: root/tests/01-rename-exists-local/run
blob: d82a0a40edb83e3e06f0511ce872bf5963abd9aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
doveadm -u "local"  mailbox create "root.from" "root.from.child" "t.o"
doveadm -u "remote" mailbox create "root\\from" "root\\from\\child"

interimap
check_mailbox_list

# delete a mailbox on the remote server, then try to use it as target for --rename
doveadm -u "remote" mailbox delete "t\\o"

! interimap --rename "root.from" "t.o"
xgrep -Fx 'local: ERROR: Mailbox t.o exists. Run `interimap --target=local --delete t.o` to delete.' <"$STDERR"

# vim: set filetype=sh :