On 30 Oct 2003, at 11:02, Mark Powell wrote:

  I've been getting complaints from users of very long header lines. It
does seem that qpsmtpd is unfolding header lines, sometimes causing
rfc2822 non-complaince by created header lines over 998 chars in length

Wow, observant users ;-)


Try this patch - let me know if it works for you and I'll apply it. It folds at 80 chars, which is possibly a bit short, but fits nicely in a default terminal window.

Index: plugins/queue/qmail-queue
===================================================================
RCS file: /cvs/public/qpsmtpd/plugins/queue/qmail-queue,v
retrieving revision 1.5
diff -u -r1.5 qmail-queue
--- plugins/queue/qmail-queue 9 Oct 2003 17:21:49 -0000 1.5
+++ plugins/queue/qmail-queue 30 Oct 2003 22:18:22 -0000
@@ -55,6 +55,7 @@
close MESSAGE_READER or fault("close msg reader fault"),exit;
close ENVELOPE_READER or fault("close envelope reader fault"), exit;


+    $transaction->header->fold( 80 );
     $transaction->header->print(\*MESSAGE_WRITER);
     $transaction->body_resetpos;
     while (my $line = $transaction->body_getline) {



Reply via email to