The attached patch avoids the first line of a dialog being displayed
as a quotation by mail clients. It results in the following:
---------------------------------------------------------------------------
UNDELIVERABLE MAIL
Your message to the following recipients cannot be delivered:
<[email protected]>:
mx5.telecomitalia.it [217.169.121.16]:
>>> RCPT TO:<[email protected]>
<<< 550 5.1.1 User unknown
---------------------------------------------------------------------------
This part is not supposed to be machine-readable, so there should be
no unintended consequences.
(I resisted the temptation to set "format: flowed; delsp=yes" in
dsnheader.txt --indentation doesn't look bad after all.)
--
In case anyone is curious, [email protected] is the tech-c
address for 95.242.55.40 at RIPE's, and yes, sending complaints to
them is even more useless than writing patches like this one.
--- ./courier/module.dsn/dsn.original.c 2006-11-04 21:09:47.000000000 +0100
+++ ./courier/module.dsn/dsn.c 2010-12-02 16:54:35.000000000 +0100
@@ -532,7 +532,7 @@
static void print_receipient(FILE *fp, struct ctlfile *ctf, unsigned n)
{
- putc('<', fp);
+ fputs(" <", fp);
if (ctf->oreceipients[n] &&
#if HAVE_STRNCASECMP
strncasecmp(ctf->oreceipients[n], "rfc822;", 7)
@@ -553,16 +553,16 @@
switch (type) {
case COMCTLFILE_DELINFO_PEER:
if (*p)
- fprintf((FILE *)q, " %s:\n", p);
+ fprintf((FILE *)q, " %s:\n", p);
break;
case COMCTLFILE_DELINFO_CONNECTIONERROR:
- fprintf((FILE *)q, "*** %s\n", p);
+ fprintf((FILE *)q, " *** %s\n", p);
break;
case COMCTLFILE_DELINFO_SENT:
- fprintf((FILE *)q, ">>> %s\n", p);
+ fprintf((FILE *)q, " >>> %s\n", p);
break;
case COMCTLFILE_DELINFO_REPLY:
- fprintf((FILE *)q, "<<< %-1.500s\n", p);
+ fprintf((FILE *)q, " <<< %-1.500s\n", p);
break;
}
}
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users