* ERRATA
@ 2005-01-17 23:43 Mads Martin Joergensen
0 siblings, 0 replies; only message in thread
From: Mads Martin Joergensen @ 2005-01-17 23:43 UTC (permalink / raw)
To: mlmmj
[-- Attachment #1: Type: text/plain, Size: 428 bytes --]
Hey all,
Maybe some of you noticed the wrong envelope from on the last mail. It
was due to a code-snippet getting inside a while() loop where it should
have been on the outside after.
I've attached the patch.
--
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?"
-- A. P. J.
[-- Attachment #2: mlmmj-send-verpfix.diff --]
[-- Type: text/plain, Size: 2488 bytes --]
Index: mlmmj-send.c
===================================================================
RCS file: /home/mmj/MMJCVS/mlmmj/src/mlmmj-send.c,v
retrieving revision 1.69
diff -u -r1.69 mlmmj-send.c
--- mlmmj-send.c 16 Jan 2005 18:43:48 -0000 1.69
+++ mlmmj-send.c 17 Jan 2005 23:40:34 -0000
@@ -983,7 +983,7 @@
"header. Not sending with VERP.");
verp = NULL;
}
-
+
if(verp) {
initsmtp(&sockfd, relay);
if(write_mail_from(sockfd, verpfrom, verp)) {
@@ -1053,49 +1053,45 @@
stl.count = 0;
}
} while(res > 0);
- if(stl.count) {
- initsmtp(&sockfd, relay);
- if(verp) {
- sendres = send_mail_verp(sockfd,
- &stl, mailmap,
- st.st_size,
- verpfrom,
- listdir, hdrs, hdrslen,
- body, bodylen, verp);
- if(sendres)
- requeuemail(listdir, strindex,
- &stl, 0);
- } else {
- sendres = send_mail_many_list(sockfd,
- NULL, NULL, mailmap,
- st.st_size, &stl,
- listaddr,
- archivefilename,
- listdir, mlmmjbounce,
- hdrs, hdrslen, body,
- bodylen);
- }
- endsmtp(&sockfd);
- for(i = 0; i < stl.count; i++)
- myfree(stl.strs[i]);
- stl.count = 0;
- }
-
- myfree(verpfrom);
myfree(subfilename);
- myfree(stl.strs);
close(subfd);
- if (sendres) {
- /* If send_mail_many() failed we close the
- * connection to the mail server in a brutal
- * manner, because we could be in any state
- * (DATA for instance). */
- close(sockfd);
+ }
+ if(stl.count) {
+ initsmtp(&sockfd, relay);
+ if(verp) {
+ sendres = send_mail_verp(sockfd, &stl, mailmap,
+ st.st_size, verpfrom, listdir,
+ hdrs, hdrslen, body, bodylen,
+ verp);
+ if(sendres)
+ requeuemail(listdir, strindex, &stl,
+ 0);
} else {
- endsmtp(&sockfd);
+ sendres = send_mail_many_list(sockfd, NULL,
+ NULL, mailmap, st.st_size,
+ &stl, listaddr,
+ archivefilename, listdir,
+ mlmmjbounce, hdrs, hdrslen,
+ body, bodylen);
}
+ endsmtp(&sockfd);
+ for(i = 0; i < stl.count; i++)
+ myfree(stl.strs[i]);
+ stl.count = 0;
+ }
+
+ if (sendres) {
+ /* If send_mail_many() failed we close the
+ * connection to the mail server in a brutal
+ * manner, because we could be in any state
+ * (DATA for instance). */
+ close(sockfd);
+ } else {
+ endsmtp(&sockfd);
}
+ myfree(stl.strs);
+ myfree(verpfrom);
closedir(subddir);
myfree(subddirname);
break;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-17 23:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-17 23:43 ERRATA Mads Martin Joergensen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.