Discussions of development and use of the Sup email client
 help / color / mirror / Atom feed
* autolabel outgoing mail
@ 2014-10-30  8:38 Ruthard Baudach
  0 siblings, 0 replies; only message in thread
From: Ruthard Baudach @ 2014-10-30  8:38 UTC (permalink / raw)
  To: supmua

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-30  8:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-30  8:38 autolabel outgoing mail Ruthard Baudach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox