On Wed Dec 28 2011 Leo wrote:
> On 2011-12-28 09:29 +0800, Sam Steingold wrote:
> > (custom-set-variables
> >  '(bbdb-auto-notes-rules
> >    '(("Web" (".*" www 0))
> >      ("X-Web" ("<*\\(^>*\\)>*" www 1))
> >      ("X-WWW-Homepage" ("<*\\([^>]*\\)>*" www 1))
> >      ("X-Url" ("<*\\([^>]*\\)>*" www 1))
> >      ("X-Url-From" ("<*\\([^>]*\\)>*" www 1))
> >      ("Organization" (".*" organization 0))
> >      ("Organisation" (".*" organization 0))
> >      ("X-Organisation" (".*" organization 0))
> >      ("X-Organization" (".*" organization 0)))))
> 
> Just a note. This only modifies the notes subfield (as in
> bbdb-notes-label-list), not the standard organization field.

Not quite! Leo, I modified the code following your request:
In Sam's setting of bbdb-auto-notes-rules, the line

      ("Organization" (".*" organization 0))

means that if the message has an "Organization" header, the value of
that header is added to the organization field of the corresponding
BBDB record (which, I assume is what Sam wants to do...)

On 2011-12-27 09:29 +0800, Sam Steingold wrote:
> When visiting an article from "foo <b...@baz.com>" who is not in my db,
> I am offered to add name "foo" and address "b...@baz.com" to the record
> of "First Last - foo", i.e., a person whose _organization_ is "foo".
> I think this is wrong: matching the name "foo" against organization
> "foo".

...Yet this does not yet explain Sam's problem: if the message of
"foo <b...@baz.com>" had a header "Organization: Woozle", his setting
of bbdb-auto-notes-rules should add "Woozle" to Foo's BBDB record.
Yet it should not operate on an existing record where the
organization field had value 'Foo' (unless the value of the name
field was 'Foo', too).

Right now I am puzzled...

In general, multiple records may share the same organization field.
Which record is picked then?

Roland

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to