Re: [PATCH 1/2] emacs: maildir fcc make insert more flexible

Subject: Re: [PATCH 1/2] emacs: maildir fcc make insert more flexible

Date: Mon, 28 Aug 2017 12:27:03 +0100

To: David Edmondson,


From: Mark Walters


Thanks for the review.

On Mon, 28 Aug 2017, David Edmondson <> wrote:
> On Monday, 2017-08-28 at 08:32:21 +0100, Mark Walters wrote:
>> This changeset makes the function
>> notmuch-maildir-fcc-with-notmuch-insert slightly more flexible by
>> allowing some of the prompts to be controlled by the caller.
>> ---
>>  emacs/notmuch-maildir-fcc.el | 16 ++++++++++------
>>  1 file changed, 10 insertions(+), 6 deletions(-)
>> diff --git a/emacs/notmuch-maildir-fcc.el b/emacs/notmuch-maildir-fcc.el
>> index 1551e8b..acff24d 100644
>> --- a/emacs/notmuch-maildir-fcc.el
>> +++ b/emacs/notmuch-maildir-fcc.el
>> @@ -227,7 +227,7 @@ should be a list of tag changes to apply to the inserted message."
>>      (apply 'notmuch-call-notmuch-process
>>  	   :stdin-string (buffer-string) "insert" args)))
>> -(defun notmuch-maildir-fcc-with-notmuch-insert (fcc-header &optional create)
>> +(defun notmuch-maildir-fcc-with-notmuch-insert (fcc-header &optional create header-name)
> Given that this is not FCC specific, perhaps rename it?

Yes that might make sense.

>>    "Store message with notmuch insert.
>>  The fcc-header should be of the form \"folder +tag1 -tag2\" where
> I realise that this patch set didn't add this string, but it is mildly
> ridiculous. There's no reason that we couldn't use a list, where a
> leading “+” or “-” indicates a tag and anything else is a folder.
> Even two variables (one for folder and another for tags) would be an
> improvement

The reason for this choice is that, when writing the postpone code, I
wanted to keep within the message mode compose world, which has the fcc
header as a string.

I think I would also only like to be queried once when inserting. Or are
you suggesting that the user types in a lisp list?

Best wishes


notmuch mailing list