Stephen Atty wrote:
> But when a message is trapped in quarantine I can
> delete it but if I go to view the message contents (to
> confirm that it is spam) I can't see any text - the
> box is there but the content is missing
Jonathan just posted a patch to the dev list a couple of days ago which dealt
with this problem at last (I had another patch which covered it over). There
doesn't appear to be any way to search the dev archives, so I've attached the
patch as well as included it below (which will be wrapped):
Index: src/dspam.c
===================================================================
--- src/dspam.c (revision 26)
+++ src/dspam.c (working copy)
@@ -762,7 +762,12 @@
/* Reassemble message from components */
- copyback = _ds_assemble_message (CTX->message, (USE_LMTP || USE_SMTP) ?
"\r\n" : "\n");
+ if (CTX->result == DSR_ISSPAM && (!(ATX->flags & DAF_DELIVER_SPAM))) {
+ copyback = _ds_assemble_message (CTX->message, "\n");
+ } else {
+ copyback = _ds_assemble_message (CTX->message,
+ (USE_LMTP || USE_SMTP) ? "\r\n" : "\n");
+ }
buffer_clear (message);
buffer_cat (message, copyback);
free (copyback);
HTH
John
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Blvd
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
Index: src/dspam.c
===================================================================
--- src/dspam.c (revision 26)
+++ src/dspam.c (working copy)
@@ -762,7 +762,12 @@
/* Reassemble message from components */
- copyback = _ds_assemble_message (CTX->message, (USE_LMTP || USE_SMTP) ? "\r\n" : "\n");
+ if (CTX->result == DSR_ISSPAM && (!(ATX->flags & DAF_DELIVER_SPAM))) {
+ copyback = _ds_assemble_message (CTX->message, "\n");
+ } else {
+ copyback = _ds_assemble_message (CTX->message,
+ (USE_LMTP || USE_SMTP) ? "\r\n" : "\n");
+ }
buffer_clear (message);
buffer_cat (message, copyback);
free (copyback);