Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: ding@gnus.org
Subject: Re: using bbdb in split methods
Date: Mon, 05 Sep 2011 14:02:25 +0100	[thread overview]
Message-ID: <87pqjfi1lq.fsf@pinto.chemeng.ucl.ac.uk> (raw)
In-Reply-To: <87bouzthy1.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 05 Sep 2011 18:13:58 +0800")

Eric Abrahamsen <eric@ericabrahamsen.net> 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…
>
> E

Brilliant.  Thanks for this Eric!  This should do the trick.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 + No Gnus v0.18



  reply	other threads:[~2011-09-05 13:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-05  7:49 Eric S Fraga
2011-09-05 10:13 ` Eric Abrahamsen
2011-09-05 13:02   ` Eric S Fraga [this message]
2011-09-06  7:55   ` Eric S Fraga
2011-09-07  2:24     ` Eric Abrahamsen
2011-09-07  8:08       ` Eric S Fraga
2011-09-07 11:00         ` Rasmus
2011-09-07 15:03     ` David Engster
2011-09-27 21:39 ` Ted Zlatanov
2011-09-28 15:10   ` Eric S Fraga

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=87pqjfi1lq.fsf@pinto.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=ding@gnus.org \
    /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).