{"id":19776030,"url":"https://github.com/mendel5/imapsync","last_synced_at":"2026-02-14T00:38:05.929Z","repository":{"id":110279688,"uuid":"376576027","full_name":"mendel5/imapsync","owner":"mendel5","description":"How to install and use imapsync on Linux Mint for free (no purchase)","archived":false,"fork":false,"pushed_at":"2021-08-24T14:10:27.000Z","size":270,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-22T17:55:21.824Z","etag":null,"topics":["email","guide","how-to","howto","imap","imapsync","sync"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mendel5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-13T15:22:29.000Z","updated_at":"2023-10-23T05:19:37.000Z","dependencies_parsed_at":"2023-06-10T12:00:46.437Z","dependency_job_id":null,"html_url":"https://github.com/mendel5/imapsync","commit_stats":null,"previous_names":["mendel5/imapsync"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mendel5/imapsync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendel5%2Fimapsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendel5%2Fimapsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendel5%2Fimapsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendel5%2Fimapsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mendel5","download_url":"https://codeload.github.com/mendel5/imapsync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendel5%2Fimapsync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29426294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T22:20:51.549Z","status":"ssl_error","status_checked_at":"2026-02-13T22:20:49.838Z","response_time":78,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email","guide","how-to","howto","imap","imapsync","sync"],"created_at":"2024-11-12T05:18:27.814Z","updated_at":"2026-02-14T00:38:05.892Z","avatar_url":"https://github.com/mendel5.png","language":null,"readme":"# imapsync-how-to\nHow to install and use imapsync on Linux Mint for free (no purchase)\n\n## Intro\n\nOfficial links:\n- https://imapsync.lamiral.info/\n- https://github.com/imapsync/imapsync\n- https://github.com/imapsync/imapsync/blob/master/INSTALL.d/INSTALL.Ubuntu.txt\n- https://github.com/imapsync/imapsync/blob/master/FAQ.d/FAQ.Security.txt\n\n## Installation\n\nOperating system: Linux Mint 20.1 Cinnamon\n\nPress `Ctrl` + `Alt` + `T` to open a terminal.\n\nExecute the following commands:\n\n```\nsudo apt update\n\nsudo apt upgrade\n\nsudo apt install git make gcc\n\nsudo apt install libauthen-ntlm-perl libclass-load-perl libcrypt-ssleay-perl libdata-uniqid-perl libdigest-hmac-perl libdist-checkconflicts-perl libencode-imaputf7-perl libfile-copy-recursive-perl libfile-tail-perl libio-compress-perl libio-socket-inet6-perl libio-socket-ssl-perl libio-tee-perl libmail-imapclient-perl libmodule-scandeps-perl libnet-dbus-perl libnet-ssleay-perl libpar-packer-perl libreadonly-perl libregexp-common-perl libsys-meminfo-perl libterm-readkey-perl libtest-fatal-perl libtest-mock-guard-perl libtest-mockobject-perl libtest-pod-perl libtest-requires-perl libtest-simple-perl libunicode-string-perl liburi-perl libtest-nowarnings-perl libtest-deep-perl libtest-warn-perl make cpanminus libcrypt-openssl-rsa-perl libjson-webtoken-perl libpackage-stash-xs-perl\n\ncd ~/Downloads/\n\ngit clone https://github.com/imapsync/imapsync\n\ncd imapsync/\n\nsudo make install\n\n./imapsync\n\n./imapsync --testslive --releasecheck\n\n```\n\nNext steps:\n- https://imapsync.lamiral.info/#doc\n\n## Usage\n\nCommand in one line:\n```\n# paste command here\n```\n\nAll parameters explained:\n```\n./imapsync # Call the executable in the current directory\n--dry # Perform a dry run, meaning that the commands are shown but not actually executed\n--host1 'test1.lamiral.info' # Domain of the source IMAP account (host1)\n--port1 993 # Port of the source IMAP domain (host1)\n--user1 'source-user@source-domain.com' # Username of the source IMAP account (host1)\n--password1 'secret1' # Password of the source IMAP account (host1)\n--host2 'test2.lamiral.info' # Domain of the target IMAP account (host2)\n--port2 993 # Port of the target IMAP domain (host2)\n--user2 'target-user@target-domain.com' # Username of the target IMAP account (host2)\n--password2 'secret2' # Password for the target IMAP account (host2)\n--ssl1 # Force the usage of SSL/TLS (?) for the connection to host1, please refer to the section 'Encryption' below\n--sslargs1 SSL_verify_mode=1 # Checks whether the SSL/TLS certificate of host1 is valid (if 1)\n--sslargs1 SSL_version=TLSv1_2 # Set the encryption protocol (SSL/TLS) to host1 (source) to a specific version, in this case TLS1.2\n--ssl2 # Force the usage of SSL/TLS (?) for the connection to host2, please refer to the section 'Encryption' below\n--sslargs2 SSL_verify_mode=1 # Checks whether the SSL/TLS certificate of host2 is valid (if 1)\n--sslargs2 SSL_version=TLSv1_2 # Set the encryption protocol (SSL/TLS) to host2 (target) to a specific version, in this case TLS1.2\n\n--addheader # imapsync creates a message header for e-mails that lack a message header\n--expunge1 # Expunge messages on host1 just before syncing a folder\n--subscribeall # Subscribe to the folders transferred to host2 even if they are not subscribed on host1\n\n--delete2 # Delete all emails on host2 (target)\n--delete2folders # Delete all folders on host2 (target)\n\n--debugssl 4 # Degree of verbosity of the ssl debug statements, available from 0 (off) to 4 (maximum), standard is 1\n\n# Note: the line breaks and comments have to be removed. The whole command has to be on a single line.\n```\n\n## Encryption\n\nRegarding security with encryption in transit:\n- imapsync offers two parameters for encryption in transit, `--ssl` and `--tls` (with a suffix of `1` or `2` for the host). It's not totally clear which of these commands does what in terms of encryption.\n- In IMAP transfers, there are two encryption options, `SSL/TLS` and `STARTTLS`. Encryption with `SSL/TLS` is preferred because it is more secure than `STARTTLS` (see links below).\n- As far as the author knows, `--ssl` in imapsync refers to IMAP's `SSL/TLS` and imapsync's `--tls` refers to IMAP's `STARTTLS`.\n- Therefore imapsync's `--ssl` parameter is to be preferred over imapsync's `--tls` parameter.\n- This is confusing because the TLS encryption protocol is the successor of the SSL encryption protocol and the modern TLS is generally preferred over the older SSL. But since in this case imapsync's parameters seem to refer to the IMAP terms and not the enryption protocol terms, there is a different meaning.\n\n## Other\n\nLinks:\n- https://blog.wydler.eu/2020/02/05/imapsync-installieren-und-nutzen/ - 2020 DE\n- https://marketmix.com/de/imapsync-emailkonten-auf-neuen-server-umziehen/ - 2016 DE\n- https://www.haybach.com/imapsync/doc/GOOD_PRACTICES.html - 2018 EN\n- https://tecadmin.net/use-imapsync-on-ubuntu/ - 2021 EN\n- https://www.systutorials.com/docs/linux/man/1-imapsync/\n- https://github.com/imapsync/imapsync/blob/master/INSTALL.d/INSTALL.Debian.txt\n- https://wiki.zimbra.com/wiki/Guide_to_imapsync\n- https://pagure.io/imapsync\n- https://imapsync.lamiral.info/imapsync\n- https://serverfault.com/questions/523804/is-starttls-less-safe-than-tls-ssl\n- https://mailtrap.io/blog/starttls-ssl-tls/\n- https://www.fastmail.help/hc/en-us/articles/360058753834-SSL-TLS-and-STARTTLS\n- https://www.privacy-handbuch.de/handbuch_31c.htm\n- https://hub.docker.com/r/gilleslamiral/imapsync/ - imapsync is also available for Docker at Docker Hub\n\n## Output: imapsync help\n\n```\n./imapsync --help\n\nName:\n\n imapsync - Email IMAP tool for syncing, copying, migrating and archiving\n email mailboxes between two imap servers, one way, and without duplicates.\n\nVersion:\n\n This documentation refers to Imapsync $Revision: 1.977 $\n\nUsage:\n\n  To synchronize the source imap account\n    \"test1\" on server \"test1.lamiral.info\" with password \"secret1\"\n  to the destination imap account\n    \"test2\" on server \"test2.lamiral.info\" with password \"secret2\"\n  do:\n\n   imapsync \\\n    --host1 test1.lamiral.info --user1 test1 --password1 secret1 \\\n    --host2 test2.lamiral.info --user2 test2 --password2 secret2\n\nOptions:\n\n  usage: imapsync [options]\n\n The standard options are the six values forming the credentials. Three\n values on each side are needed in order to log in into the IMAP servers.\n These six values are a host, a username, and a password, two times.\n\n Conventions used in the following descriptions of the options:\n\n  str means string\n  int means integer\n  reg means regular expression\n  cmd means command\n\n  --dry               : Makes imapsync doing nothing for real, just print what\n                        would be done without --dry.\n\nOptions/credentials:\n\n  --host1        str  : Source or \"from\" imap server.\n  --port1        int  : Port to connect on host1.\n                        Optional since default ports are the\n                        well known ports imap/143 or imaps/993.\n  --user1        str  : User to login on host1.\n  --password1    str  : Password for the user1.\n\n  --host2        str  : \"destination\" imap server.\n  --port2        int  : Port to connect on host2. Optional\n  --user2        str  : User to login on host2.\n  --password2    str  : Password for the user2.\n\n  --showpasswords     : Shows passwords on output instead of \"MASKED\".\n                        Useful to restart a complete run by just reading\n                        the command line used in the log,\n                        or to debug passwords.\n                        It's not a secure practice at all.\n\n  --passfile1    str  : Password file for the user1. It must contain the\n                        password on the first line. This option avoids showing\n                        the password on the command line like --password1 does.\n  --passfile2    str  : Password file for the user2.\n\n You can also pass the passwords in the environment variables\n IMAPSYNC_PASSWORD1 and IMAPSYNC_PASSWORD2\n\nOptions/encryption:\n\n  --nossl1            : Do not use a SSL connection on host1.\n  --ssl1              : Use a SSL connection on host1. On by default if possible.\n\n  --nossl2            : Do not use a SSL connection on host2.\n  --ssl2              : Use a SSL connection on host2. On by default if possible.\n\n  --notls1            : Do not use a TLS connection on host1.\n  --tls1              : Use a TLS connection on host1. On by default if possible.\n\n  --notls2            : Do not use a TLS connection on host2.\n  --tls2              : Use a TLS connection on host2. On by default if possible.\n\n  --debugssl     int  : SSL debug mode from 0 to 4.\n\n  --sslargs1     str  : Pass any ssl parameter for host1 ssl or tls connection. Example:\n                        --sslargs1 SSL_verify_mode=1 --sslargs1 SSL_version=SSLv3\n                        See all possibilities in the new() method of IO::Socket::SSL\n                        http://search.cpan.org/perldoc?IO::Socket::SSL#Description_Of_Methods\n  --sslargs2     str  : Pass any ssl parameter for host2 ssl or tls connection.\n                        See --sslargs1\n\n  --timeout1     int  : Connection timeout in seconds for host1.\n                        Default is 120 and 0 means no timeout at all.\n  --timeout2     int  : Connection timeout in seconds for host2.\n                        Default is 120 and 0 means no timeout at all.\n\nOptions/authentication:\n\n  --authmech1    str  : Auth mechanism to use with host1:\n                        PLAIN, LOGIN, CRAM-MD5 etc. Use UPPERCASE.\n  --authmech2    str  : Auth mechanism to use with host2. See --authmech1\n\n  --authuser1    str  : User to auth with on host1 (admin user).\n                        Avoid using --authmech1 SOMETHING with --authuser1.\n  --authuser2    str  : User to auth with on host2 (admin user).\n  --proxyauth1        : Use proxyauth on host1. Requires --authuser1.\n                        Required by Sun/iPlanet/Netscape IMAP servers to\n                        be able to use an administrative user.\n  --proxyauth2        : Use proxyauth on host2. Requires --authuser2.\n\n  --authmd51          : Use MD5 authentication for host1.\n  --authmd52          : Use MD5 authentication for host2.\n  --domain1      str  : Domain on host1 (NTLM authentication).\n  --domain2      str  : Domain on host2 (NTLM authentication).\n\nOptions/folders:\n\n  --folder       str  : Sync this folder.\n  --folder       str  : and this one, etc.\n  --folderrec    str  : Sync this folder recursively.\n  --folderrec    str  : and this one, etc.\n\n  --folderfirst  str  : Sync this folder first. Ex. --folderfirst \"INBOX\"\n  --folderfirst  str  : then this one, etc.\n  --folderlast   str  : Sync this folder last. --folderlast \"[Gmail]/All Mail\"\n  --folderlast   str  : then this one, etc.\n\n  --nomixfolders      : Do not merge folders when host1 is case-sensitive\n                        while host2 is not (like Exchange). Only the first\n                        similar folder is synced (example: with folders\n                        \"Sent\", \"SENT\" and \"sent\"\n                        on host1 only \"Sent\" will be synced to host2).\n\n  --skipemptyfolders  : Empty host1 folders are not created on host2.\n\n  --include      reg  : Sync folders matching this regular expression\n  --include      reg  : or this one, etc.\n                        If both --include --exclude options are used, then\n                        include is done before.\n  --exclude      reg  : Skips folders matching this regular expression\n                        Several folders to avoid:\n                         --exclude 'fold1|fold2|f3' skips fold1, fold2 and f3.\n  --exclude      reg  : or this one, etc.\n\n  --automap           : guesses folders mapping, for folders well known as\n                        \"Sent\", \"Junk\", \"Drafts\", \"All\", \"Archive\", \"Flagged\".\n\n  --f1f2    str1=str2 : Force folder str1 to be synced to str2,\n                        --f1f2 overrides --automap and --regextrans2.\n\n  --subfolder2   str  : Syncs the whole host1 folders hierarchy under the\n                        host2 folder named str.\n                        It does it internally by adding three\n                        --regextrans2 options before all others.\n                        Add --debug to see what's really going on.\n\n  --subfolder1   str  : Syncs the host1 folders hierarchy which is under folder\n                        str to the root hierarchy of host2.\n                        It's the couterpart of a sync done by --subfolder2\n                        when doing it in the reverse order.\n                        Backup/Restore scenario:\n                        Use --subfolder2 str for a backup to the folder str\n                        on host2. Then use --subfolder1 str for restoring\n                        from the folder str, after inverting\n                        host1/host2 user1/user2 values.\n\n\n  --subscribed        : Transfers subscribed folders.\n  --subscribe         : Subscribe to the folders transferred on the\n                        host2 that are subscribed on host1. On by default.\n  --subscribeall      : Subscribe to the folders transferred on the\n                        host2 even if they are not subscribed on host1.\n\n  --prefix1      str  : Remove prefix str to all destination folders,\n                        usually \"INBOX.\" or \"INBOX/\" or an empty string \"\".\n                        imapsync guesses the prefix if host1 imap server\n                        does not have NAMESPACE capability. So this option\n                        should not be used most of the time.\n  --prefix2      str  : Add prefix to all host2 folders. See --prefix1\n\n  --sep1         str  : Host1 separator. This option should not be used\n                        most of the time.\n                        Imapsync gets the separator from the server itself,\n                        by using NAMESPACE, or it tries to guess it\n                        from the folders listing (it counts\n                        characters / . \\\\ \\ in folder names and choose the\n                        more frequent, or finally / if nothing is found.\n  --sep2         str  : Host2 separator. See --sep1\n\n  --regextrans2  reg  : Apply the whole regex to each destination folders.\n  --regextrans2  reg  : and this one. etc.\n                        When you play with the --regextrans2 option, first\n                        add also the safe options --dry --justfolders\n                        Then, when happy, remove --dry for a run, then \n                        remove --justfolders for the next ones.\n                        Have in mind that --regextrans2 is applied after\n                        the automatic prefix and separator inversion.\n                        For examples see:\n                        https://imapsync.lamiral.info/FAQ.d/FAQ.Folders_Mapping.txt\n\nOptions/folders sizes:\n\n  --nofoldersizes     : Do not calculate the size of each folder at the\n                        beginning of the sync. Default is to calculate them.\n  --nofoldersizesatend: Do not calculate the size of each folder at the\n                        end of the sync. Default is to calculate them.\n  --justfoldersizes   : Exit after having printed the initial folder sizes.\n\nOptions/tmp:\n\n  --tmpdir       str  : Where to store temporary files and subdirectories.\n                        Will be created if it doesn't exist.\n                        Default is system specific, Unix is /tmp but\n                        /tmp is often too small and deleted at reboot.\n                        --tmpdir /var/tmp should be better.\n  --pidfile      str  : The file where imapsync pid is written,\n                        it can be dirname/filename.\n                        Default name is imapsync.pid in tmpdir.\n  --pidfilelocking    : Abort if pidfile already exists. Useful to avoid\n                        concurrent transfers on the same mailbox.\n\nOptions/log:\n\n  --nolog             : Turn off logging on file\n  --logfile      str  : Change the default log filename (can be dirname/filename).\n  --logdir       str  : Change the default log directory. Default is LOG_imapsync/\n\n The default logfile name is for example\n\n  LOG_imapsync/2019_12_22_23_57_59_532_user1_user2.txt\n\n where:\n\n  2019_12_22_23_57_59_532 is nearly the date of the start\n  YYYY_MM_DD_HH_MM_SS_mmm \n  year_month_day_hour_minute_seconde_millisecond\n\n and user1 user2 are the --user1 --user2 values.\n\nOptions/messages:\n\n  --skipmess     reg  : Skips messages matching the regex.\n                        Example: 'm/[\\x80-ff]/' # to avoid 8bits messages.\n                        --skipmess is applied before --regexmess\n  --skipmess     reg  : or this one, etc.\n\n  --skipcrossduplicates : Avoid copying messages that are already copied\n                          in another folder,  good from Gmail to X when\n                          X is not also Gmail.\n                          Activated with --gmail1 unless --noskipcrossduplicates\n\n  --debugcrossduplicates : Prints which messages (UIDs) are skipped with\n                           --skipcrossduplicates (and in what other folders\n                           they are).\n\n  --pipemess     cmd  : Apply this cmd command to each message content\n                        before the copy.\n  --pipemess     cmd  : and this one, etc.\n                        With several --pipemess, the output of each cmd\n                        command (STDOUT) is given to the input (STDIN)\n                        of the next command.\n                        For example,\n                        --pipemess cmd1 --pipemess cmd2 --pipemess cmd3\n                        is like a Unix pipe:\n                        \"cat message | cmd1 | cmd2 | cmd3\"\n\n  --disarmreadreceipts : Disarms read receipts (host2 Exchange issue)\n\n  --regexmess    reg  : Apply the whole regex to each message before transfer.\n                        Example: 's/\\000/ /g' # to replace null by space.\n  --regexmess    reg  : and this one, etc.\n\nOptions/labels:\n\n Gmail present labels as folders in imap. Imapsync can accelerate the sync\n by syncing X-GM-LABELS, it will avoid to transfer messages when they are\n already on host2.\n\n  --synclabels        : Syncs also Gmail labels when a message is copied to host2.\n                        Activated by default with --gmail1 --gmail2 unless\n                        --nosynclabels is added.\n                       \n  --resynclabels      : Resyncs Gmail labels when a message is already on host2.\n                        Activated by default with --gmail1 --gmail2 unless\n                        --noresynclabels is added.\n\n For Gmail syncs, see also:\n https://imapsync.lamiral.info/FAQ.d/FAQ.Gmail.txt\n\nOptions/flags:\n\n  If you encounter flag problems see also:\n  https://imapsync.lamiral.info/FAQ.d/FAQ.Flags.txt\n\n  --regexflag    reg  : Apply the whole regex to each flags list.\n                        Example: 's/\"Junk\"//g' # to remove \"Junk\" flag.\n  --regexflag    reg  : then this one, etc.\n\n  --resyncflags       : Resync flags for already transferred messages.\n                        On by default.\n  --noresyncflags     : Do not resync flags for already transferred messages.\n                        May be useful when a user has already started to play\n                        with its host2 account.\n\nOptions/deletions:\n\n  --delete1           : Deletes messages on host1 server after a successful\n                        transfer. Option --delete1 has the following behavior:\n                        it marks messages as deleted with the IMAP flag\n                        \\Deleted, then messages are really deleted with an\n                        EXPUNGE IMAP command. If expunging after each message\n                        slows down too much the sync then use\n                        --noexpungeaftereach to speed up, expunging will then be\n                        done only twice per folder, one at the beginning and\n                        one at the end of a folder sync.\n\n  --expunge1          : Expunge messages on host1 just before syncing a folder.\n                        Expunge is done per folder.\n                        Expunge aims is to really delete messages marked deleted.\n                        An expunge is also done after each message copied\n                        if option --delete1 is set (unless --noexpungeaftereach).\n\n  --noexpunge1        : Do not expunge messages on host1.\n\n  --delete1emptyfolders : Deletes empty folders on host1, INBOX excepted.\n                          Useful with --delete1 since what remains on host1\n                          is only what failed to be synced.\n\n  --delete2           : Delete messages in host2 that are not in\n                        host1 server. Useful for backup or pre-sync.\n                        --delete2 implies --uidexpunge2\n\n  --delete2duplicates : Delete messages in host2 that are duplicates.\n                        Works only without --useuid since duplicates are\n                        detected with an header part of each message.\n\n  --delete2folders    : Delete folders in host2 that are not in host1 server.\n                        For safety, first try it like this (it is safe):\n                        --delete2folders --dry --justfolders --nofoldersizes\n                        and see what folders will be deleted.\n\n  --delete2foldersonly   reg : Delete only folders matching the regex reg.\n                               Example: --delete2foldersonly \"/^Junk$|^INBOX.Junk$/\"\n                               This option activates --delete2folders\n\n  --delete2foldersbutnot reg : Do not delete folders matching the regex rex.\n                               Example: --delete2foldersbutnot \"/Tasks$|Contacts$|Foo$/\"\n                               This option activates --delete2folders\n\n  --noexpunge2        : Do not expunge messages on host2.\n  --nouidexpunge2     : Do not uidexpunge messages on the host2 account\n                        that are not on the host1 account.\n\nOptions/dates:\n\n  If you encounter problems with dates, see also:\n  https://imapsync.lamiral.info/FAQ.d/FAQ.Dates.txt\n\n  --syncinternaldates : Sets the internal dates on host2 same as host1.\n                        Turned on by default. Internal date is the date\n                        a message arrived on a host (Unix mtime).\n  --idatefromheader   : Sets the internal dates on host2 same as the\n                        ones in \"Date:\" headers.\n\nOptions/message selection:\n\n  --maxsize      int  : Skip messages larger  (or equal) than  int  bytes\n  --minsize      int  : Skip messages smaller (or equal) than  int  bytes\n  --maxage       int  : Skip messages older than  int days.\n                        final stats (skipped) don't count older messages\n                        see also --minage\n  --minage       int  : Skip messages newer than  int  days.\n                        final stats (skipped) don't count newer messages\n                        You can do (+ zone are the messages selected):\n                        past|----maxage+++++++++++++++\u003enow\n                        past|+++++++++++++++minage----\u003enow\n                        past|----maxage+++++minage----\u003enow (intersection)\n                        past|++++minage-----maxage++++\u003enow (union)\n\n  --search       str  : Selects only messages returned by this IMAP SEARCH\n                        command. Applied on both sides.\n                        For a complete set of what can be search see\n                        https://imapsync.lamiral.info/FAQ.d/FAQ.Messages_Selection.txt\n\n  --search1      str  : Same as --search but for selecting host1 messages only.\n  --search2      str  : Same as --search but for selecting host2 messages only.\n                        So --search CRIT equals --search1 CRIT --search2 CRIT\n\n  --maxlinelength int : skip messages with a line length longer than  int  bytes.\n                        RFC 2822 says it must be no more than 1000 bytes but\n                        real life servers and email clients do more.\n\n\n  --useheader    str  : Use this header to compare messages on both sides.\n                        Ex: Message-ID or Subject or Date.\n  --useheader    str    and this one, etc.\n\n  --usecache          : Use cache to speed up next syncs. Not set by default.\n  --nousecache        : Do not use cache. Caveat: --useuid --nousecache creates\n                        duplicates on multiple runs.\n  --useuid            : Use UIDs instead of headers as a criterion to recognize\n                        messages. Option --usecache is then implied unless\n                        --nousecache is used.\n\nOptions/miscellaneous:\n\n  --syncacls          : Synchronizes acls (Access Control Lists).\n                        Acls in IMAP are not standardized, be careful\n                        since one acl code on one side may signify something\n                        else on the other one.\n  --nosyncacls        : Does not synchronize acls. This is the default.\n\n  --addheader         : When a message has no headers to be identified,\n                        --addheader adds a \"Message-Id\" header,\n                        like \"Message-Id: 12345@imapsync\", where 12345\n                        is the imap UID of the message on the host1 folder.\n\nOptions/debugging:\n\n  --debug             : Debug mode.\n  --debugfolders      : Debug mode for the folders part only.\n  --debugcontent      : Debug content of the messages transferred. Huge output.\n  --debugflags        : Debug mode for flags.\n  --debugimap1        : IMAP debug mode for host1. Very verbose.\n  --debugimap2        : IMAP debug mode for host2. Very verbose.\n  --debugimap         : IMAP debug mode for host1 and host2. Twice very verbose.\n  --debugmemory       : Debug mode showing memory consumption after each copy.\n\n  --errorsmax     int : Exit when int number of errors is reached. Default is 50.\n\n  --tests             : Run local non-regression tests. Exit code 0 means all ok.\n  --testslive         : Run a live test with test1.lamiral.info imap server.\n                        Useful to check the basics. Needs internet connection.\n  --testslive6        : Run a live test with ks2ipv6.lamiral.info imap server.\n                        Useful to check the ipv6 connectivity. Needs internet.\n\nOptions/specific:\n\n   --gmail1           : sets --host1 to Gmail and other options. See FAQ.Gmail.txt\n   --gmail2           : sets --host2 to Gmail and other options. See FAQ.Gmail.txt\n\n   --office1          : sets --host1 to Office365 and other options. See FAQ.Exchange.txt\n   --office2          : sets --host2 to Office365 and other options. See FAQ.Exchange.txt\n\n   --exchange1        : sets options for Exchange. See FAQ.Exchange.txt\n   --exchange2        : sets options for Exchange. See FAQ.Exchange.txt\n\n   --domino1          : sets options for Domino. See FAQ.Domino.txt\n   --domino2          : sets options for Domino. See FAQ.Domino.txt\n\nOptions/behavior:\n\n  --maxmessagespersecond int : limits the number of messages transferred per second.\n\n  --maxbytespersecond int : limits the average transfer rate per second.\n  --maxbytesafter     int : starts --maxbytespersecond limitation only after\n                            --maxbytesafter amount of data transferred.\n\n  --maxsleep      int : do not sleep more than int seconds.\n                        On by default, 2 seconds max, like --maxsleep 2\n\n  --abort             : terminates a previous call still running.\n                        It uses the pidfile to know what process to abort.\n\n  --exitwhenover int  : Stop syncing and exits when int total bytes\n                        transferred is reached.\n\n  --version           : Print only software version.\n  --noreleasecheck    : Do not check for any new imapsync release.\n  --releasecheck      : Check for new imapsync release.\n                        it's an http request to\n                        http://imapsync.lamiral.info/prj/imapsync/VERSION\n\n  --noid              : Do not send/receive ID command to imap servers.\n\n  --justconnect       : Just connect to both servers and print useful\n                        information. Need only --host1 and --host2 options.\n                        Obsolete since \"imapsync --host1 imaphost\" alone\n                        implies --justconnect\n\n  --justlogin         : Just login to both host1 and host2 with users\n                        credentials, then exit.\n\n  --justfolders       : Do only things about folders (ignore messages).\n\n  --help              : print this help.\n\n  Example: to synchronize imap account \"test1\" on \"test1.lamiral.info\"\n                      to  imap account \"test2\" on \"test2.lamiral.info\"\n                      with test1 password \"secret1\"\n                      and  test2 password \"secret2\"\n\n  imapsync \\\n     --host1 test1.lamiral.info --user1 test1 --password1 secret1 \\\n     --host2 test2.lamiral.info --user2 test2 --password2 secret2\n\nHere is imapsync 1.977 on host imapsync-vm, a linux system with 3.2/5.7 free GiB of RAM\nwith Perl 5.30.0 and Mail::IMAPClient 3.43\n$Id: imapsync,v 1.977 2019/12/23 20:18:02 gilles Exp gilles $\nCheck if a new imapsync release is available by adding --releasecheck\nHomepage: https://imapsync.lamiral.info/\n```\n\n## Tags\n\nTags to improve the indexing of search engines:\n- e-mail\n- email\n- imap\n- transfer\n- synchronisation\n- tutorial\n- guide\n- howto\n- how-to\n- how to\n- instruction\n- instructions\n- manual\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendel5%2Fimapsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmendel5%2Fimapsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendel5%2Fimapsync/lists"}