Sridhar Boovaraghavan writes:
> Hi,
>
> Is there a way to import the .mailrc file (where I have a lot of my
> mail aliases) into the BBDB?
I created a simple regular expression that converts about 70% of the
entries in .mailrc to BBDB format.
(replace-regexp "^alias +\\([^ ]+\\) +\"\\([^ ]+\\) +\\([^ ]+\\) +<\\([^ ]+\\)>\"$"
"[\"\\2\" \"\\3\" (\"\\1\") nil nil nil (\"\\4\") ((creation-date . \"2000-05-19\")
(timestamp . \"2000-05-19\")) nil]" nil)
The creation-date and timestamp are bogus. You can replace them with
different values if you wish. This creates BBDB entries in the latest
format.
It chokes on people with middle initials and names (like Sue Ann
Curley). Apart from this it works well.
It also doesn't handle groups at all - something that I need to figure
out how to do in BBDB and have asked in a separate e-mail.
Maybe this could be cleaned up and "enhanced" to handle some of the
more complex cases and could be a little function in bbdb-migrate?
Sridhar
--
Sridhar Boovaraghavan
[EMAIL PROTECTED]
http://www.geocities.com/sridhar_ml/
_______________________________________________
bbdb-info mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/bbdb-info