Discussions of development and use of the Sup email client
 help / color / mirror / Atom feed
From: Ruthard Baudach <ruthard.baudach@web.de>
To: supmua <supmua@googlegroups.com>
Subject: autolabel outgoing mail
Date: Thu, 30 Oct 2014 09:38:03 +0100	[thread overview]
Message-ID: <1414658244-sup-4798@ruthard-lappi> (raw)

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

I'd like to be able to automatically label outgoing mail as well as
incomming mail.

The sendmail hook seems to be the natural place to do it, I found no
other hook that could be used.

The before-add-message hook receives the message object, and by using 
message.add_label "Label" labels can be added.

The sendmail hook receives an RMail::message object, which is not able
to add labels to the index.

Probably I could access the Xapian index using the message id to add
labels, but is there some easier possibility to achieve the goal of
automatically labeling outgong mail?


Best regards,

Ruthard

----

Emails bitte verschlüsseln und signieren.
Meine PGP-Id: AC5AC6C2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

                 reply	other threads:[~2014-10-30  8:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1414658244-sup-4798@ruthard-lappi \
    --to=ruthard.baudach@web.de \
    --cc=supmua@googlegroups.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox