2009-03-19 [colin] 3.7.1cvs22
authorColin Leroy <colin@colino.net>
Thu, 19 Mar 2009 16:35:36 +0000 (16:35 +0000)
committerColin Leroy <colin@colino.net>
Thu, 19 Mar 2009 16:35:36 +0000 (16:35 +0000)
* src/toolbar.c
Put spam button in default toolbar even if
bogofilter and spamassassin are not built.
Other anti-spam plugin could exist! :)
* src/common/utils.c
Fix exit status fetch on win32

ChangeLog
PATCHSETS
configure.ac
src/common/utils.c
src/toolbar.c

index 7c2d47c37da32d2193fa8bba6a62cb97f9bcdf0f..c4f744cc2847185f5bf5fd2d727fa8a96800de95 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-03-19 [colin]     3.7.1cvs22
+
+       * src/toolbar.c
+               Put spam button in default toolbar even if
+               bogofilter and spamassassin are not built.
+               Other anti-spam plugin could exist! :)
+       * src/common/utils.c
+               Fix exit status fetch on win32
+
 2009-03-18 [paul]      3.7.1cvs21
 
        * src/gtk/spell_entry.c
index 5f61cca5b76f5b3b772f5ddaa9c92909a1cd86ad..906d9776b1d806b0dd470ac639b5da6954c2a514 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.382.2.504 -r 1.382.2.505 src/compose.c;  ) > 3.7.1cvs19.patchset
 ( cvs diff -u -r 1.36.2.167 -r 1.36.2.168 src/common/utils.c;  ) > 3.7.1cvs20.patchset
 ( cvs diff -u -r 1.1.2.5 -r 1.1.2.6 src/gtk/spell_entry.c;  ) > 3.7.1cvs21.patchset
+( cvs diff -u -r 1.43.2.107 -r 1.43.2.108 src/toolbar.c;  cvs diff -u -r 1.36.2.168 -r 1.36.2.169 src/common/utils.c;  ) > 3.7.1cvs22.patchset
index 6a1206aacf59c0c5632cda9ac120970bac8e0a87..44bd33dd1f3ebbacf87be912f67f409ad154a7a4 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=7
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=21
+EXTRA_VERSION=22
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 2fc71bea927a8287f3b0a27a811e0ebe712ec84d..01578b5f2abb43afdd924d2359e05a90e64d49a5 100644 (file)
@@ -3286,18 +3286,25 @@ static gint execute_sync(gchar *const argv[])
 
        cm_return_val_if_fail(argv != NULL && argv[0] != NULL, -1);
 
+#ifdef G_OS_UNIX
        if (g_spawn_sync(NULL, (gchar **)argv, NULL, G_SPAWN_SEARCH_PATH,
                         NULL, NULL, NULL, NULL, &status, NULL) == FALSE) {
                g_warning("Couldn't execute command: %s\n", argv[0]);
                return -1;
        }
 
-#ifdef G_OS_UNIX
        if (WIFEXITED(status))
                return WEXITSTATUS(status);
        else
                return -1;
 #else
+       if (g_spawn_sync(NULL, (gchar **)argv, NULL, G_SPAWN_SEARCH_PATH| 
+                        G_SPAWN_CHILD_INHERITS_STDIN|G_SPAWN_LEAVE_DESCRIPTORS_OPEN,
+                        NULL, NULL, NULL, NULL, &status, NULL) == FALSE) {
+               g_warning("Couldn't execute command: %s\n", argv[0]);
+               return -1;
+       }
+
        return status;
 #endif
 }
index 2f92040a27c199afa156e54a54441143960aeee5..a3297ddc6e5156ded8f4ec0bdc57b88355334a87 100644 (file)
@@ -489,9 +489,7 @@ static void toolbar_set_default_main(void)
                { A_SEPARATOR},
                { A_TRASH},
 #ifndef GENERIC_UMPC
-#if (defined(USE_SPAMASSASSIN_PLUGIN) || defined(USE_BOGOFILTER_PLUGIN))
                { A_LEARN_SPAM},
-#endif
 #endif
                { A_SEPARATOR},
                { A_GOTO_NEXT}
@@ -593,9 +591,7 @@ static void toolbar_set_default_msgview(void)
                { A_SEPARATOR},
                { A_TRASH},
 #ifndef GENERIC_UMPC
-#if (defined(USE_SPAMASSASSIN_PLUGIN) || defined(USE_BOGOFILTER_PLUGIN))
                { A_LEARN_SPAM},
-#endif
 #endif
                { A_GOTO_NEXT}
        };