[Enigmail] Extension to avoid signing on certain mails
mstormo
mstormo at gmail.com
Fri Feb 20 04:14:18 PST 2009
Patrick Brunschwig wrote:
>
> Marius Storm-Olsen wrote:
>> and I want my extension to only automatically turn off
>> the signing for *this particular mail type*, even if
>> my mail.identity says that I'm supposed to be signing
>> them.
>
> I think the main problem for your listener is that it's not defined if
> it should be run before or after the event listener that Enigmail
> specified. There is no guarantee of any sequence.
>
> If I were you, I'd hook on some other event that is triggered earlier,
> like observing "mail:composeOnSend".
>
> In addition, I'd make sure you also activate the option to ignore
> per-recipient rules. But as John said: you may be better off by just
> using the per-recipient rules ...
>
Hmm, using mail:composeOnSend is an idea, I'll give that a try. Though, I
guess I really want to do this right after I create the create the composer
window. I could then turn off the signing, and notify the user with a
message in the window. This would then allow the user to turn it *on* again,
if he/she *really* wants to sign the mail.
Btw, I can't really use the per-recipient rules, as it's not related to the
person receiving it, but the type of email.
Basically, I want to send Git patches. The patches are sent in the body, and
not as an attachment. So, the mail cannot be signed, or else it would create
complications for the receiving part, which needs to perform extra steps on
his end, before he can apply the patch.
So, when you send patches with my extension, I need to check if Enigmail is
installed, if so check if signing is turned on, if so turn it off and notify
the user that Signing is turned off for this mail, contrary to mail account
default settings.
--
.marius
--
View this message in context: http://www.nabble.com/Extension-to-avoid-signing-on-certain-mails-tp22109883p22119536.html
Sent from the MozDev - enigmail mailing list archive at Nabble.com.
More information about the Enigmail
mailing list