fixes for mail sending (in compose.c)
authorHoà Viêt Dinh <dinh.viet.hoa@free.fr>
Tue, 13 Nov 2001 18:33:32 +0000 (18:33 +0000)
committerHoà Viêt Dinh <dinh.viet.hoa@free.fr>
Tue, 13 Nov 2001 18:33:32 +0000 (18:33 +0000)
ChangeLog.claws
configure.in
src/compose.c

index 9d5e7b8..8dfd077 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-13 [hoa] 0.6.5claws10
+
+       * src/compose.c
+               some fixes when mail are sent or
+               for crossposts
+
 2001-11-13 [christoph] 0.6.5claws9
 
        * po/de.po
index 68575f1..174fee1 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=6
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws9
+EXTRA_VERSION=claws10
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
index 116a7d0..d0b430f 100644 (file)
@@ -3089,6 +3089,7 @@ static gint compose_write_headers_from_headerlist(Compose *compose,
        gboolean first_address;
        GSList *list;
        compose_headerentry *headerentry;
+       gchar * headerentryname;
 
        if (IS_IN_CUSTOM_HEADER(header)) {
                return 0;
@@ -3102,7 +3103,9 @@ static gint compose_write_headers_from_headerlist(Compose *compose,
        first_address = TRUE;
        for(list = compose->header_list; list; list = list->next) {
                headerentry = ((compose_headerentry *)list->data);
-               if(!strcmp(trans_hdr, gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(headerentry->combo)->entry)))) {
+               headerentryname = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(headerentry->combo)->entry));
+
+               if(!strcmp(trans_hdr, headerentryname)) {
                        str = gtk_entry_get_text(GTK_ENTRY(headerentry->entry));
                        Xstrdup_a(str, str, return -1);
                        g_strstrip(str);
@@ -3114,7 +3117,7 @@ static gint compose_write_headers_from_headerlist(Compose *compose,
                                        fprintf(fp, "%s: ", header);
                                        first_address = FALSE;
                                } else {
-                                       fprintf(fp, ", ");
+                                       fprintf(fp, ",");
                                }
                                fprintf(fp, "%s", buf);
                        }
@@ -3248,8 +3251,12 @@ static gint compose_write_headers(Compose *compose, FILE *fp,
                }
        }
 #endif
+       /* something is needed to check if the mail
+          will be sent to anybody ... */
+       /* 
        if (!is_draft && !compose->to_list && !compose->newsgroup_list)
                return -1;
+       */
 
        /* Subject */
        str = gtk_entry_get_text(GTK_ENTRY(compose->subject_entry));