Re: **: Re: Fancy splitting with BBDB 3

2012-07-03 Thread Roland Winkler
On Mon Jul 2 2012 Sebastien Vauban wrote:
 gnus-private looks at the author of an email, and uses that for sorting the
 email in the right folder.
 
 gnus-public looks at the recipient of an email, and uses that for sorting the
 email in the right folder. That's only useful (IMHO) for mailing lists: I want
 all emails *sent to* `bbdb-info@lists.sourceforge.net' to go to the same
 folder.
 
 The corner case is when one of your colleague, for example, for which you have
 a gnus-private rule, is sending an email to a mailing list for which you have
 a gnus-public rule. In that case, gnus-public takes precedence over
 gnus-private: you colleague's email will be moved to the folder reserved for
 the mailing list.
 
 Is this all much clearer now?

Thanks, it gives me some idea what the code is supposed to do.

However, I have not used this code in bbdb-gnus.el and it is quite
possible that something got broken in this code that has not yet
been noticed / fixed. It would be good if a more experienced gnus
user could take a look.

Note also that the default value of bbdb/gnus-split-myaddr-regexp
references the variable gnus-local-domain which is obsolete since
emacs 24.1. This suggests to me once more that the relevant code in
bbdb-gnus.el could benefit from a more careful review by an
experienced gnus user.

Roland

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: **: Re: Fancy splitting with BBDB 3

2012-07-02 Thread Sebastien Vauban
Hi Roland,

 On Thu Jun 28 2012 Sebastien Vauban wrote:
 With BBDB 3, I've lost the following feature:
 
 For records which have `gnus-public' set, the fancy splitting does not
 work anymore like it did.

 What is `gnus-public' supposed to do?

Exactly what I tried to explain in my post, maybe not in a clear way, then.

gnus-private looks at the author of an email, and uses that for sorting the
email in the right folder.

gnus-public looks at the recipient of an email, and uses that for sorting the
email in the right folder. That's only useful (IMHO) for mailing lists: I want
all emails *sent to* `bbdb-info@lists.sourceforge.net' to go to the same
folder.

The corner case is when one of your colleague, for example, for which you have
a gnus-private rule, is sending an email to a mailing list for which you have
a gnus-public rule. In that case, gnus-public takes precedence over
gnus-private: you colleague's email will be moved to the folder reserved for
the mailing list.

Is this all much clearer now?

 I realized a little while ago that bbdb-gnus.el refers to gnus-public, but I
 could not find any reference to gnus-public in Gnus itself. Is this some
 (very) old Gnus feature that disappeared in more recent versions of Gnus, or
 am I missing something else? (Which version of Guns are you using with which
 version of emacs?)

It is not related to Gnus, but to BBDB itself (when used for splitting). It is
the counterpart of gnus-private, as explained above.

 I thought about removing the relevant pieces of code in bbdb-gnus.el
 that have a `FIXME' tag.

Best regards,
  Seb

-- 
Sebastien Vauban

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Fancy splitting with BBDB 3

2012-07-01 Thread Roland Winkler
On Thu Jun 28 2012 Sebastien Vauban wrote:
 With BBDB 3, I've lost the following feature:
 
 For records which have `gnus-public' set, the fancy splitting does not
 work anymore like it did.

What is `gnus-public' supposed to do? I realized a little while ago
that bbdb-gnus.el refers to gnus-public, but I could not find any
reference to gnus-public in Gnus itself. Is this some (very) old
Gnus feature that disappeared in more recent versions of Gnus, or am
I missing something else? (Which version of Guns are you using with
which version of emacs?)

I thought about removing the relevant pieces of code in bbdb-gnus.el
that have a `FIXME' tag.

Roland

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/