+2006-12-04 [colin] 2.6.1cvs2
+
+ * src/compose.c
+ Run pre-send hook only when checking
+ everything
+
2006-12-04 [paul] 2.6.1cvs1
* NEWS
( cvs diff -u -r 1.36.2.91 -r 1.36.2.92 src/common/utils.c; ) > 2.6.0cvs82.patchset
( cvs diff -u -r 1.8.2.26 -r 1.8.2.27 README; ) > 2.6.0cvs83.patchset
( cvs diff -u -r 1.42.2.23 -r 1.42.2.24 NEWS; cvs diff -u -r 1.8.2.27 -r 1.8.2.28 README; cvs diff -u -r 1.1.2.12 -r 1.1.2.13 RELEASE_NOTES; cvs diff -u -r 1.654.2.2163 -r 1.654.2.2164 configure.ac; cvs diff -u -r 1.30.2.13 -r 1.30.2.14 tools/README; ) > 2.6.1cvs1.patchset
+( cvs diff -u -r 1.382.2.338 -r 1.382.2.339 src/compose.c; ) > 2.6.1cvs2.patchset
static gboolean compose_check_for_valid_recipient
(Compose *compose);
static gboolean compose_check_entries (Compose *compose,
- gboolean check_subject);
+ gboolean check_everything);
static gint compose_write_to_file (Compose *compose,
FILE *fp,
gint action,
return TRUE;
}
-static gboolean compose_check_entries(Compose *compose, gboolean check_subject)
+static gboolean compose_check_entries(Compose *compose, gboolean check_everything)
{
const gchar *str;
if (!compose->batch) {
str = gtk_entry_get_text(GTK_ENTRY(compose->subject_entry));
- if (*str == '\0' && check_subject == TRUE) {
+ if (*str == '\0' && check_everything == TRUE) {
AlertValue aval;
aval = alertpanel(_("Send"),
}
}
- if (hooks_invoke(COMPOSE_CHECK_BEFORE_SEND_HOOKLIST, compose))
+ if (check_everything && hooks_invoke(COMPOSE_CHECK_BEFORE_SEND_HOOKLIST, compose))
return FALSE;
return TRUE;