From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/5937 Path: news.gmane.org!not-for-mail From: Martin Rubey Newsgroups: gmane.emacs.gnus.user Subject: help with splitting rules and help with bbdb Date: 31 Oct 2005 13:16:51 +0100 Message-ID: <85y849yj7w.fsf@localhost.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138671561 29452 80.91.229.2 (31 Jan 2006 01:39:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:39:21 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:36:03 2006 Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!newsfeed.pionier.net.pl!news-fra1.dfn.de!newscore.univie.ac.at!aconews-feed.univie.ac.at!aconews.univie.ac.at!not-for-mail Original-Sender: rubey@localhost.localdomain Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-NNTP-Posting-Host: 131.130.96.153 Original-X-Trace: 1130761082 usenet.univie.ac.at 10578 131.130.96.153 Original-X-Complaints-To: abuse@univie.ac.at Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:6079 Original-Lines: 61 X-Gnus-Article-Number: 6079 Tue Jan 17 17:36:03 2006 Xref: news.gmane.org gmane.emacs.gnus.user:5937 Archived-At: 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