[Enigmail] Extension to avoid signing on certain mails
Marius Storm-Olsen
mstormo at gmail.com
Thu Feb 19 03:22:01 PST 2009
Hi guys,
I'm working on an extension which will send a certain type
of mails, which should never be signed. However, I'm
struggling with getting the .js code right to turn off the
PGP signing.
Right now I have something like
window.addEventListener('compose-send-message', checkSigning, true);
where
checkSigning: function() {
var signing_on = false;
try {
if (document.getElementById("enigmail_signed_send").getBoolAttribute("checked")) {
enigSetSendMode('toggle-sign');
}
} catch (e) {}
},
as I couldn't see any particular way for other extensions
to query the signing state, and setting it. However, the
code above fails miserably. Any input on how I can
correctly handle this?
My configuration is
extensions.enigmail.confirmBeforeSend = false
extensions.enigmail.disableSMIMEui = false
extensions.enigmail.displaySignWarn = false
mail.identity.id1.pgpSignPlain = true
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.
Thanks for any input!
--
.marius
More information about the Enigmail
mailing list