unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Use BBDB for `rmail-output' ?
@ 2018-06-08  4:56 Xavier Maillard
  2018-06-08  6:55 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Xavier Maillard @ 2018-06-08  4:56 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I want to hack something around BBDB and Rmail. The goal is to use a
BBDB field eg. `rmail-ouput' as the target name for the function
`rmail-output' function.

AFAIK, I do not see anything to do that without a piece of advice. How
would you do that ?

-- 
Xavier Maillard                      
e/j:xavier@maillard.im               w:www.maillard.im
m: 06 52 18 63 43
GPG: 9983 DCA1 1FAC 8DA7 653A  F9AA BA49 09B7 8F04 DE1B



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Use BBDB for `rmail-output' ?
@ 2018-06-13  3:40 Roland Winkler
  0 siblings, 0 replies; 10+ messages in thread
From: Roland Winkler @ 2018-06-13  3:40 UTC (permalink / raw)
  To: help-gnu-emacs

End of last week I already tried to reply to this thread, but my
message was eaten up by the friendly autoauthorizer at Gmane.org.
Now I try again via help-gnu-emacs@gnu.org, though I may have
forgotten some details I wrote previously.

==================================================================

On Fri, Jun 08 2018, Eli Zaretskii wrote:
>> From: Robert Pluim <rpluim@gmail.com>
>> I suspect Xavier is talking about setting the output filename for
>> rmail-output based on a BBDB field.
>
> And rmail-output-file-alist doesn't help?

I am not an Rmail user.  What is a typical usage of
rmail-output-file-alist?  Reading the info node on Rmail Output, it
seems to me that the variable rmail-automatic-folder-directives is
better suited "to take inspiration from BBDB".  The latter variable
reminds me of vm-auto-folder-alist that BBDB can populate
automatically.  Essentially, the idea is to give each BBDB record a
field vm-folder (or rmail-folder), the value of which is the name of
the folder where you want to put the messages for this person (that
is, the messages having an email address of that person in the From
or To header).  Then BBDB takes the email addresses of the BBDB
record of that person to construct a regexp that is added to
vm-auto-folder-alist, just like REGEXP in the docstring of
rmail-automatic-folder-directives.

So: it seems to me it would make sense to add similar code to BBDB
that can populate rmail-automatic-folder-directives.  (Maintaining
vm-auto-folder-alist by hand can be rather painful, and
rmail-automatic-folder-directives is probably be similar in that
respect.)

Maybe there are also scenarios where BBDB could help with
rmail-output-file-alist.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-06-13  3:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-08  4:56 Use BBDB for `rmail-output' ? Xavier Maillard
2018-06-08  6:55 ` Eli Zaretskii
2018-06-08  9:19   ` Robert Pluim
2018-06-08  9:28     ` Eli Zaretskii
2018-06-08  9:38       ` Robert Pluim
2018-06-08 15:14         ` Xavier Maillard
2018-06-08 15:10       ` Xavier Maillard
2018-06-08 15:07     ` Xavier Maillard
2018-06-08 16:24       ` Robert Pluim
  -- strict thread matches above, loose matches on Subject: below --
2018-06-13  3:40 Roland Winkler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).