Hi.

I'm using latest CVS of BBDB and Gnus with Emacs21. In order to store
the correct email addresses of people who use TMDA, I use this code:

(defun my-bbdb-normalize-tmda-addresses (addr)
  "Removes TMDA-related strings from addresses."
  (when addr
    (cond ((string-match
            (concat "\\`\\([^0-9]+\\)\\("
                      "-dated-[^@]+\\|"
                      "-sender-[^@]+\\|"
                      "-[0-9]+\\|"
                    "\\+[^@]+\\.[^@]+\\)"
                    "\\(@.*\\)\\'") addr)
           (concat (substring addr (match-beginning 1) (match-end 1))
                   (substring addr (match-beginning 3) (match-end 3))))
          (t addr))))

(setq bbdb-canonicalize-net-hook 'my-bbdb-normalize-tmda-addresses)

This works great for email addresses, but whenever I receive an email
message that has no name, just an email address in its From field, eg:

  From: [EMAIL PROTECTED]

BBDB insists on using "joe-dated" as the name (and [EMAIL PROTECTED] as the
email address, correctly).

Any ideas what should be changed? I'd like to make BBDB realize that
this is only an email address, and if I already have a record with
this email address (and with a proper full name), it should not offer
to change the full name to some weird strings based on the email
address, since I've already set a name there...

Thanks,

-- 
BALI, Andra's                                      GPG KeyID: 78560E1C
[EMAIL PROTECTED], [EMAIL PROTECTED]                http://drewie.hup.hu
Debian GNU/Linux. The Universal Operating System.  http://www.debian.org

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to