User Tools

Site Tools


public:it:email

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:it:email [2021/08/23 01:39] – [Install] philpublic:it:email [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-  * [[public:it:email:security|Email - Security]] 
-  * [[public:it:email:protonmail|Email - ProtonMail]] 
-  * [[public:it:email:mailapp|Email - Mail.app]] 
  
-===== IMAP Sync ===== 
- 
-  * [[ https://imapsync.lamiral.info/ | Authors Website ]] 
-  * [[ https://github.com/imapsync/imapsync | Github ]] 
-  * [[ https://github.com/imapsync/imapsync/archive/refs/tags/imapsync-2.140.tar.gz | v2.140 Release ]] 
-   
- 
-=== Dependencies === 
-<code> 
-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 
-</code> 
- 
- 
-===== Offline IMAP ===== 
- 
-  * [[ http://www.offlineimap.org/ | offlineimap.org ]] 
-  * [[ https://github.com/OfflineIMAP/offlineimap3 | Github ]] 
-  * [[ https://github.com/OfflineIMAP/offlineimap3/archive/refs/tags/v7.3.3.tar.gz | v7.3.3 Release ]] 
- 
-==== Install ==== 
-=== apt === 
-<code> 
-apt-get install offlineimap 
-</code> 
- 
-https://github.com/google/gmail-oauth2-tools 
- 
-https://github.com/OfflineIMAP/offlineimap/blob/master/offlineimap.conf 
- 
- 
-  - [[https://console.developers.google.com/apis/api/gmail.googleapis.com/overview | Enable Gmail API]] 
-  - [[https://console.cloud.google.com/apis/api/gmail.googleapis.com/credentials|Create Oauth2 Credentials]]. You'll get a clientid and clientsecret which you'll need to put into ~/.offlineimaprc and use in the oauth2.py 
-  - Clone [[https://github.com/google/gmail-oauth2-tools|google/gmail-oauth2-tools]] and use the script in python/oauth2.py. 
-  - <code> 
-#!/bin/bash 
- 
-d="$HOME/Mail/gmail-oauth2-tools/python" 
- 
-clientid='<id>.apps.googleusercontent.com' 
-clientsecret='<secrect>' 
- 
-${d}/oauth2.py \ 
-  --generate_oauth2_token \ 
-  --client_id=${clientid} \ 
-  --client_secret=${clientsecret} 
-</code> 
-  - 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 ~/.offlineimaprc 
- 
-=== Example ~/.offlineimaprc === 
-Also works with a google apps account with a custom domain. 
-<code> 
-[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 = ~/Mail/user@gmail.com 
- 
-[Repository user@gmail.com-remote] 
-type = IMAP 
-remotehost = imap.gmail.com 
-remoteuser = user@gmail.com 
-ssl = yes 
-sslcacertfile = /etc/ssl/certs/ca-certificates.crt 
-auth_mechanisms = XOAUTH2 
-oauth2_client_id =  
-oauth2_client_secret =  
-oauth2_access_token =  
-oauth2_request_url = https://accounts.google.com/o/oauth2/token 
-oauth2_refresh_token =  
-</code> 
- 
-https://console.cloud.google.com/apis/api/gmail.googleapis.com/credentials 
public/it/email.1629700749.txt.gz · Last modified: 2021/08/23 01:39 by phil