From: Martin Rubey <axiomize@yahoo.de>
Subject: help with splitting rules and help with bbdb
Date: 31 Oct 2005 13:16:51 +0100 [thread overview]
Message-ID: <85y849yj7w.fsf@localhost.localdomain> (raw)
Dear Gnus,
I'm currently switching to Gnus as mailreader and have some tiny difficulties
setting it up correctly. My situation is as follows:
* I'm subscribed to a few newsgroups.
* I get mail from a few mailing lists
* I want to split my incoming mail into several groups, partially by hand.
The first thing I wanted to do is to direct all mail from the mailing lists
axiom-developer, axiom-mail and axiom-math@nongnu.org to a group mail.axiom.
So I customized
'(nnmail-split-methods (quote (("mail.axiom" "^To:.*axiom-")
("mail.misc" ""))))
However, this doesn't catch all mail intended for the axiom mailing lists, of
course, since sometimes the keyword will be in the CC list, etc.
I looked at group splitting, but it looks quite complicated, I must
admit. Well, I'm open to any solution that works, of course.
The second problem is bbdb. Somehow, incoming mail doesn't get through to
it. Outgoing mail works great, thanks to some helpful individual Wolf! I have
the following in my .emacs:
(require 'bbdb)
(bbdb-initialize 'gnus 'message)
(add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus)
;;; TODO -- remove the mapconcat addition of commas, that get removed by m-t-h
(defun wolf3-bbdb-add-recipients-to-bbdb ()
"Add all recipients to BBDB, using this list of headers:
from, sender,
to, cc, bcc,
resent-from, resent-to, resent-cc, resent-bcc."
(let ((fields '("from" "sender"
"to" "cc" "bcc"
"resent-from" "resent-to" "resent-cc" "resent-bcc")))
(mapc
(lambda (address)
(bbdb-annotate-message-sender address t t t))
(save-restriction
(message-narrow-to-headers)
(message-tokenize-header (mapconcat 'message-fetch-field fields ","))))))
;;; Could go into many hooks:
;;; message-send-mail-hook # too restricted
;;; message-send-news-hook # too restricted
;;; message-send-hook # just right!!!
;;; message-sent-hook # too late
(add-hook 'message-send-hook 'wolf3-bbdb-add-recipients-to-bbdb)
In any case, I like Gnus already!
Martin
next reply other threads:[~2005-10-31 12:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-31 12:16 Martin Rubey [this message]
2005-11-01 7:04 ` Zhang Wei
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=85y849yj7w.fsf@localhost.localdomain \
--to=axiomize@yahoo.de \
/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).