diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-09-13 02:30:54 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-09-13 02:30:54 +0000 |
commit | 9026c5444aa126d97995f8f9b1c826109545d9f1 (patch) | |
tree | 3a241903fbed0713eadb738d8d3d919101c78a45 /libsylph/procmsg.c | |
parent | 1f5f03634cbea00ae0927605a801c19e4cfb2a04 (diff) |
disabled the passphrase dialog on query search.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1896 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/procmsg.c')
-rw-r--r-- | libsylph/procmsg.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libsylph/procmsg.c b/libsylph/procmsg.c index 5797625d..194dd374 100644 --- a/libsylph/procmsg.c +++ b/libsylph/procmsg.c @@ -1214,17 +1214,23 @@ FILE *procmsg_open_message(MsgInfo *msginfo) } static DecryptMessageFunc decrypt_message_func = NULL; +static gboolean auto_decrypt = TRUE; void procmsg_set_decrypt_message_func(DecryptMessageFunc func) { decrypt_message_func = func; } +void procmsg_set_auto_decrypt_message(gboolean enabled) +{ + auto_decrypt = enabled; +} + FILE *procmsg_open_message_decrypted(MsgInfo *msginfo, MimeInfo **mimeinfo) { FILE *fp; - if (decrypt_message_func) + if (decrypt_message_func && auto_decrypt) return decrypt_message_func(msginfo, mimeinfo); *mimeinfo = NULL; |