From: David Bremner <david@tethera.net>
To: "João Pedro" <jpedrodeamorim@gmail.com>, notmuch@notmuchmail.org
Subject: Re: Configurable deleted tags in notmuch-emacs
Date: Mon, 29 Nov 2021 16:33:03 -0400 [thread overview]
Message-ID: <87pmqi66tc.fsf@tethera.net> (raw)
In-Reply-To: <87tufxxpmh.fsf@gmail.com>
João Pedro <jpedrodeamorim@gmail.com> writes:
> Hello everyone.
>
> I'd like to suggest that the list of tags to applied to deleted drafts,
> in notmuch-emacs, is made user configurable. To be more precise, with
> notmuch-emacs version 0.34.1, under line 105 we have
>
> (defun notmuch-draft--mark-deleted ()
> "Tag the last saved draft deleted.
>
> Used when a new version is saved, or the message is sent."
> (when notmuch-draft-id
> (notmuch-tag notmuch-draft-id '("+deleted"))))
>
> where the +deleted tag is hard coded. I, and I suppose a lot of other
> users, use different tags for deleted emails. Currently I just override
> notmuch-draft--mark-deleted, but it seems like it would be just a matter
> of adding a defcustom akin to notmuch-draft-tags, though I'm not sure if
> notmuch-draft.el would be the most appropriate location, or if it could
> be reused in other scenarios.
Sounds plausible. "deleted" is also hardcoded in
notmuch-tag.el. notmuch-lib.el might be a reasonable place for the
defcustom. There is already a defcustom there for notmuch-archive-tags.\r
next prev parent reply other threads:[~2021-11-29 20:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-27 21:20 Configurable deleted tags in notmuch-emacs João Pedro
2021-11-29 20:33 ` David Bremner [this message]
2021-11-30 20:11 ` João Pedro de Amorim Paula
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmqi66tc.fsf@tethera.net \
--to=david@tethera.net \
--cc=jpedrodeamorim@gmail.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
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).