From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79832 Path: news.gmane.org!not-for-mail From: Eric S Fraga Newsgroups: gmane.emacs.gnus.general Subject: Re: using bbdb in split methods Date: Mon, 05 Sep 2011 14:02:25 +0100 Message-ID: <87pqjfi1lq.fsf@pinto.chemeng.ucl.ac.uk> References: <87hb4rsa22.fsf@ucl.ac.uk> <87bouzthy1.fsf@ericabrahamsen.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1315227771 4445 80.91.229.12 (5 Sep 2011 13:02:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 5 Sep 2011 13:02:51 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28126@lists.math.uh.edu Mon Sep 05 15:02:47 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R0Yp5-0000Sm-4u for ding-account@gmane.org; Mon, 05 Sep 2011 15:02:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1R0Yox-00077C-7P; Mon, 05 Sep 2011 08:02:39 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1R0Yov-000772-NS for ding@lists.math.uh.edu; Mon, 05 Sep 2011 08:02:37 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R0Yor-00067S-Bg for ding@lists.math.uh.edu; Mon, 05 Sep 2011 08:02:37 -0500 Original-Received: from vscani-e.ucl.ac.uk ([144.82.108.33]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1R0Yon-0006bo-O3 for ding@gnus.org; Mon, 05 Sep 2011 15:02:29 +0200 Original-Received: from pinto.chemeng.ucl.ac.uk ([128.40.74.171] helo=localhost) by vscani-e.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1R0Yoj-0002Oh-Px for ding@gnus.org; Mon, 05 Sep 2011 14:02:25 +0100 X-Face: av6A"vZ{AypDB`d^.T35oG%$E*Qh]4F)K=*$-NHz5{7WZfAFQFB]F@gf}l9`XLs9(iD?D/! nafKE,S#G!4W/flj=9(U{]t'lP,,5~:s*~;kKR Mail-Followup-To: ding@gnus.org In-Reply-To: <87bouzthy1.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 05 Sep 2011 18:13:58 +0800") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-UCL-MailScanner-Information: Please contact the UCL Helpdesk, helpdesk@ucl.ac.uk for more information X-UCL-MailScanner: Found to be clean X-UCL-MailScanner-From: e.fraga@ucl.ac.uk X-Spam-Status: No X-Spam-Score: -5.4 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79832 Archived-At: Eric Abrahamsen writes: > On Mon, Sep 05 2011, Eric S Fraga wrote: > >> Hello, >> >> I get way too much email (don't we all?) but using gnus with splitting >> helps tremendously in tackling this problem. I use fancy splitting and >> everything works just fine. The majority of my emails get sent to >> appropriate mail folders (work colleagues, mailing lists, etc.) and I'm >> pretty happy with his. However, I still have a "catch all" folder that >> takes any emails that have not been split off. This still ends up being >> too big and I'm forced to look at it more often than I would like. >> >> I would like to further split emails that would end up here without >> having to write any more rules based on specific "from" entries. What I >> would like ideally is to be able to split off emails if the "from" or >> even the "to" addresses are one that are known to BBDB, implying >> messages from or to people I know or that I have corresponded with in >> the past. >> >> Is this possible? Has anybody done this already? Any pointers to how >> to do this would be very welcome! I assume that something should be >> possible using the "(: FUNCTION args...)" form but this is where I get >> stuck. Maybe I need help from somebody with BBDB expertise? >> >> Many thanks, >> eric > > Unless I'm misunderstanding you, this is already built into BBDB. Give > any BBDB record a "gnus-private" field with a gnus group name (ie > "mail.myfriend"). Then set the following two variables: > > (setq nnmail-split-methods 'bbdb/gnus-split-method > bbdb/gnus-split-nomatch-function 'nnmail-split-fancy) > > Splits will happen for BBDB records first, and then fall through to > nnmail-split-fancy. That ought to do it=E2=80=A6 > > E Brilliant. Thanks for this Eric! This should do the trick. --=20 : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 + No Gnus v0.= 18