Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup mailbox: how to? (do not delete on 2) #410

Open
fcorbelli opened this issue Aug 12, 2023 · 1 comment
Open

Backup mailbox: how to? (do not delete on 2) #410

fcorbelli opened this issue Aug 12, 2023 · 1 comment
Assignees
Labels
Backup Backup issues Deletions Deletions issues

Comments

@fcorbelli
Copy link

I am having trouble figuring out if it is possible to use imapsync as a backup method, and not a synchronization procedure (like here #65)

The goal to be achieved is to copy all e-mail 1 to an account 2
If a message is deleted from 1 it should NOT be deleted from 2
2 will then be, in essence, a historical archive of all messages from 1

But this example does not work.
When a message is Thunderbird-deleted from 1, it will be deleted (after run) from 2, even if --noexpunge2 and --nouidexpunge2

imapsync 
-tls1 
--host1 imap.myemail.com 
--user1 pippo@myemail.com 
--password1 thegoodpassword1 

-tls2 
--host2 192.168.0.2 
--user2 pippo@posta.locale 
--password2 thegoodpassword2 
--nofoldersizesatend  
--noexpunge2 
--nouidexpunge2

Is it possible to avoid this behavior?

Thank you

@gilleslamiral
Copy link
Member

Try this, it removes the \DELETED flag, if any:

Windows:   imapsync.exe ... --regexflag "s/\\DELETED//gi" 
Unix:      imapsync ...     --regexflag 's/\\DELETED//gi' 

@gilleslamiral gilleslamiral self-assigned this Dec 11, 2023
@gilleslamiral gilleslamiral added Deletions Deletions issues Backup Backup issues labels Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backup Backup issues Deletions Deletions issues
Projects
None yet
Development

No branches or pull requests

2 participants