by tumult · 16y ago · 0 comments
I run it on a cronjob. With this setup, I get the great Gmail interface (and push support to my iPhone/Nexus One) when I'm on the go, and the lightning-fast Gnus/Mutt interfaces for blazing through mailing lists when I'm at a computer.
One problem is that sometimes offlineimap throws exceptions and doesn't finish a sync. I think it needs some touching up or updating. I haven't lost any data, though.
If you're having good luck with offlineimap/nnmaildir though then that's encouraging and I might try that.
on my server i have procmail setup to write a copy of every incoming message (that isn't to a mailing list) to an "allmail" folder that i rotate yearly. this lets me prune my inbox without fear of losing anything, as i occasionally have to search through the allmail folder to find an old email. using mutt's body searching usually finds what i need, and since all of those messages are cached offline, it's relatively quick.
for the rare times when i need to find something that mutt can't find on its own, i use mairix to search the local maildirs, which writes search results to a new maildir, which i can read in mutt.
;; Gnus
;; . http://jfm3-repl.blogspot.com/2007_12_01_archive.html
(setq mail-user-agent 'gnus-user-agent) ; always use gnus for email
(setq message-send-mail-partially-limit nil) ; never split messages
(setq message-signature nil) ; no .signature
(add-hook 'message-send-hook 'ispell-message) ; spell check on sent
;; . encrypt .authinfo file
(require 'epa-file)
(epa-file-enable)
(setq epa-file-cache-passphrase-for-symmetric-encryption t)
;; . define mail/news sources
(setq gnus-select-method '(nnnil "")
gnus-secondary-select-methods
'(
(nnml "")
;; to add rss: type G R in *Group* buffer; when asked, paste url
(nnimap "gmail"
(nnimap-authinfo-file "/path/to/.authinfo.gpg")
(nnimap-address "imap.gmail.com")
(nnimap-server-port 993)
(nnimap-stream ssl))
))
;; Accessing the [Gmail] folders http://www.emacswiki.org/emacs/GnusGmail
(setq gnus-invalid-group-regexp "[:`'\"]\\|^$")
(setq gnus-ignored-newsgroups "")
;; After that, S s to the groups as specified above. Before doing
;; anything else, G c configure each Gmail line, and hit [done]. Gnus
;; will pick up “another” group, this time without the nnimap+gmail
;; designator. C-k the old group and it works! (I don’t know why; I
;; originally wanted gcc-self “nnimap+gmail:[Gmail]/Sent Mail” on
;; INBOX and this was the easiest way to arrange that. Magically, it
;; picked up the new INBOX and everything worked, even across
;; sessions.)
;; . save sent items
(setq gnus-message-archive-method '(nnimap "gmail"))
(setq gnus-message-archive-group "nnimap+gmail:[Gmail]/Sent Mail")
(setq gnus-gcc-mark-as-read t)
;; .
(setq gnus-thread-sort-functions
'(gnus-thread-sort-by-number
gnus-thread-sort-by-date
gnus-thread-sort-by-total-score))
(setq gnus-summary-line-format
"%U%R%z %d %I%(%[%-25,25n%]%) %s\n")