1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/mail/courier/files/patch-courier__submit.C
Gabor Kovesdan 18ad4ae1da - Update to 0.53.3
- Patch for function name collision (fam support)
- Remove deprecated USE_RCORDER
- Pass maintainership to submitter
- portlint(1)

PR:		ports/105573
Submitted by:	Milan Obuch<bsd@dino.sk>
Approved by:	erwin (mentor), maintainer timeout
2006-12-12 20:32:45 +00:00

55 lines
1.1 KiB
C

--- courier/submit.C.orig Fri Apr 22 21:38:00 2005
+++ courier/submit.C Fri Apr 22 21:38:00 2005
@@ -531,6 +531,7 @@
(*hdrOut) += str;
(*hdrOut) += " (";
(*hdrOut) += errmsg_buf;
+/*
(*hdrOut) += ")\n SPF=";
(*hdrOut) += checkname;
(*hdrOut) += ";\n";
@@ -550,6 +551,43 @@
(*hdrOut) += v ? v:strerror(errno);
(*hdrOut) += ";\n";
}
+*/
+ (*hdrOut) += ")\n ";
+ (*hdrOut) += checkname;
+ {
+ char *v=strdup(values[0] ? values[0] : "");
+
+ for (q=v; q && *q; q++)
+ if (*q < ' ' || *q >= 127)
+ *q='?';
+ else if (*q == ';')
+ *q=' ';
+ (*hdrOut) += " ";
+ (*hdrOut) += v ? v:strerror(errno);
+ }
+ {
+ char *v=strdup(values[2] ? values[2] : "");
+
+ for (q=v; q && *q; q++)
+ if (*q < ' ' || *q >= 127)
+ *q='?';
+ else if (*q == ';')
+ *q=' ';
+ (*hdrOut) += " (";
+ (*hdrOut) += v ? v:strerror(errno);
+ }
+ {
+ char *v=strdup(values[1] ? values[1] : "");
+
+ for (q=v; q && *q; q++)
+ if (*q < ' ' || *q >= 127)
+ *q='?';
+ else if (*q == ';')
+ *q=' ';
+ (*hdrOut) += " [";
+ (*hdrOut) += v ? v:strerror(errno);
+ }
+ (*hdrOut) += "]);\n";
return str;
}