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 68d1386..16a6998 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 21971a5..2c56031 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 d614310..9aadc54 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 a6ef740..22e98e8 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 36a4d2c..2661afa 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,