Re: Wanderlust and EBDB integration

Kazuhiro Ito <[email protected]> Thu, 05 Oct 2017 22:56:06 +0900
Newsgroups gmane.mail.wanderlust.general
Message-ID <86376xog09.wl--xmue__25460.6392969892$1507211874$gmane$org@d1.dion.ne.jp>
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.

-- 
Kazuhiro Ito