Hi,

I have a non-typical use case where I need to free up over 20 GB's of space on 
a server, all taken up by approx 100k mail messages in a given email account 
(IMAP),

Step 0) What I have done so far is to Pull from Master (remote) to Slave 
(local) all of the emails. So I have them locally.
Please see Step 0 in my config posted below.

Step 1) I now need to delete from the server ALL of these emails from the 
Master--as of today; in order to create an extra 20 GB's of available storage 
space.

* Bulk deleting 100k email messages:
I do not think it is a good idea for me to try to use mbsync to delete these on 
Master.  But perhaps it is the best way?

What I plan to do, unless someone here has a better idea. is to SSH into server 
and just use "rm -f *" inside of "Inbox/cur" for the email account (Master).
I am not sure how mbsync will then "see" these changes.  It seems to depend on 
the value set for "Sync" inside config file.

Step 2) Once all emails have been deleted from Master, as of tomorrow, start 
again syncing with mbsync in such a way that a) no local emails pulled from 
Master  (in Step 0 above) but then deleted from server (Step1) ever get removed 
(marked as deleted or even worse, expunged) from Slave (or local).

Additionally, all new emails received on Master from tomorrow (after the 
deletion in Step1) should again sync "normally" especially if I delete one 
manually with a regular IMAP4 MUA (which would not be using the local cache of 
emails since I have to read emails from various locations) and which would need 
to be deleted in Slave (local).

Config used for Step 0, then no idea for Step 1 (but will probably use a 
different method unless suggested I still use mbsync for bul deletion) and what 
I have tested for Step 2).  I am really not sure the Step 2 config best suita 
my objective.... 

Any help, feedback would be appreciated.

# --------------------------------

IMAPAccount      example
Host             mail.domain.com
User             exam...@domain.com
Pass             "*****************"
SSLType          IMAPS
CertificateFile  ~/mail.domain.com.pem

IMAPStore  example-remote
Account    example

MaildirStore  example-local
Path          /mail/domain/mbexam...@domain.com/
Inbox         /mail/domain/mbexam...@domain.com/Inbox
Flatten       .

Channel   example
Master    :example-remote:
Slave     :example-local:
Patterns *


# Step 0 (this has already completed, I believe successfully, I seem to have 
the mails and be able to read them using Mutt.)
Create    Slave
Expunge   Slave
Sync      Pull

# Step 1 - delete 100k emails; not sure how will do this

# Step 2
# Create    Slave
# Expunge   None
# Sync      PullNew




 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to