From a80f1bd4bcf6323883279e5c09aa9a13b5e63a2f Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Sun, 30 Dec 2007 00:04:37 +0000 Subject: [PATCH] Launch exe for imap2 when new mail is found; SVN revision: 33294 --- imap2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/imap2.c b/imap2.c index 89db975..2fc901b 100644 --- a/imap2.c +++ b/imap2.c @@ -222,6 +222,11 @@ _mail_imap_server_del (void *data, int type, void *event) ic->server = NULL; _mail_set_text (ic->data); + + if ((ic->config->num_new > 0) + && (ic->config->use_exec) && (ic->config->exec)) + _mail_start_exe (ic->config); + return 0; }