return receipt workaround for buggy smtp servers
authorPaul Mangan <paul@claws-mail.org>
Wed, 15 Oct 2003 10:13:54 +0000 (10:13 +0000)
committerPaul Mangan <paul@claws-mail.org>
Wed, 15 Oct 2003 10:13:54 +0000 (10:13 +0000)
ChangeLog.claws
configure.ac
src/messageview.c

index 6ab47e967dba3b35b063c22ee3af4d51bf95a408..da20192a86732d06dec1bc67f51cc0a4416cd2c9 100644 (file)
@@ -1,3 +1,10 @@
+2003-10-15 [paul]      0.9.6claws29
+
+       * src/messageview.c
+               workaround for buggy smtp servers. on sending a
+               return receipt strip the name part from the address
+               when creating headers
+               
 2003-10-15 [paul]      0.9.6claws28
 
        * sync with 0.9.7 release
index 5749ecb314d786faf6cdaf5e6eee9e64a41ea0b0..6cf8e3adcd01bce820835407fe12dda94473d863 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=28
+EXTRA_VERSION=29
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index e7fd2e3082e68d513e64258acd0a3af031091d70..44eb1d2573e2c3a93ab2f388b5e9c70bc73b731f 100644 (file)
@@ -517,7 +517,13 @@ static gint disposition_notification_send(MsgInfo *msginfo)
                FILE_OP_ERROR(tmp, "chmod");
                g_warning("can't change file mode\n");
        }
-
+       
+       gchar *addr = g_strdup(to);
+       gchar *addrp;
+       
+       extract_address(addr);
+       addrp = addr;
+       
        /* write queue headers */
        fprintf(fp, "AF:\n");
        fprintf(fp, "NF:0\n");
@@ -535,7 +541,9 @@ static gint disposition_notification_send(MsgInfo *msginfo)
        else
                fprintf(fp, "SSV:\n");
        fprintf(fp, "SSH:\n");
-       fprintf(fp, "R:<%s>\n", to);
+       fprintf(fp, "R:<%s>\n", addrp);
+       
+       g_free(addrp);
        
        /* check whether we need to save the message */
        outbox = account_get_special_folder(account, F_OUTBOX);