Here is imapsync 2.229 on host ns4.telme.net.br, a netbsd system with 7.5/31.9 free GiB of RAM, 0.00% used by processes. with Perl 5.38.2 and Mail::IMAPClient 3.43 Transfer started at sexta-feira 28 março 2025-03-28 23:03:31 -0300 -03 PID is 5274 my PPID is 22015 Log file is LOG_imapsync/2025_03_28_23_03_31_305_marlon@33tactical.com.br_marlon@33tactical.com.br.txt ( to change it, use --logfile path ; or use --nolog to turn off logging ) Load is unknown on 1 cores Current directory is /home/marlon Real user id is marlon (uid 1094) Effective user id is marlon (euid 1094) $RCSfile: imapsync,v $ $Revision: 2.229 $ $Date: 2022/09/14 18:08:24 $ Command line used, run by /usr/pkg/bin/perl: /usr/pkg/bin/imapsync --host1 imap-vip.uni5.net --user1 marlon@33tactical.com.br --password1 MASKED --host2 localhost --user2 marlon@33tactical.com.br --password2 MASKED --ssl1 --ssl2 --automap --syncinternaldates --subfolder2 --useuid --noexpunge Temp directory is /tmp ( to change it use --tmpdir dirpath ) kill -QUIT 5274 # special behavior: call to sub catch_exit kill -TERM 5274 # special behavior: call to sub catch_exit kill -INT 5274 # special behavior: call to sub catch_reconnect kill -HUP 5274 # special behavior: call to sub catch_print kill -USR1 5274 # special behavior: call to sub toggle_sleep File /tmp/imapsync.pid does not exist PID file is /tmp/imapsync.pid ( to change it, use --pidfile filepath ; to avoid it use --pidfile "" ) Writing my PID 5274 in /tmp/imapsync.pid Writing also my logfile name in /tmp/imapsync.pid : LOG_imapsync/2025_03_28_23_03_31_305_marlon@33tactical.com.br_marlon@33tactical.com.br.txt Modules version list ( use --no-modulesversion to turn off printing this Perl modules list ): Authen::NTLM Not installed CGI Not installed Compress::Zlib 2.204 Crypt::OpenSSL::RSA 0.33 Data::Uniqid Not installed Digest::HMAC_MD5 1.04 Digest::HMAC_SHA1 1.04 Digest::MD5 2.58_01 Encode 3.19 Encode::IMAPUTF7 1.05 File::Copy::Recursive 0.45 File::Spec 3.88 Getopt::Long 2.54 HTML::Entities 3.82 IO::Socket 1.52 IO::Socket::INET 1.52 IO::Socket::INET6 2.73 IO::Socket::IP 0.4101 IO::Socket::SSL 2.085 IO::Tee 0.65 JSON 4.10 JSON::WebToken Not installed LWP 6.77 MIME::Base64 3.16_01 Mail::IMAPClient 3.43 Net::Ping 2.76 Net::SSLeay 1.94 Term::ReadKey 2.38 Test::MockObject Not installed Time::HiRes 1.9775 URI::Escape 5.27 Unicode::String 2.10 Info: will resync flags for already transferred messages. Use --noresyncflags to not resync flags. SSL debug mode level is --debugssl 1 (can be set from 0 meaning no debug to 4 meaning max debug) Host1: SSL default mode is like --sslargs1 "SSL_verify_mode=0", meaning for host1 SSL_VERIFY_NONE, ie, do not check the server certificate. Host1: Use --sslargs1 SSL_verify_mode=1 to have SSL_VERIFY_PEER, ie, check the server certificate. of host1 Host2: SSL default mode is like --sslargs2 "SSL_verify_mode=0", meaning for host2 SSL_VERIFY_NONE, ie, do not check the server certificate. Host2: Use --sslargs2 SSL_verify_mode=1 to have SSL_VERIFY_PEER, ie, check the server certificate. of host2 Info: turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1. Host1: will try to use LOGIN authentication on host1 Host2: will try to use LOGIN authentication on host2 Host1: imap connection timeout is 120 seconds Host2: imap connection timeout is 120 seconds Host1: imap connection keepalive is on on host1. Use --nokeepalive1 to disable it. Host2: imap connection keepalive is on on host2. Use --nokeepalive2 to disable it. Host1: IMAP server [imap-vip.uni5.net] port [993] user [marlon@33tactical.com.br] Host2: IMAP server [localhost] port [993] user [marlon@33tactical.com.br] Host1: connecting and login on host1 [imap-vip.uni5.net] port [993] with user [marlon@33tactical.com.br] Host1 IP address: 191.6.220.7 Local IP address: 181.233.83.58 Host1 banner: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready. Host1 capability before authentication: IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH Host1: imap-vip.uni5.net says it has CAPABILITY for AUTHENTICATE LOGIN Host1: success login on [imap-vip.uni5.net] with user [marlon@33tactical.com.br] auth [LOGIN] or [LOGIN] Host2: connecting and login on host2 [localhost] port [993] with user [marlon@33tactical.com.br] Host2 IP address: 127.0.0.1 Local IP address: 127.0.0.1 Host2 banner: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot ready. Host2 capability before authentication: IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN AUTH Host2: localhost says it has CAPABILITY for AUTHENTICATE LOGIN Host2: success login on [localhost] with user [marlon@33tactical.com.br] auth [LOGIN] or [LOGIN] Host1: state Authenticated Host2: state Authenticated Host1 capability once authenticated: IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS MOVE QUOTA THREAD I18NLEVEL CONTEXT Host2 capability once authenticated: IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE LITERAL+ NOTIFY SPECIAL-USE THREAD I18NLEVEL CONTEXT SNIPPET PREVIEW STATUS Host1: found ID capability. Sending/receiving ID, presented in raw IMAP for now. In order to avoid sending/receiving ID, use option --noid Sending: 4 ID ("name" "imapsync" "version" "2.229" "os" "netbsd" "vendor" "Gilles LAMIRAL" "support-url" "https://imapsync.lamiral.info/" "date" "14-Sep-2022 18:08:24 +0000" "side" "host1") Sent 182 bytes Read: * ID ("name" "Dovecot") 4 OK ID completed (0.001 + 0.000 secs). Host2: found ID capability. Sending/receiving ID, presented in raw IMAP for now. In order to avoid sending/receiving ID, use option --noid Sending: 4 ID ("name" "imapsync" "version" "2.229" "os" "netbsd" "vendor" "Gilles LAMIRAL" "support-url" "https://imapsync.lamiral.info/" "date" "14-Sep-2022 18:08:24 +0000" "side" "host2") Sent 182 bytes Read: * ID ("name" "Dovecot") 4 OK ID completed (0.001 + 0.000 secs). Host2: No QUOTA capability found, skipping it. Host1: Compression is off. Use --compress1 to allow compression on host1 Host2: Compression is off. Use --compress2 to allow compression on host2 Host1: found 5 folders. Host2: found 1 folders. Host1: guessing separator from folder listing: [.] Host1: separator given by NAMESPACE: [.] Host2: guessing separator from folder listing: [/] Host2: separator given by NAMESPACE: [.] Host1: guessing prefix from folder listing: [INBOX.] Host1: prefix given by NAMESPACE: [INBOX.] Host2: guessing prefix from folder listing: [] Host2: prefix given by NAMESPACE: [] Host1: separator and prefix: [.][INBOX.] Host2: separator and prefix: [.][] Including all folders found by default. Use --subscribed or --folder or --folderrec or --include to select specific folders. Use --exclude to unselect specific folders. Host1: Checking wanted folders exist. Use --nocheckfoldersexist to avoid this check (shared of public namespace targeted). Host1: Checking wanted folders are selectable. Use --nocheckselectable to avoid this check. Turned on automapping folders ( use --noautomap to turn off automapping ) Host1: special INBOX.Spam = \Junk ++++ Listing folders All foldernames are presented between brackets like [X] where X is the foldername. When a foldername contains non-ASCII characters it is presented in the form [X] = [Y] where X is the imap foldername you have to use in command line options and Y is the utf8 output just printed for convenience, to recognize it. Host1: folders list (first the raw imap format then the [X] = [Y]): * LIST (\HasChildren) "." INBOX * LIST (\HasNoChildren \UnMarked) "." INBOX.Trash * LIST (\HasNoChildren \UnMarked) "." INBOX.Sent * LIST (\HasNoChildren \UnMarked) "." INBOX.Drafts * LIST (\HasNoChildren \UnMarked \Junk) "." INBOX.Spam 15 OK List completed (0.001 + 0.000 secs). [INBOX] [INBOX.Drafts] [INBOX.Sent] [INBOX.Spam] [INBOX.Trash] Host2: folders list (first the raw imap format then the [X] = [Y]): * LIST (\HasNoChildren) "." INBOX 10 OK List completed (0.001 + 0.000 secs). [INBOX] Checking SEARCH ALL works on both accounts. To avoid that check, use --nochecknoabletosearch Host1: checking if SEARCH ALL works on INBOX Host1: folder [INBOX] has 12 messages mentioned by SELECT Host1: folder [INBOX] has 12 messages found by SEARCH ALL Host1: folder [INBOX] has the same messages count (12) by SELECT and SEARCH ALL Host2: checking if SEARCH ALL works on INBOX Host2: folder [INBOX] has 0 messages mentioned by SELECT Host2: folder [INBOX] has 0 messages found by SEARCH ALL Host2: folder [INBOX] has the same messages count (0) by SELECT and SEARCH ALL Good! SEARCH ALL works on both accounts. Folders sizes before the synchronization. It can take some time. Be patient. You can remove foldersizes listings by using "--nofoldersizes" and "--nofoldersizesatend" but then you will also lose the ETA (Estimation Time of Arrival) given after each message copy. Host1 folder 1/5 [INBOX] Size: 476083 Messages: 12 Biggest: 127119 Host2 folder 1/5 [INBOX] Size: 0 Messages: 0 Biggest: 0 Host2-Host1 -476083 -12 -127119 Host1 folder 2/5 [INBOX.Drafts] Size: 0 Messages: 0 Biggest: 0 Host2 folder 2/5 [Drafts] does not exist yet Host2-Host1 0 0 0 Host1 folder 3/5 [INBOX.Sent] Size: 936 Messages: 1 Biggest: 936 Host2 folder 3/5 [Sent] does not exist yet Host2-Host1 -936 -1 -936 Host1 folder 4/5 [INBOX.Spam] Size: 0 Messages: 0 Biggest: 0 Host2 folder 4/5 [Spam] does not exist yet Host2-Host1 0 0 0 Host1 folder 5/5 [INBOX.Trash] Size: 0 Messages: 0 Biggest: 0 Host2 folder 5/5 [Trash] does not exist yet Host2-Host1 0 0 0 Host1 Nb folders: 5 folders Host2 Nb folders: 5 folders Host1 Nb messages: 13 messages Host2 Nb messages: 0 messages Host1 Total size: 477019 bytes (465.839 KiB) Host2 Total size: 0 bytes (0.000 KiB) Host1 Biggest message: 127119 bytes (124.140 KiB) Host2 Biggest message: 0 bytes (0.000 KiB) Time spent on sizing: 1.1 seconds ++++ Looping on each one of 5 folders to sync ETA: sexta-feira 28 março 2025-03-28 23:03:32 -0300 -03 0 s 13/13 msgs left Folder 1/5 [INBOX] -> [INBOX] Host1: folder [INBOX] has 12 messages in total (mentioned by SELECT) Host2: folder [INBOX] has 0 messages in total (mentioned by SELECT) Host2: folder [INBOX] permanentflags: Host1: folder [INBOX] considering 12 messages Host2: folder [INBOX] considering 0 messages Local cache directory: /tmp/imapsync_cache/imap-vip.uni5.net/marlon@33tactical.com.br/localhost/marlon@33tactical.com.br/INBOX/INBOX ( 109 characters long ) CACHE h1 h2: 0 files Host1: folder [INBOX] selected 12 messages, duplicates 0 Host2: folder [INBOX] selected 0 messages, duplicates 0 msg INBOX/1 {5069} copied to INBOX/1 33.54 msgs/s 166.047 KiB/s 4.950 KiB copied ETA: sexta-feira 28 março 2025-03-28 23:03:32 -0300 -03 0 s 12/13 msgs left msg INBOX/2 {4885} copied to INBOX/2 50.96 msgs/s 247.666 KiB/s 9.721 KiB copied ETA: sexta-feira 28 março 2025-03-28 23:03:32 -0300 -03 0 s 11/13 msgs left msg INBOX/3 {17926} copied to INBOX/3 45.66 msgs/s 414.393 KiB/s 27.227 KiB copied ETA: sexta-feira 28 março 2025-03-28 23:03:32 -0300 -03 0 s 10/13 msgs left msg INBOX/4 {85337} copied to INBOX/4 43.46 msgs/s 1.173 MiB/s 110.563 KiB copied ETA: sexta-feira 28 março 2025-03-28 23:03:32 -0300 -03 0 s 9/13 msgs left msg INBOX/5 {85344} copied to INBOX/5 43.45 msgs/s 1.645 MiB/s 193.907 KiB copied ETA: sexta-feira 28 março 2025-03-28 23:03:32 -0300 -03 0 s 8/13 msgs left msg INBOX/6 {27422} copied to INBOX/6 18.64 msgs/s 685.715 KiB/s 220.687 KiB copied ETA: sexta-feira 28 março 2025-03-28 23:03:33 -0300 -03 0 s 7/13 msgs left msg INBOX/7 {127119} copied to INBOX/7 17.08 msgs/s 841.310 KiB/s 344.826 KiB copied ETA: sexta-feira 28 março 2025-03-28 23:03:33 -0300 -03 0 s 6/13 msgs left msg INBOX/8 {19604} copied to INBOX/8 12.87 msgs/s 585.646 KiB/s 363.971 KiB copied ETA: sexta-feira 28 março 2025-03-28 23:03:33 -0300 -03 0 s 5/13 msgs left msg INBOX/9 {22055} copied to INBOX/9 10.82 msgs/s 463.607 KiB/s 385.509 KiB copied ETA: sexta-feira 28 março 2025-03-28 23:03:33 -0300 -03 0 s 4/13 msgs left msg INBOX/10 {12088} copied to INBOX/10 11.37 msgs/s 451.828 KiB/s 397.313 KiB copied ETA: sexta-feira 28 março 2025-03-28 23:03:33 -0300 -03 0 s 3/13 msgs left msg INBOX/11 {28835} copied to INBOX/11 10.07 msgs/s 389.448 KiB/s 425.473 KiB copied ETA: sexta-feira 28 março 2025-03-28 23:03:33 -0300 -03 0 s 2/13 msgs left msg INBOX/12 {40399} copied to INBOX/12 10.81 msgs/s 418.851 KiB/s 464.925 KiB copied ETA: sexta-feira 28 março 2025-03-28 23:03:33 -0300 -03 0 s 1/13 msgs left ETA: sexta-feira 28 março 2025-03-28 23:03:33 -0300 -03 0 s 1/13 msgs left Folder 2/5 [INBOX.Drafts] -> [Drafts] Host1: folder [INBOX.Drafts] has 0 messages in total (mentioned by SELECT) Creating folder [Drafts] on host2 Created folder [Drafts] on host2 Host2: folder [Drafts] has 0 messages in total (mentioned by SELECT) Host2: folder [Drafts] permanentflags: Host2: Subscribing to folder Drafts Host1: folder [INBOX.Drafts] considering 0 messages Host2: folder [Drafts] considering 0 messages Local cache directory: /tmp/imapsync_cache/imap-vip.uni5.net/marlon@33tactical.com.br/localhost/marlon@33tactical.com.br/INBOX/Drafts/Drafts ( 117 characters long ) CACHE h1 h2: 0 files Host1: folder [INBOX.Drafts] selected 0 messages, duplicates 0 Host2: folder [Drafts] selected 0 messages, duplicates 0 ETA: sexta-feira 28 março 2025-03-28 23:03:33 -0300 -03 0 s 1/13 msgs left Folder 3/5 [INBOX.Sent] -> [Sent] Host1: folder [INBOX.Sent] has 1 messages in total (mentioned by SELECT) Creating folder [Sent] on host2 Created folder [Sent] on host2 Host2: folder [Sent] has 0 messages in total (mentioned by SELECT) Host2: folder [Sent] permanentflags: Host2: Subscribing to folder Sent Host1: folder [INBOX.Sent] considering 1 messages Host2: folder [Sent] considering 0 messages Local cache directory: /tmp/imapsync_cache/imap-vip.uni5.net/marlon@33tactical.com.br/localhost/marlon@33tactical.com.br/INBOX/Sent/Sent ( 113 characters long ) CACHE h1 h2: 0 files Host1: folder [INBOX.Sent] selected 1 messages, duplicates 0 Host2: folder [Sent] selected 0 messages, duplicates 0 msg INBOX.Sent/1 {936} copied to Sent/1 11.11 msgs/s 398.067 KiB/s 465.839 KiB copied ETA: sexta-feira 28 março 2025-03-28 23:03:33 -0300 -03 0 s 0/13 msgs left ETA: sexta-feira 28 março 2025-03-28 23:03:33 -0300 -03 0 s 0/13 msgs left Folder 4/5 [INBOX.Spam] -> [Spam] Host1: folder [INBOX.Spam] has 0 messages in total (mentioned by SELECT) Creating folder [Spam] on host2 Created folder [Spam] on host2 Host2: folder [Spam] has 0 messages in total (mentioned by SELECT) Host2: folder [Spam] permanentflags: Host1: folder [INBOX.Spam] considering 0 messages Host2: folder [Spam] considering 0 messages Local cache directory: /tmp/imapsync_cache/imap-vip.uni5.net/marlon@33tactical.com.br/localhost/marlon@33tactical.com.br/INBOX/Spam/Spam ( 113 characters long ) CACHE h1 h2: 0 files Host1: folder [INBOX.Spam] selected 0 messages, duplicates 0 Host2: folder [Spam] selected 0 messages, duplicates 0 ETA: sexta-feira 28 março 2025-03-28 23:03:33 -0300 -03 0 s 0/13 msgs left Folder 5/5 [INBOX.Trash] -> [Trash] Host1: folder [INBOX.Trash] has 0 messages in total (mentioned by SELECT) Creating folder [Trash] on host2 Created folder [Trash] on host2 Host2: folder [Trash] has 0 messages in total (mentioned by SELECT) Host2: folder [Trash] permanentflags: Host2: Subscribing to folder Trash Host1: folder [INBOX.Trash] considering 0 messages Host2: folder [Trash] considering 0 messages Local cache directory: /tmp/imapsync_cache/imap-vip.uni5.net/marlon@33tactical.com.br/localhost/marlon@33tactical.com.br/INBOX/Trash/Trash ( 115 characters long ) CACHE h1 h2: 0 files Host1: folder [INBOX.Trash] selected 0 messages, duplicates 0 Host2: folder [Trash] selected 0 messages, duplicates 0 ETA: sexta-feira 28 março 2025-03-28 23:03:33 -0300 -03 0 s 0/13 msgs left ++++ End looping on each folder Folders sizes after the synchronization. You can remove this foldersizes listing by using "--nofoldersizesatend" Host1 folder 1/5 [INBOX] Size: 476083 Messages: 12 Biggest: 127119 Host2 folder 1/5 [INBOX] Size: 476083 Messages: 12 Biggest: 127119 Host2-Host1 0 0 0 Host1 folder 2/5 [INBOX.Drafts] Size: 0 Messages: 0 Biggest: 0 Host2 folder 2/5 [Drafts] Size: 0 Messages: 0 Biggest: 0 Host2-Host1 0 0 0 Host1 folder 3/5 [INBOX.Sent] Size: 936 Messages: 1 Biggest: 936 Host2 folder 3/5 [Sent] Size: 936 Messages: 1 Biggest: 936 Host2-Host1 0 0 0 Host1 folder 4/5 [INBOX.Spam] Size: 0 Messages: 0 Biggest: 0 Host2 folder 4/5 [Spam] Size: 0 Messages: 0 Biggest: 0 Host2-Host1 0 0 0 Host1 folder 5/5 [INBOX.Trash] Size: 0 Messages: 0 Biggest: 0 Host2 folder 5/5 [Trash] Size: 0 Messages: 0 Biggest: 0 Host2-Host1 0 0 0 Host1 Nb folders: 5 folders Host2 Nb folders: 5 folders Host1 Nb messages: 13 messages Host2 Nb messages: 13 messages Host1 Total size: 477019 bytes (465.839 KiB) Host2 Total size: 477019 bytes (465.839 KiB) Host1 Biggest message: 127119 bytes (124.140 KiB) Host2 Biggest message: 127119 bytes (124.140 KiB) Time spent on sizing: 0.4 seconds ++++ Statistics Transfer started on : sexta-feira 28 março 2025-03-28 23:03:31 -0300 -03 Transfer ended on : sexta-feira 28 março 2025-03-28 23:03:34 -0300 -03 Transfer time : 2.7 sec Folders synced : 5/5 synced Messages transferred : 13 Messages skipped : 0 Messages found duplicate on host1 : 0 Messages found duplicate on host2 : 0 Messages found crossduplicate on host2 : 0 Messages void (noheader) on host1 : 0 Messages void (noheader) on host2 : 0 Messages found in host1 not in host2 : 0 messages Messages found in host2 not in host1 : 0 messages Messages deleted on host1 : 0 Messages deleted on host2 : 0 Total bytes transferred : 477019 (465.839 KiB) Total bytes skipped : 0 (0.000 KiB) Message rate : 4.8 messages/s Average bandwidth rate : 171.2 KiB/s Reconnections to host1 : 0 Reconnections to host2 : 0 Memory consumption at the end : 176.7 MiB (*time 0.1 MiB*h) (started with 166.9 MiB) Load end is : unknown on 1 cores CPU time and %cpu : 2.15 sec 79.0 %cpu 79.0 %allcpus Biggest message transferred : 127119 bytes (124.140 KiB) Memory/biggest message ratio : 1457.6 Start difference host2 - host1 : -13 messages, -477019 bytes (-465.839 KiB) Final difference host2 - host1 : 0 messages, 0 bytes (0.000 KiB) The sync is strict, all 0 identified messages in host2 are on host1. Detected 0 errors Check if a new imapsync release is available by adding --releasecheck Homepage: https://imapsync.lamiral.info/ Exiting with return value 0 (EX_OK: successful termination) 0/50 nb_errors/max_errors PID 5274 Removing pidfile /tmp/imapsync.pid Log file is LOG_imapsync/2025_03_28_23_03_31_305_marlon@33tactical.com.br_marlon@33tactical.com.br.txt ( to change it, use --logfile filepath ; or use --nolog to turn off logging )