aboutsummaryrefslogtreecommitdiffstats
path: root/tests/01-rename-exists-local/run
blob: 17d8fcc81d7dc5d657da3d9618e27ed31b702571 (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 :