Re: Wanderlust and EBDB integration

Eric Abrahamsen <[email protected]> Thu, 05 Oct 2017 11:44:05 -0700
Newsgroups gmane.mail.wanderlust.general
Message-ID <87h8vdjuyy.fsf__43025.417024228$1507229119$gmane$org@ericabrahamsen.net>
Kazuhiro Ito <[email protected]> writes:

> Hi,
>
>> The one thing I'm missing is a couple of functions for extracting the
>> message body and message signature of the message currently being
>> viewed. This is for the purpose of extracting contact information from
>> the text: ie, if someone emails you someone else's name and email
>> address, EBDB should be able to extract that automatically from the
>> message and create a new contact.
>> 
>> The functions need to start in the summary buffer (`wl-summary-mode'),
>> and do a save-excursion down to the message itself. One function returns
>> the body of the message as a string, the other function returns the
>> signature as a string.
>> 
>> Fifteen minutes with the WL codebase didn't reveal a succinct solution
>> for this, can anyone point me in the right direction?
>
> Unlike bbdb-wl.el bundled with BBDB 3.x, bbdb-wl.el for BBDB 2.x
> (bundled with Wanderlut) and lsdb.el extract header field values from
> original message buffer.  You can get message body with the same
> approach, but you need to parse and decode it by yourself.
>
>> Right now I've provided the
>> option to override the TAB key to call `ebdb-complete-mail' instead of
>> WL's own functions, but if there's a more graceful way of integrating
>> EBDB mail completion, I would love to know about it.
>
> Wanderlust does not assume user defined address completing function,
> so you need to override keymap or function like other analogous
> softwares.

Perfect -- thanks for these pointers! That should be all I need.

Thanks again,
Eric