This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
public:it:email [2021/08/23 01:39] – [Install] phil | public:it:email [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | * [[public: | ||
- | * [[public: | ||
- | * [[public: | ||
- | ===== IMAP Sync ===== | ||
- | |||
- | * [[ https:// | ||
- | * [[ https:// | ||
- | * [[ https:// | ||
- | | ||
- | |||
- | === Dependencies === | ||
- | < | ||
- | sudo apt-get install \ | ||
- | libencode-imaputf7-perl \ | ||
- | libfile-copy-recursive-perl \ | ||
- | libio-socket-inet6-perl \ | ||
- | libio-tee-perl \ | ||
- | libmail-imapclient-perl \ | ||
- | libunicode-string-perl \ | ||
- | libsys-meminfo-perl \ | ||
- | libregexp-common-perl \ | ||
- | libfile-tail-perl | ||
- | </ | ||
- | |||
- | |||
- | ===== Offline IMAP ===== | ||
- | |||
- | * [[ http:// | ||
- | * [[ https:// | ||
- | * [[ https:// | ||
- | |||
- | ==== Install ==== | ||
- | === apt === | ||
- | < | ||
- | apt-get install offlineimap | ||
- | </ | ||
- | |||
- | https:// | ||
- | |||
- | https:// | ||
- | |||
- | |||
- | - [[https:// | ||
- | - [[https:// | ||
- | - Clone [[https:// | ||
- | - < | ||
- | #!/bin/bash | ||
- | |||
- | d=" | ||
- | |||
- | clientid='< | ||
- | clientsecret='< | ||
- | |||
- | ${d}/ | ||
- | --generate_oauth2_token \ | ||
- | --client_id=${clientid} \ | ||
- | --client_secret=${clientsecret} | ||
- | </ | ||
- | - Running this script will open a web browser. Login with the gmail account you wish to sync. It will provide a Refresh and Access token. Copy both into ~/ | ||
- | |||
- | === Example ~/ | ||
- | Also works with a google apps account with a custom domain. | ||
- | < | ||
- | [general] | ||
- | accounts = user@gmail.com | ||
- | |||
- | [Account user@gmail.com] | ||
- | localrepository = user@gmail.com-local | ||
- | remoterepository = user@gmail.com-remote | ||
- | |||
- | [Repository user@gmail.com-local] | ||
- | type = Maildir | ||
- | localfolders = ~/ | ||
- | |||
- | [Repository user@gmail.com-remote] | ||
- | type = IMAP | ||
- | remotehost = imap.gmail.com | ||
- | remoteuser = user@gmail.com | ||
- | ssl = yes | ||
- | sslcacertfile = / | ||
- | auth_mechanisms = XOAUTH2 | ||
- | oauth2_client_id = | ||
- | oauth2_client_secret = | ||
- | oauth2_access_token = | ||
- | oauth2_request_url = https:// | ||
- | oauth2_refresh_token = | ||
- | </ | ||
- | |||
- | https:// |