From: Mads Martin Joergensen <mmj@mmj.dk>
To: mlmmj@mlmmj.org
Subject: ERRATA
Date: Mon, 17 Jan 2005 23:43:09 +0000 [thread overview]
Message-ID: <20050117234309.GA59584@mmj.dk> (raw)
[-- 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;
reply other threads:[~2005-01-17 23:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050117234309.GA59584@mmj.dk \
--to=mmj@mmj.dk \
--cc=mlmmj@mlmmj.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.