unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jameson Graef Rollins <jrollins@finestructure.net>
To: Pieter Praet <pieter@praet.org>,
	Florian Friesdorf <flo@chaoflow.net>,
	notmuch@notmuchmail.org
Subject: Re: (auto-)tagging sent messages
Date: Sun, 17 Apr 2011 11:23:33 -0700	[thread overview]
Message-ID: <878vv8hh3u.fsf@servo.factory.finestructure.net> (raw)
In-Reply-To: <87pqomgxr0.fsf@A7GMS.i-did-not-set--mail-host-address--so-tickle-me>

[-- Attachment #1: Type: text/plain, Size: 2582 bytes --]

On Sat, 16 Apr 2011 14:57:07 +0200, Pieter Praet <pieter@praet.org> wrote:
> > Further, for certain mails I sent (like this one ) I would like a
> > WAITING tag (or similar) in order to indicate that I am waiting for an
> > answer. Currently I set this manually. Could this be achieved through
> > some indicators via message mode or similar means? e.g.:
> > 
> > <#notmuch tag=WAITING> analog to <#secure method=pgpmime mode=sign>
> 
> No idea how this works since I don't follow Jameson's crypto branch,
> but it's probably not a good idea for this use case since (I presume)
> the indicator will become permanently lodged in the content of the
> mail, which isn't where highly volatile metadata belongs.

Hey, Pieter.  This doesn't actually have anything to do with the crypto
branch.  These indicators are how emacs handles signing/encryption of
outgoing messages in emacs message-mode, as well as other things like
adding attachments.  It's not actually a part of notmuch.

When using emacs message-mode to compose a message, you can add tags
like these to the message body.  When you then tell emacs to send the
message, emacs reads these tags and performs the specified operation,
like signing the message or adding an attachment.  Emacs then removes
the tags so they're never actually stored in the message.  These tags
are also not interpreted when reading a message, only when composing.

I don't think it's a bad idea to extend this system to benefit notmuch,
by instructing emacs message mode to add tags to outgoing messages.
Like someone suggested, though, it should really be done by having
notmuch index the outgoing message at the time of sending, which would
best be handled by telling notmuch to index an individual message.

Having notmuch index a single message would I think be incredibly
useful, for a lot of different reasons.  I think it would enable a lot
of nice integration with other mail handling tools.  I can imagine this
being done in a couple of ways:

By giving "notmuch new" a path to a message in the store:

  notmuch new /path/to/message

By feeding "notmuch new" a message on stdin, and then having it write
the message to a specified location:

  notmuch new /path/to/maildir <message

You could then add the ability to add tags at the time of index:

  notmuch new +foo +bar /path/to/message

I really think it would not be hard to enable notmuch to do this.  I
wonder what other things.  I think it would make things much easier for
interaction with procmail and spam filters.

jamie.

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

  parent reply	other threads:[~2011-04-18  7:16 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-14  8:03 (auto-)tagging sent messages Florian Friesdorf
2011-04-16 12:57 ` Pieter Praet
2011-04-16 19:23   ` Tom Prince
2011-04-17 17:53     ` Pieter Praet
2011-04-17 23:17       ` Tom Prince
2011-04-18  6:40         ` Pieter Praet
2011-04-17 18:23   ` Jameson Graef Rollins [this message]
2011-04-18 20:26     ` Austin Clements
2011-04-26  2:38       ` servilio
2011-04-16 22:44 ` Michael Radziej
2011-04-18 13:22   ` Xavier Maillard
2011-04-18 18:44     ` Michael Radziej
2011-04-18 19:29       ` Xavier Maillard
2011-04-19 10:18         ` Michael Radziej
2011-04-20 12:20           ` Xavier Maillard
2011-04-25 20:27             ` Carl Worth
2011-04-25 20:56               ` Tim Gray
2011-04-25 21:41                 ` Carl Worth
2011-04-25 21:59                   ` tracking non-mail files [was: Re: (auto-)tagging sent messages] Jameson Graef Rollins
2011-04-25 22:28                     ` Carl Worth
2011-04-25 22:25               ` (auto-)tagging sent messages Xavier Maillard

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=878vv8hh3u.fsf@servo.factory.finestructure.net \
    --to=jrollins@finestructure.net \
    --cc=flo@chaoflow.net \
    --cc=notmuch@notmuchmail.org \
    --cc=pieter@praet.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).