From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.help Subject: Re: Use BBDB for `rmail-output' ? Date: Tue, 12 Jun 2018 22:40:18 -0500 Message-ID: <37410.73050.531304.23328@gargle.gargle.HOWL> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1528861126 28473 195.159.176.226 (13 Jun 2018 03:38:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2018 03:38:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 13 05:38:42 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSwcL-0007Kv-Jw for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jun 2018 05:38:41 +0200 Original-Received: from localhost ([::1]:59638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSweS-0007SQ-MW for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 23:40:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSwdx-0007SH-T3 for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 23:40:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSwdw-0001CH-TE for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 23:40:21 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSwdw-0001CA-OT for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 23:40:20 -0400 Original-Received: from [2602:30a:2e52:d720:65b7:1416:12e7:8bfb] (port=38686 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1fSwdw-0001Y6-Ap for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 23:40:20 -0400 In-Reply-To: 83lgbpvd8v.fsf@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117125 Archived-At: 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 >> 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.