imapsync/FAQ.d/FAQ.Emptying.txt
Nick Bebout 62531f58cd 1.920
2019-07-02 18:17:46 -05:00

38 lines
1.3 KiB
Text

#!/bin/cat
$Id: FAQ.Emptying.txt,v 1.6 2018/05/24 11:34:30 gilles Exp gilles $
This documentation is also available online at
https://imapsync.lamiral.info/FAQ.d/
https://imapsync.lamiral.info/FAQ.d/
=======================================================================
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
=======================================================================
=======================================================================