Re: Snarf Vcards

Roland Winkler <[email protected]> Thu, 07 Jul 2022 22:50:55 -0500
Newsgroups gmane.emacs.bbdb.user
Message-ID <[email protected]>
On Thu, Jul 07 2022, Roland Winkler wrote:
> On Thu, Jul 07 2022, Pascal Quesseveur wrote:
>> I have customize display of vcards in gnus using vcard-pretty-print
>> from vcard.el:
>>
>> When vcard is pretty printed, it is no more possible to use
>> bbdb-snarf-vcard on buffer.
>
> Also, I know little about vcard.el.

I took a quick look at Noah Friedman's vcard.el.  I believe this is
supposed to work with some older vcard format (rfc2426) instead of the
more recent rfc6350 that bbdb-snarf-vcard is based on.

More importantly, vcard.el converts hard-to-read raw vcards into
pretty-printed text.  Then you cannot feed this into bbdb-snarf-vcard
anymore.  It should be possible to hook bbdb-snarf-vcard into MUAs like
Gnus so that it processes the vcard MIME attachments to put them into
BBDB.  Probably this needs to be similar to how you are now using
vcard-pretty-print.