General advice - incorporating gmail IMAP
I'm a little lost at the start, trying to decide how to incorporate gmail IMAP access into my existing setup: Setup for mail: fetchmal & sendmail are running on localhost (A single user home machine) => fetchmail pulls from pop servers fetchmail passes that data to sendmail sendmail delivers thru procmail to a mail spool directory with mail boxes notated like `somemail.in' Gnus then knows to slurp from those mailboxes notated with `*.in' and deliver to nnml mailboxes of the same name (minus the `.in' part) So my mail boxes are NNML. I've used this setup for many years and have evolved an extensive ~/.procmail delivery file. And a vast array of assorted nnml mail boxes. ---- ---=--- - ---- ---=--- - Setup for NNTP: I use the gmane NNTP server and a pay for NNTP server I've had for years, newsguy (enews.newsguy.com accessed by way of an ~/.authinfo file) ---- ---=--- - ---- ---=--- - Now I'd like to add gmail using its IMAP server. My aim is a bit more than just receiving mail that way. I hope to be able to subscribe to various google groups by mail and end up with something sort of similar to nntp access to those groups. Some topics today are not available via NNTP but have moved to the much more awkward and less readable `web forum' type of access. I'm hoping some of the google groups may be accessed by mail subscription and then thru IMAP using gnus. Reading from gnus thru IMAP, I'm guessing will be somewhat similar to ease and quickness of NNTP access. ---- ---=--- - ---- ---=--- - Getting back to the point of the post: I'd like to be steered to documentation that will help me integrate all this into my existing setup described in the first couple paragraphs above. I've never used gnus own nnimap backend. Where I get confused is trying to think how to integrate gmail IMAP into the existing setup. gmail IMAP needs some particular kind of access and authentication all described in googles documentation. I found lots of information on the emacs gmail wiki: http://www.emacswiki.org/emacs/GnusGmail And some description of using gmail IMAP at the URL below, written by a guy running ubuntu: http://ankurjain.in/blog/tag/emacs/ In both cases directions are quite different from my setup, so integrating the two is the rub. ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
Harry Putnam writes: Hi Harry, > Now I'd like to add gmail using its IMAP server. ,[ (info "(gnus)Connecting to an IMAP Server") ] | Connecting to an IMAP can be very easy. Type `B' in the group buffer, | or (if your primary interest is reading email), say something like: | | (setq gnus-select-method |'(nnimap "imap.gmail.com")) | |You'll be prompted for a user name and password. If you grow tired | of that, then add the following to your `~/.authinfo' file: | | machine imap.gmail.com login password port imap | |That should basically be it for most users. ` Well, since you already have some servers, you probably want to add that to your `gnus-secondary-select-methods'. > My aim is a bit more than just receiving mail that way. I hope to be > able to subscribe to various google groups by mail and end up with > something sort of similar to nntp access to those groups. I do exactly that using my fastmail account. Therefore, I do server-side SIEVE message splitting using the List-Id header, so that all messages of a mailing list go into one special group. That works totally great! :-) Now the sad news: Gmail doesn't support any advanced splitting. It has some web-gui for some simple splitting according to to and from headers, but only a very limited subset of SIEVE. And now again good news: Gnus can split imap locally, and the local mail splitting is propagated back to the server. However, I never used that, so I have to refer to the docs: ,[ (info "(gnus)Client-Side IMAP Splitting") ] | Many people prefer to do the sorting/splitting of mail into their mail | boxes on the IMAP server. That way they don't have to download the | mail they're not all that interested in. | |If you do want to do client-side mail splitting, then the following | variables are relevant: | | `nnimap-inbox' | This is the IMAP mail box that will be scanned for new mail. | | `nnimap-split-methods' | Uses the same syntax as `nnmail-split-methods' (*note Splitting | Mail::), except the symbol `default', which means that it should | use the value of the `nnmail-split-methods' variable. | | `nnimap-split-fancy' | Uses the same syntax as `nnmail-split-fancy'. | | `nnimap-unsplittable-articles' | List of flag symbols to ignore when doing splitting. That is, | articles that have these flags won't be considered when splitting. | The default is `(%Deleted %Seen)'. | | |Here's a complete example `nnimap' backend with a client-side | "fancy" splitting method: | | (nnimap "imap.example.com" | (nnimap-inbox "INBOX") | (nnimap-split-methods | (| ("MailScanner-SpamCheck" "spam" "spam.detected") | (to "f...@bar.com" "foo") | "undecided"))) ` > gmail IMAP needs some particular kind of access and authentication all > described in googles documentation. Nah, not really. Since you seem to be using a very current Gnus version, Gmail should work out of the box. (At least, it does for me.) Bye, Tassilo ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
Tassilo Horn writes: > Harry Putnam writes: > > Hi Harry, > >> Now I'd like to add gmail using its IMAP server. > > ,[ (info "(gnus)Connecting to an IMAP Server") ] > | Connecting to an IMAP can be very easy. Type `B' in the group buffer, > | or (if your primary interest is reading email), say something like: > | > | (setq gnus-select-method > |'(nnimap "imap.gmail.com")) > | > |You'll be prompted for a user name and password. If you grow tired > | of that, then add the following to your `~/.authinfo' file: > | > | machine imap.gmail.com login password port imap > | > |That should basically be it for most users. > ` > Well, since you already have some servers, you probably want to add that > to your `gnus-secondary-select-methods'. With that done I get this error: something about listp nnimap being the wrong type argument. >From Messages buffer: [...] Reading c:/users/harry/.newsrc.eld... Opening nnfolder server on archive...done gnus-find-new-newsgroups: Wrong type argument: listp, nnimap When I set debug on error, and the debugger gives the error, windows 7 pops up a dialog asking me if I want to attach a debugger or not, either way I answer, emacs closes before I can get at the backtrace. I know there is some way to make emacs write the error to disk as it happens but I don't now how to do it. Anyway, this is the code in gnus: (setq gnus-secondary-select-methods '(nnimap "imap.gmail.com")) But for the moment I can't post a backtrace. So before getting into splitting I'll need some help just getting the first steps. If I just eval that line alone it shows: C-c C-e at the end of: (setq gnus-secondary-select-methods '(nnimap "imap.gmail.com")) shows: `(nnimap "imap.gmail.com")' ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
Harry Putnam writes: > Tassilo Horn writes: > >> Harry Putnam writes: >> >> Hi Harry, >> >>> Now I'd like to add gmail using its IMAP server. >> >> ,[ (info "(gnus)Connecting to an IMAP Server") ] >> | Connecting to an IMAP can be very easy. Type `B' in the group buffer, >> | or (if your primary interest is reading email), say something like: >> | >> | (setq gnus-select-method >> |'(nnimap "imap.gmail.com")) >> | >> |You'll be prompted for a user name and password. If you grow tired >> | of that, then add the following to your `~/.authinfo' file: >> | >> | machine imap.gmail.com login password port imap >> | >> |That should basically be it for most users. >> ` > >> Well, since you already have some servers, you probably want to add that >> to your `gnus-secondary-select-methods'. > > With that done I get this error: something about listp nnimap being > the wrong type argument. > > From Messages buffer: > > [...] > Reading c:/users/harry/.newsrc.eld... > Opening nnfolder server on archive...done > gnus-find-new-newsgroups: Wrong type argument: listp, nnimap > > When I set debug on error, and the debugger gives the error, windows 7 > pops up a dialog asking me if I want to attach a debugger or not, > either way I answer, emacs closes before I can get at the backtrace. > > I know there is some way to make emacs write the error to disk as it > happens but I don't now how to do it. > > Anyway, this is the code in gnus: > > (setq gnus-secondary-select-methods '(nnimap "imap.gmail.com")) > > But for the moment I can't post a backtrace. > > So before getting into splitting I'll need some help just getting the > first steps. > > If I just eval that line alone it shows: > > C-c C-e at the end of: > (setq gnus-secondary-select-methods '(nnimap "imap.gmail.com")) > shows: >`(nnimap "imap.gmail.com")' Try: (setq gnus-secondary-select-methods '((nnimap "imap.gmail.com"))) -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
Thierry Volpiatto writes: >> Anyway, this is the code in gnus: >> >> (setq gnus-secondary-select-methods '(nnimap "imap.gmail.com")) >> >> But for the moment I can't post a backtrace. >> >> So before getting into splitting I'll need some help just getting the >> first steps. >> >> If I just eval that line alone it shows: >> >> C-c C-e at the end of: >> (setq gnus-secondary-select-methods '(nnimap "imap.gmail.com")) >> shows: >>`(nnimap "imap.gmail.com")' > > Try: > > (setq gnus-secondary-select-methods '((nnimap "imap.gmail.com"))) Thanks, yes that worked. I now have a new obstacle however. I'm not sure that I mentioned that this setup is on a windows 7 machine. My mail desktop and where I do most mail etc is a gentoo linux desktop, but I work a lot on windows machines too. I thought I'd try to get gmail working on a windows machine before I risk screwing up my mail mail setup on linux. So I'm hitting a problem having to do with starttls I think. , | Let me insert here a few facts: | | Running emacs-24.X (of Feb 14) on windows 7. | gnus of recent git checkout | I'm attempting to get gmail working and use its imap server ` The Messages buffer says this: Checking new news... Reading active file from imap.gmail.com via nnimap... Opening nnimap server on imap.gmail.com... Denied server nnimap+imap.gmail.com Opening nnimap server on imap.gmail.com...failed: 'gnutls-cli' is not recognized as an internal or external command I have this line in .authinfo machine imap.gmail.com login hputn...@gmail.com password [xx] port 993 I removed the port 993 in .authinfo, closed gnus/emacs, restarted emacs/gnus and tried again... getting this: Checking new news...done Warning: Opening nnimap server on imap.gmail.com...failed: 'gnutls-cli' is not recognized as an internal or external command ; Denied server nnimap+imap.gmail.com; Opening nnimap server on imap.gmail.com...failed: 'gnutls-cli' is not recognized as an internal or external command Anyone know what needs to be done for this? ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
On Sat, 19 Feb 2011 16:12:50 -0600, Harry wrote: > ; Denied server nnimap+imap.gmail.com; Opening nnimap server on > imap.gmail.com...failed: 'gnutls-cli' is not recognized as an > internal or external command > Anyone know what needs to be done for this? I think you need to install either gnutls-cli or openssl? Best regards, Adam -- "Examination and mastering of a new highly Adam Sjøgren intellectual equipment was a hard labour." a...@koldfront.dk ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
a...@koldfront.dk (Adam Sjøgren) writes: > On Sat, 19 Feb 2011 16:12:50 -0600, Harry wrote: > >> ; Denied server nnimap+imap.gmail.com; Opening nnimap server on >> imap.gmail.com...failed: 'gnutls-cli' is not recognized as an >> internal or external command > >> Anyone know what needs to be done for this? > > I think you need to install either gnutls-cli or openssl? Maybe and also complete configuration of gnus-secondary-select-methods: '((nnimap "gmail" (nnimap-address "imap.gmail.com") (nnimap-server-port 993) (nnimap-stream ssl) (nnir-search-engine imap))) -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
Thierry Volpiatto writes: > Maybe and also complete configuration of gnus-secondary-select-methods: > > '((nnimap "gmail" > (nnimap-address "imap.gmail.com") > (nnimap-server-port 993) > (nnimap-stream ssl) > (nnir-search-engine imap))) In No Gnus, the last three lines are totally superfluous. -- (domestic pets only, the antidote for overdose, milk.) la...@gnus.org * Lars Magne Ingebrigtsen ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
Lars Ingebrigtsen writes: > Thierry Volpiatto writes: > >> Maybe and also complete configuration of gnus-secondary-select-methods: >> >> '((nnimap "gmail" >> (nnimap-address "imap.gmail.com") >> (nnimap-server-port 993) >> (nnimap-stream ssl) >> (nnir-search-engine imap))) > > In No Gnus, the last three lines are totally superfluous. Good to know, thanks. -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
Lars Ingebrigtsen writes: > Thierry Volpiatto writes: > >> Maybe and also complete configuration of gnus-secondary-select-methods: >> >> '((nnimap "gmail" >> (nnimap-address "imap.gmail.com") >> (nnimap-server-port 993) >> (nnimap-stream ssl) >> (nnir-search-engine imap))) > > In No Gnus, the last three lines are totally superfluous. I see that works right off on linux, but do you know how its done on windows 7. >> I think you need to install either gnutls-cli or openssl? Can all that be handled inside gnus, using gnus pkgs? Or, is it really necessary to install pkgs for windows 7? Googling for windows pkgs of gnutls-cli or openssl. What's available, is confusing. Some of the pkgs available appear to be only for 32 bit, some seem pretty shakey as to being appropriate to windows7 and onward. Are there 64 bit pkgs that are known to work on win7 without lots of tweaking and fiddling? ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
On Sun, Feb 20 2011,Harry Putnam wrote: [snipped] > Googling for windows pkgs of gnutls-cli or openssl. What's > available, is confusing. > > Some of the pkgs available appear to be only for 32 bit, some seem pretty > shakey as to being appropriate to windows7 and onward. > > Are there 64 bit pkgs that are known to work on win7 without lots of > tweaking and fiddling? Well, you're best bet on Windows is probably cygwin which has all the above packages. But my experience is limited to 32 bit XP. sivaram -- ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
On Sun, 20 Feb 2011 09:48:46 -0600, Harry wrote: >>> I think you need to install either gnutls-cli or openssl? > Can all that be handled inside gnus, using gnus pkgs? I don't think it can, yet. As far as I understand work is underway to have GNU Emacs use libgnutls directly in the future (perhaps in the next release of GNU Emacs?) > Or, is it really necessary to install pkgs for windows 7? I think it is necessary to install either gnutls-cli or openssl. > Googling for windows pkgs of gnutls-cli or openssl. What's > available, is confusing. Everything about Windows is confusing to me :-) Best regards, Adam -- "I always liked songs with parentheses in the title."Adam Sjøgren a...@koldfront.dk ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
On Sat, Feb 26 2011,Sivaram Neelakantan wrote: > On Sun, Feb 20 2011,Harry Putnam wrote: > > [snipped ] > > Well, you're best bet on Windows is probably cygwin which has all the ^ aargh! should be 'your'. Dunce-->me. sivaram -- ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
a...@koldfront.dk (Adam Sjøgren) writes: > On Sun, 20 Feb 2011 09:48:46 -0600, Harry wrote: > I think you need to install either gnutls-cli or openssl? > >> Can all that be handled inside gnus, using gnus pkgs? > > I don't think it can, yet. As far as I understand work is underway to > have GNU Emacs use libgnutls directly in the future (perhaps in the next > release of GNU Emacs?) > >> Or, is it really necessary to install pkgs for windows 7? > > I think it is necessary to install either gnutls-cli or openssl. > >> Googling for windows pkgs of gnutls-cli or openssl. What's >> available, is confusing. > > Everything about Windows is confusing to me :-) > Good point. You've got to wonder why those engineer/coders are made to make so much of the OS hard to see or allow user to mess with it. ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
Tassilo Horn writes: [...] Tassilo H wrote: > Well, since you already have some servers, you probably want to add that > to your `gnus-secondary-select-methods'. I'm kind of confused about the difference getting to imap that way as apposed to the Foreign-group method starting with `B'. Is there any thing better about either, or are they basically the same? Harry wrote: >> My aim is a bit more than just receiving mail that way. I hope to be >> able to subscribe to various google groups by mail and end up with >> something sort of similar to nntp access to those groups. Tassilo responds: > I do exactly that using my fastmail account. Therefore, I do > server-side SIEVE message splitting using the List-Id header, so that > all messages of a mailing list go into one special group. That works > totally great! :-) Do you know any handy urls that show examples of SIEVE scripting? The three main links for examples on: http://www.fastmail.fm/docs/sieve/index.html#scripts Are all dead links... they really need to update there web page. Is that an indication of a general sorry state of management there? I mean, do you see sloth, inattention and other kinds of baloney all around, using your mail account? I ask because I'm thinking of getting that service... it is quite cheap and seems to offer quite a lot for the money. But if it's mostly a big sorry fake out like a very lot of the stuff that one sees online, I'd like to know that now... ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
Harry Putnam writes: Hi Harry, > Tassilo H wrote: >> Well, since you already have some servers, you probably want to add >> that to your `gnus-secondary-select-methods'. > > I'm kind of confused about the difference getting to imap that way as > apposed to the Foreign-group method starting with `B'. > > Is there any thing better about either, or are they basically the same? Well, IMO configuring `gnus-secondary-select-methods' in your .gnus.el is better, because adding your imap server as foreign server puts your configs into .newsrc.el, which is not really intended for human editing. But functionality-wise, there shouldn't be differences. > Tassilo responds: >> I do exactly that using my fastmail account. Therefore, I do >> server-side SIEVE message splitting using the List-Id header, so that >> all messages of a mailing list go into one special group. That works >> totally great! :-) > > Do you know any handy urls that show examples of SIEVE scripting? Here's my script. Maybe it helps a bit. --8<---cut here---start->8--- require ["envelope", "imapflags", "fileinto", "reject", "notify", "vacation", "regex", "relational", "comparator-i;ascii-numeric", "body", "copy"]; # SPAM if header :value "ge" :comparator "i;ascii-numeric" ["X-Spam-score"] ["5"] { fileinto "INBOX.Junk Mail"; stop; } # Emacs-devel mailinglist if header :contains ["List-Id"] "" { fileinto "INBOX.mailinglists.emacs-devel"; stop; } # Clojure mailinglist if header :contains ["List-Id"] "" { fileinto "INBOX.mailinglists.clojure"; stop; } # Clojure-DE mailinglist if header :contains ["List-Id"] "" { fileinto "INBOX.mailinglists.clojure-de"; stop; } # Go Nuts mailinglist if header :contains ["List-Id"] "" { fileinto "INBOX.mailinglists.golang-nuts"; stop; } # Info-FSF mailinglist if header :contains ["List-Id"] "" { fileinto "INBOX.mailinglists.info-fsf"; stop; } # KDE mailinglist if header :contains ["List-Id"] "" { fileinto "INBOX.mailinglists.kde"; stop; } # Ding Mailinglist (gnus-devel) if header :contains ["List-Id"] "" { fileinto "INBOX.mailinglists.ding"; stop; } # BBDB-INFO Mailinglist if header :contains ["List-Id"] "" { fileinto "INBOX.mailinglists.bbdb-info"; stop; } # D-BARF-Mailinglist if anyof ( header :contains ["List-Id"] "", header :contains ["X-Mailing-List"] "d-b...@yahoogroups.de" ) { fileinto "INBOX.mailinglists.d-barf"; stop; } # Misc Mailinglists (Catch all not already handled) if anyof ( exists ["List-Id"] ) { fileinto "INBOX.mailinglists.misc"; stop; } # Bugs from various bug trackers if anyof ( exists ["X-Bugzilla-Reason"], exists ["X-Bugzilla-Product"], exists ["X-Bugzilla-Component"], exists ["X-Bugzilla-Type"], exists ["X-Bugzilla-URL"], header :contains ["X-Mailer"] "Redmine", address :contains ["From"] "@emacsbugs.donarmstrong.com" ) { fileinto "INBOX.bugs"; stop; } # My FSF address if anyof ( address :is ["To", "CC"] "tass...@member.fsf.org", address :is ["To", "CC"] "thorn+...@fastmail.fm" ) { fileinto "INBOX.FSF"; stop; } # My old University address if anyof ( address :is ["To", "CC"] "thorn+...@fastmail.fm", address :is ["To", "CC"] "heimd...@uni-koblenz.de" ) { fileinto "INBOX.uni-old"; stop; } # Chat Logs if header :contains ["x-resolved-to"] "+chatlogs@" { setflag "$ChatLog"; setflag "\\Seen"; fileinto "INBOX.Chats"; removeflag "$ChatLog"; removeflag "\\Seen"; stop; } --8<---cut here---end--->8--- Bye, Tassilo ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
Tassilo Horn writes: [...] >> Do you know any handy urls that show examples of SIEVE scripting? > > Here's my script. Maybe it helps a bit. Thanks for the good input... very helpful seeing a real setup. Just curious, how you cause the code portion to show up with a green background in my `gnus-article-mode'? I see several people here do that. All I see when viewed raw is: --8<---cut here---start->8--- At begin and end. ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: General advice - incorporating gmail IMAP
Harry Putnam writes: > Tassilo Horn writes: > > [...] > >>> Do you know any handy urls that show examples of SIEVE scripting? >> >> Here's my script. Maybe it helps a bit. > > Thanks for the good input... very helpful seeing a real setup. > > Just curious, how you cause the code portion to show up with a green > background in my `gnus-article-mode'? I see several people here do > that. > > All I see when viewed raw is: > > --8<---cut here---start->8--- > > At begin and end. It's message-mark-inserted-region. -- Alberto ___ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english