2006-11-10 [mones] 2.6.0cvs28
authorRicardo Mones <mones@claws-mail.org>
Fri, 10 Nov 2006 13:23:58 +0000 (13:23 +0000)
committerRicardo Mones <mones@claws-mail.org>
Fri, 10 Nov 2006 13:23:58 +0000 (13:23 +0000)
* src/compose.c
* src/compose.h
added COMPOSE_CHECK_BEFORE_SEND hook

ChangeLog
PATCHSETS
configure.ac
src/compose.c
src/compose.h

index 68d138606cdaff007d078956ce10712889de031c..16a6998fb5a57984e857d60a0727702542b92c89 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-11-10 [mones]     2.6.0cvs28
+
+       * src/compose.c
+       * src/compose.h
+               added COMPOSE_CHECK_BEFORE_SEND hook
+
 2006-11-10 [paul]      2.6.0cvs27
 
        * src/crash.c
index 21971a50aaf5b5fd9e0b1afde24bc8ec85169aa6..2c56031c658f60dffb4aca4eb6f416290f5a2ccc 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.1.2.5 -r 1.1.2.6 manual/addrbook.xml;  cvs diff -u -r 1.1.2.33 -r 1.1.2.34 manual/advanced.xml;  cvs diff -u -r 1.1.2.13 -r 1.1.2.14 manual/faq.xml;  cvs diff -u -r 1.1.2.8 -r 1.1.2.9 manual/intro.xml;  ) > 2.6.0cvs25.patchset
 ( cvs diff -u -r 1.1.4.57 -r 1.1.4.58 src/etpan/imap-thread.c;  ) > 2.6.0cvs26.patchset
 ( cvs diff -u -r 1.23.2.18 -r 1.23.2.19 src/crash.c;  cvs diff -u -r 1.115.2.112 -r 1.115.2.113 src/main.c;  ) > 2.6.0cvs27.patchset
+( cvs diff -u -r 1.382.2.326 -r 1.382.2.327 src/compose.c;  cvs diff -u -r 1.50.2.28 -r 1.50.2.29 src/compose.h;  ) > 2.6.0cvs28.patchset
index d6143100673a9d094cf26cf62b4163be37469856..9aadc5440b15895d09093b23d9aaf8d00297f567 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=6
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=27
+EXTRA_VERSION=28
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index a6ef740f8a48d9cbb497c39deb4a501b5a50f44a..22e98e8ec3f875ae30cd1aec66d472b6cb3c675a 100644 (file)
 #include "inc.h"
 #include "message_search.h"
 #include "combobox.h"
+#include "hooks.h"
 
 enum
 {
@@ -4216,6 +4217,9 @@ static gboolean compose_check_entries(Compose *compose, gboolean check_subject)
                }
        }
 
+       if (hooks_invoke(COMPOSE_CHECK_BEFORE_SEND_HOOKLIST, compose))
+               return FALSE;
+
        return TRUE;
 }
 
index 36a4d2c32b9920f31ab9a9fd6726899703fa97bb..2661afac9528db290f397021f9b1f847b2277199 100644 (file)
@@ -42,6 +42,8 @@ typedef struct _AttachInfo    AttachInfo;
 #include "gtkaspell.h"
 #endif
 
+#define COMPOSE_CHECK_BEFORE_SEND_HOOKLIST "compose_check_before_send"
+
 typedef enum
 {
        COMPOSE_TO,