1
0
mirror of https://github.com/imapsync/imapsync.git synced 2024-11-17 00:02:29 +01:00
imapsync/FAQ.d/FAQ.Emptying.txt
Nick Bebout 8d76e44c5e 1.836
2017-09-23 16:54:48 -05:00

37 lines
1.2 KiB
Plaintext

#!/bin/cat
$Id: FAQ.Emptying.txt,v 1.5 2017/01/06 14:11:13 gilles Exp gilles $
This documentation is also at http://imapsync.lamiral.info/#doc
=======================================================================
Imapsync tip to empty an account.
=======================================================================
=======================================================================
Q. How to delete all emails of all folders of an account with imapsync?
R. Use the same account on both sides with option --delete
--noexpungeaftereach
Option --noexpungeaftereach is just to speed up the deletion.
Example:
./imapsync \
--host1 test.lamiral.info --user1 test --password1 secret \
--host2 test.lamiral.info --user2 test --password2 secret \
--delete --noexpungeaftereach
=======================================================================
Q. How to delete all folders of an account with imapsync?
R. Use an already empty account as source and sync this account
to the account you want to clear, with --delete2folders
Example:
./imapsync ... --delete2folders --foldersizes
=======================================================================
=======================================================================