[PATCH 1/2] emacs: maildir fcc make insert more flexible
Mark Walters
markwalters1009 at gmail.com
Mon Aug 28 04:27:03 PDT 2017
Hi
Thanks for the review.
On Mon, 28 Aug 2017, David Edmondson <dme at dme.org> 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
Mark
More information about the notmuch
mailing list