Imapsync Panel needs your love and QA

are you referring to ???

 --expunge1 is optional. It deletes messages marked \Deleted on host1.
Imapsync syncs messages with all their flags, Gmail takes the messages
marked \Deleted but deletes or moves them just after.
Option --expunge1 really removes messages marked \Deleted on host1 
so they are not synced at all.

No, I’m referring to the --gmail1 and --gmail2 flags, which designate the source and destination accounts, respectively, as Gmail.

the question is Q. How to synchronize from Gmail to Gmail?
the answer is

R. Use the following example:

imapsync  \
           --user1 account1@gmail.com \
           --password1 gmailsecret1 \
           --user2 account2@gmail.com \
           --password2 gmailsecret2 \
           --gmail1 --gmail2 

if I understand correctly it is to sync gmail to gmail, we have developped this UI to fetch a remote IMAP account to NethServer, we did not designed to be a full imapsync UI

for a webUI you have

https://imapsync.lamiral.info/X/
https://tools.controlpanel.si/imapsync/

No, the question is How to synchronize from Gmail to XXX? And the answer is:

R. Use this example:

imapsync \
           --user1 foo@gmail.com \
           --password1 gmailsecret \
           --host2 localhost \
           --user2 tata \
           --gmail1

Or, replacing what does --gmail1 (values are from imapsync 1.970):

imapsync \
           --host1 imap.gmail.com \
           --ssl1 \
           --user1 foo@gmail.com \
           --password1 gmailsecret \
           --host2 localhost \
           --user2 tata \
           --password2 tatasecret \
           --maxbytespersecond 40_000 \
           --maxbytesafter 2_500_000_000
           --automap \
           --maxsleep 2 \
           --skipcrossduplicates \
           --useheader="X-Gmail-Received" \
           --useheader "Message-Id" \
           --regextrans2 "s,\[Gmail\].,," \
           --folderlast  "[Gmail]/All Mail"

this has not been implemented, please break it and come back with what you need

What about create a new topic on #announcements category?
Feel free to create it so I can edit afterwards

1 Like

yep the topic #announcements category already exists, it should be better I think

1 Like

Oh that’s a great addition really ! I used it to migrate users to NS some times ago I wish it existed at that time.

I remember that I needed some switch to add date and time to Headers for sent messages or something. I’ll have a look to my notes.

Matthieu G. (en mode mobile)

2 Likes

Leave this here I will create a new topic next week with additional info.

1 Like

I was able to migrate successfully from one remote mail server to a locally hosted one. First thought of mine was “hey, it works right out of the box :grinning:.” Emails came over without a problem and immediately were populating in SOGo for me.

Possible future feature request - scheduling & email notification updates. I know this really isn’t designed to be a backup-like setup but it would be highly useful if there were some scheduling feature to run a group/all/single user at a given time interval and then have an email notification sent out with the results.

2 Likes

can this transfer emails from nethserver to another server running emails?

The utility might, I don’t think the implementation here does. I believe this setup can take any IMAP source and import it into a defined email account; Email Source ==> account@NethServer via Imapsync
but you cannot push emails from account@NethServer ==> user@gmail.com(or some other email provider).

2 Likes

The switch was —add-header
https://imapsync.lamiral.info/FAQ.d/FAQ.Use_addheader.txt

1 Like

Could you explain why you needed it, I never heard nor needed this flag for imapsync.

If I remember correctly I had an issue with some messages not synced because of headers used by imapsync that were missing for sent items.

1 Like

cc @nrauso

Never encountered such an issue, but it could be interesting to add this feature! :slight_smile:

2 Likes

17 posts were split to a new topic: Imapsync: synchronize the trash to a new server or not

time to close this topic :smiley:

1 Like