From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30233 invoked from network); 25 Jan 2021 21:04:33 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 25 Jan 2021 21:04:33 -0000 Received: from localhost ([::1]:39704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l492D-0004r2-C9 for ml@inbox.vuxu.org; Mon, 25 Jan 2021 16:04:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l490J-0003dl-9T for info-gnus-english@gnu.org; Mon, 25 Jan 2021 16:02:31 -0500 Received: from ciao.gmane.io ([116.202.254.214]:43176) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l490H-00071c-Mh for info-gnus-english@gnu.org; Mon, 25 Jan 2021 16:02:31 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1l490F-0008lA-Kg for info-gnus-english@gnu.org; Mon, 25 Jan 2021 22:02:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: info-gnus-english@gnu.org From: Jeffrey DeLeo Subject: Re: Configuration example for mbsync + dovecot + Gnus Date: Mon, 25 Jan 2021 21:01:44 +0000 Message-ID: <87r1m8buiv.fsf@gmail.com> References: <87eei9s2k9.fsf@pc-117-162.ovh.com> Mime-Version: 1.0 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:e7ear+9g4QSmb8tkZUPPgiDckRE= Received-SPF: pass client-ip=116.202.254.214; envelope-from=gegu-info-gnus-english@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 15 X-Spam_score: 1.5 X-Spam_bar: + X-Spam_report: (1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============8466161122880509084==" Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: "info-gnus-english" --===============8466161122880509084== Content-Type: multipart/alternative; boundary="=-=-=" --=-=-= Content-Type: text/plain Here is my setup using offlineimap to sync mail with gmail and dovecot to speak imap with gnus. ** .gnus file (setq gnus-select-method '(nntp "localhost")) (setq gnus-secondary-select-methods '( (nnimap "Mail" (nnimap-stream shell) (nnimap-shell-program "/usr/lib/dovecot/imap -o mail_location=maildir:~/Maildir/:LAYOUT=fs") ) (nnfolder "archive" (nnfolder-directory "~/Documents/gnus/Mail/archive") (nnfolder-active-file "~/Documents/gnus/Mail/archive/active") (nnfolder-get-new-mail nil) (nnfolder-inhibit-expiry t)))) (gnus-registry-initialize) ** dovecot Important line in /etc/dovecot/conf.d/10-mail.conf: # this is the important line mail_location = maildir:~/Maildir:LAYOUT=fs ** offlineimap This is contents of ~/.offlineimaprc [general] # defines get_pass() pythonfile = ~/.offlineimap.py # List of accounts to be synced, separated by a comma. accounts = Gmail [Account Gmail] # Identifier for the local repository; e.g. the maildir to be synced via IMAP. localrepository = Gmail-local # Identifier for the remote repository; i.e. the actual IMAP, usually non-local. remoterepository = Gmail-remote [Repository Gmail-local] type = Maildir localfolders = ~/Maildir/Gmail [Repository Gmail-remote] type = Gmail remoteuser = me@gmail.com remotepasseval = get_pass("GMail") folderfilter = lambda foldername: foldername in ['INBOX', 'Dev', '[Gmail]/Trash'] # Necessary as of OfflineIMAP 6.5.4 sslcacertfile = /etc/ssl/certs/ca-certificates.crt --=-=-= Content-Type: text/html

Here is my setup using offlineimap to sync mail with gmail and dovecot to speak imap with gnus.

1 .gnus file

(setq gnus-select-method
	'(nntp "localhost"))

      (setq gnus-secondary-select-methods
	    '(
	      (nnimap "Mail"
		      (nnimap-stream shell)
		      (nnimap-shell-program
                      "/usr/lib/dovecot/imap -o mail_location=maildir:~/Maildir/:LAYOUT=fs")
		       )
	      (nnfolder "archive"
		(nnfolder-directory   "~/Documents/gnus/Mail/archive")
		(nnfolder-active-file "~/Documents/gnus/Mail/archive/active")
		(nnfolder-get-new-mail nil)
		(nnfolder-inhibit-expiry t))))

  (gnus-registry-initialize)

2 dovecot

Important line in /etc/dovecot/conf.d/10-mail.conf:

# this is the important line
mail_location = maildir:~/Maildir:LAYOUT=fs

3 offlineimap

This is contents of ~/.offlineimaprc

[general]

# defines get_pass()
pythonfile = ~/.offlineimap.py
# List of accounts to be synced, separated by a comma.
accounts = Gmail

[Account Gmail]
# Identifier for the local repository; e.g. the maildir to be synced via IMAP.
localrepository = Gmail-local
# Identifier for the remote repository; i.e. the actual IMAP, usually non-local.
remoterepository = Gmail-remote

[Repository Gmail-local]
type = Maildir
localfolders = ~/Maildir/Gmail

[Repository Gmail-remote]
type = Gmail
remoteuser = me@gmail.com
remotepasseval = get_pass("GMail")
folderfilter = lambda foldername: foldername in ['INBOX', 'Dev', '[Gmail]/Trash']
# Necessary as of OfflineIMAP 6.5.4
sslcacertfile = /etc/ssl/certs/ca-certificates.crt

--=-=-=-- --===============8466161122880509084== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KaW5mby1nbnVz LWVuZ2xpc2ggbWFpbGluZyBsaXN0CmluZm8tZ251cy1lbmdsaXNoQGdudS5vcmcKaHR0cHM6Ly9s aXN0cy5nbnUub3JnL21haWxtYW4vbGlzdGluZm8vaW5mby1nbnVzLWVuZ2xpc2gK --===============8466161122880509084==--