Re: Configuration example for mbsync + dovecot + Gnus
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 = m...@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 ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: Configuration example for mbsync + dovecot + Gnus
Garjola Dindi writes: > On Mon 25-Jan-2021 at 17:31:14 +01, Eric Abrahamsen > wrote: >> Garjola Dindi writes: >> >>> Hi, >>> >>> I would like to move from a nnmaildir + OfflineIMAP configuration to >>> something which: >>> >>> 1. scales better for large number of messages than nnmaildir and >>> 2. does not use OfflineIMAP (Python 2 based and sometimes slow). >>> >>> I understand that some Gnus users use a local IMAP server with dovecot >>> and the nnimap backend. >>> >>> I found these interesting instructions here: >>> >>> https://ericabrahamsen.net/tech/2014/oct/gnus-dovecot-lucene.html >> >> I'm still using this setup! You didn't say what was going wrong, but >> here's a sample config block for one of my IMAP accounts: > > Thanks for your answer! > > With respect to the 2014 post, for the mbsync part, I had to change > > , > | UseIMAPS no > | UseTLSV1 no > ` > > to this > > , > | SSLType IMAPS > | SSLVersions TLSv1.2 > ` > > and also add the port as you have in the example you just gave. > > And now I also see that for the local dovecot, you have > > , > | AuthMechs LOGIN > ` > > which was not the case in the blog post. This may be why I was getting > an authentication failure. Looks like it's time to update the blog post... > I will try again with this updated configuration (my next scheduled > session to play with this is next week-end!). > > Do you remember having also updated dovecot.conf or other things? I tried to keep dovecot as bog-standard as possible. The only changes I made to dovecot.conf were to set the location of the password file and where to store mail, and most importantly to turn on full-text search. Then there was the passwd file itself. I think that was it! Eric ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: Configuration example for mbsync + dovecot + Gnus
On Mon 25-Jan-2021 at 17:31:14 +01, Eric Abrahamsen wrote: > Garjola Dindi writes: > >> Hi, >> >> I would like to move from a nnmaildir + OfflineIMAP configuration to >> something which: >> >> 1. scales better for large number of messages than nnmaildir and >> 2. does not use OfflineIMAP (Python 2 based and sometimes slow). >> >> I understand that some Gnus users use a local IMAP server with dovecot >> and the nnimap backend. >> >> I found these interesting instructions here: >> >> https://ericabrahamsen.net/tech/2014/oct/gnus-dovecot-lucene.html > > I'm still using this setup! You didn't say what was going wrong, but > here's a sample config block for one of my IMAP accounts: Thanks for your answer! With respect to the 2014 post, for the mbsync part, I had to change , | UseIMAPS no | UseTLSV1 no ` to this , | SSLType IMAPS | SSLVersions TLSv1.2 ` and also add the port as you have in the example you just gave. And now I also see that for the local dovecot, you have , | AuthMechs LOGIN ` which was not the case in the blog post. This may be why I was getting an authentication failure. I will try again with this updated configuration (my next scheduled session to play with this is next week-end!). Do you remember having also updated dovecot.conf or other things? Thanks! > > IMAPAccount ea > Host mail.ericabrahamsen.net > User e...@ericabrahamsen.net > PassCmd "/usr/bin/pass email/ea" > SSLType STARTTLS > Port 143 > > IMAPStore ea-ro > Account ea > > IMAPAccount local-ea-dovecot > SSLType None > Host localhost > User eric-lo...@ericabrahamsen.net > Pass > AuthMechs LOGIN > > IMAPStore ea-daemon-local > Account local-ea-dovecot > > Channel ea > Master :ea-ro: > Slave :ea-daemon-local: > Patterns * > Create Both > Expunge Both > Remove Both > > ___ > info-gnus-english mailing list > info-gnus-english@gnu.org > https://lists.gnu.org/mailman/listinfo/info-gnus-english -- ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: how could gnus display the Gmail Labels X-GM-LABELS?
Pankaj Jangid writes: Hello, i read about it this: https://www.gnu.org/software/emacs/manual/html_node/gnus/Support-for-IMAP-Extensions.html#Support-for-IMAP-Extensions 6.3.4 Support for IMAP Extensions If you’re using Google’s Gmail, you may want to see your Gmail labels when reading your mail. Gnus can give you this information if you ask for ‘X-GM-LABELS’ in the variable gnus-extra-headers. For example: (setq gnus-extra-headers '(To Newsgroups X-GM-LABELS)) This will result in Gnus storing your labels in message header structures for later use. The content is always a parenthesized (possible empty) list. But unfortunately i don't understand, what to do with it. Does Gnus show them, if availabe? Or should someone create code to use it? I don't know. FYI: As far as i read on google developer sites, the folders Marked, Sent, Important and so on, are also labels. Therefore they should be displayed by gnus. Perhaps gnus do not decode the labels?? Regards Poul > physiculus writes: > >> But here are no labels visible... >> after pressing t. >> >> I insert the X-GM-LABELS to gnus-visible-headers. >> > > Are you sure this header is there in Gmail messages. I just check a few > of my emails (show original) and could not find X-GM-LABELS in any of > those. > > It could be something that Gmail might be using when filtering on server > side. I don’t use server side filtering so may be this header is not > there in my emails. > > Just check at your end. ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: Configuration example for mbsync + dovecot + Gnus
Garjola Dindi writes: > Hi, > > I would like to move from a nnmaildir + OfflineIMAP configuration to > something which: > > 1. scales better for large number of messages than nnmaildir and > 2. does not use OfflineIMAP (Python 2 based and sometimes slow). > > I understand that some Gnus users use a local IMAP server with dovecot > and the nnimap backend. > > I found these interesting instructions here: > > https://ericabrahamsen.net/tech/2014/oct/gnus-dovecot-lucene.html I'm still using this setup! You didn't say what was going wrong, but here's a sample config block for one of my IMAP accounts: IMAPAccount ea Host mail.ericabrahamsen.net User e...@ericabrahamsen.net PassCmd "/usr/bin/pass email/ea" SSLType STARTTLS Port 143 IMAPStore ea-ro Account ea IMAPAccount local-ea-dovecot SSLType None Host localhost User eric-lo...@ericabrahamsen.net Pass AuthMechs LOGIN IMAPStore ea-daemon-local Account local-ea-dovecot Channel ea Master :ea-ro: Slave :ea-daemon-local: Patterns * Create Both Expunge Both Remove Both ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Configuration example for mbsync + dovecot + Gnus
Hi, I would like to move from a nnmaildir + OfflineIMAP configuration to something which: 1. scales better for large number of messages than nnmaildir and 2. does not use OfflineIMAP (Python 2 based and sometimes slow). I understand that some Gnus users use a local IMAP server with dovecot and the nnimap backend. I found these interesting instructions here: https://ericabrahamsen.net/tech/2014/oct/gnus-dovecot-lucene.html but I am having trouble making them work. I had to change some of the mbsync settings since they are now deprecated (the post is 6 years old), but still no success (I have failed authentications for mbsync while the same config works if I don't use dovecot). I would like to know if somebody could share their dovecot and mbsync configurations for a more recent setup. I am running Debian stable, but I guess that I can translate distribution specific things if needed. Thanks for your help. -- Garjola ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english