From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 296217477120 X-Google-Groups: supmua X-Google-Thread: 3030fda1bf,e2c10469e4cd59d5,start X-Google-Attributes: gid3030fda1bf,domainid0,public,googlegroup X-Google-NewGroupId: yes X-Received: by 10.180.19.226 with SMTP id i2mr2035877wie.5.1414658286084; Thu, 30 Oct 2014 01:38:06 -0700 (PDT) X-BeenThere: supmua@googlegroups.com Received: by 10.180.103.105 with SMTP id fv9ls465199wib.6.gmail; Thu, 30 Oct 2014 01:38:05 -0700 (PDT) X-Received: by 10.180.93.35 with SMTP id cr3mr2730550wib.2.1414658285759; Thu, 30 Oct 2014 01:38:05 -0700 (PDT) Return-Path: Received: from mout.web.de (mout.web.de. [212.227.15.3]) by gmr-mx.google.com with ESMTPS id sg7si35650lbb.1.2014.10.30.01.38.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Oct 2014 01:38:05 -0700 (PDT) Received-SPF: pass (google.com: domain of ruthard.baudach@web.de designates 212.227.15.3 as permitted sender) client-ip=212.227.15.3; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ruthard.baudach@web.de designates 212.227.15.3 as permitted sender) smtp.mail=ruthard.baudach@web.de Received: from ruthard-lappi.fritz.box ([94.217.201.160]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0Lj88M-1YMfUh0PPS-00dJck for ; Thu, 30 Oct 2014 09:38:05 +0100 From: Ruthard Baudach To: supmua Subject: autolabel outgoing mail Date: Thu, 30 Oct 2014 09:38:03 +0100 Message-Id: <1414658244-sup-4798@ruthard-lappi> User-Agent: Sup/0.20.0 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1414658283-849201-1606-9499-3-=" X-Provags-ID: V03:K0:P/zbGiKmyz6kBaCgrFDin7cK9Ni4RVeINAIR4s/EOOz8jSwErMj UnV9TRlr5X3jApQSMSvOwBIZVxgn3OuRBptq66K/8keqhsADopL1fBgxyWq1B/VKBamPBFL tEpntOmwjpv1T4oOf0Gq11R5vc9azYnR9q/5IFBzo+Fwcl+KuQKW0iOzXl5cysd5WaFEuaX WDxddQccAG8eRnbG1MbTw== X-UI-Out-Filterresults: notjunk:1; --=-1414658283-849201-1606-9499-3-= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=C3=BCsseln und signieren. Meine PGP-Id: AC5AC6C2 --=-1414658283-849201-1606-9499-3-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJUUfjrAAoJEA852hysWsbCvOAH/jNOgPLHm4Zq9u4MOtGr8woX swLkomrufCwZochzeXJ/FzEkIlmmCD68swH+mC0ZmxoaMfYS/QSunGB+lqWqcuMz xirM2NzqRuvQjUV58axzVhEEYlhv8G6qPvueZmY/kDmxKbEoRGhz2x3yS3HNThXE ssoiGWpGGW4PMOG79cQKfjoJuoepvnzU9wBEHlxDdyqkHkFfCl8w6BuIK2Mvn6IY GCnkfasRYp/2V4h3AuEHK0TW57B6k8f0A8gy2UTqqnQsH9oQnl35mv+kblkzfq64 3GNLJpZlK7rHaW98pbc/xNQDd05X9PzFdDfqdqBExO0HBRRaMcGiJlGwbsXpQ9Y= =uZv2 -----END PGP SIGNATURE----- --=-1414658283-849201-1606-9499-3-=--