[dovecot-cvs] dovecot-lda/src mail-send.c,1.6,1.7

cras at dovecot.org cras at dovecot.org
Thu Oct 27 17:19:29 EEST 2005


Update of /var/lib/cvs/dovecot-lda/src
In directory talvi:/tmp/cvs-serv19572

Modified Files:
	mail-send.c 
Log Message:
Call mail_get_first_header() before mail_get_stream() or we break. Should be
fixed in lib-storage code though..



Index: mail-send.c
===================================================================
RCS file: /var/lib/cvs/dovecot-lda/src/mail-send.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- mail-send.c	14 Oct 2005 20:26:41 -0000	1.6
+++ mail-send.c	27 Oct 2005 14:19:27 -0000	1.7
@@ -138,12 +138,12 @@
     size_t size;
     int ret;
 
+    return_path = mail_get_first_header(mail, "Return-Path");
+
     input = mail_get_stream(mail, NULL, NULL);
     if (input == NULL)
 	    return -1;
 
-    return_path = mail_get_first_header(mail, "Return-Path");
-
     smbuf[0] = "sendmail";
     smbuf[1] = "-i";		/* ignore dots */
     if (return_path && *return_path) {



More information about the dovecot-cvs mailing list