From: Jeffrey DeLeo <JeffreyDeLeo@gmail.com>
To: info-gnus-english@gnu.org
Subject: Re: Configuration example for mbsync + dovecot + Gnus
Date: Mon, 25 Jan 2021 21:01:44 +0000 [thread overview]
Message-ID: <87r1m8buiv.fsf@gmail.com> (raw)
In-Reply-To: <87eei9s2k9.fsf@pc-117-162.ovh.com>
[-- Attachment #1.1: Type: text/plain, Size: 1542 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 2318 bytes --]
[-- Attachment #2: Type: text/plain, Size: 162 bytes --]
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
prev parent reply other threads:[~2021-01-25 21:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-25 11:01 Garjola Dindi
2021-01-25 16:31 ` Eric Abrahamsen
2021-01-25 18:11 ` Garjola Dindi
2021-01-25 18:30 ` Eric Abrahamsen
2021-01-31 10:56 ` Garjola Dindi
2021-01-25 21:01 ` Jeffrey DeLeo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r1m8buiv.fsf@gmail.com \
--to=jeffreydeleo@gmail.com \
--cc=info-gnus-english@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).