Inline SPAM warnings {Scanned by HJMS}

Julian Field mailscanner at ecs.soton.ac.uk
Thu Oct 2 19:53:23 IST 2003


At 19:36 02/10/2003, you wrote:
> > -----Original Message-----
> > From: David Hooton [mailto:david at PLATFORMHOSTING.COM]
> > Sent: Thursday, October 02, 2003 5:52 AM
> > To: MAILSCANNER at JISCMAIL.AC.UK
> > Subject: Re: Inline SPAM warnings {Scanned by HJMS}
> >
> >
> > Thanks guys, this is all well and good, but I'm not concerned with MUA
> > functionality, I'm concerned with MailScanner's inline
> > reports not being
> > universally visible.
> >
> > If we have to ask clients to alter their MUA's just to see a warning
> > it's not a great situation.
> >
> > What I want to know is:
> >
> > Is this a configuration issue on my part? (the warning is set
> > to not be
> > attached, which I thought meant it would be displayed inline)
> >
> > If it's not a config issue, what do I need to do in order to fix it.
>
>Well I don't really consider it something that is *broken* - it's entirely
>up to the MUA to decide how it wants to display parts.  Outlook just doesn't
>display them the way you'd like.
>
>It's not a MailScanner config issue, but you could alter the MS code pretty
>simply to use multipart/report instead of multipart/digest.  Just changing
>"digest" to "report" in a couple of places inside Message.pm seems to be
>enough to get what want (but I am NOT an expert on anything, so although it
>seems to work for me, don't blame me if it causes your wife to leave you).
>
>Tested with mozilla 1.4, outlook 2k sp3, and Imp and all of them still seem
>to have no problems with the message - but Outlook then displays the inline
>attachment properly.

Here is a patch for the very latest Message.pm to do this:

----------------------SNIP--------------------
2637,2638c2637,2638
<   # Make it a digest if it wasn't multipart already.
<   $entity->make_multipart("digest");
---
 >   # Make it a report if it wasn't multipart already.
 >   $entity->make_multipart("report"); # Used to be digest
2640c2640
<   $entity->head->mime_attr("Content-type" => "multipart/digest");
---
 >   $entity->head->mime_attr("Content-type" => "multipart/report"); # Used
to be digest
----------------------SNIP--------------------

Basically just find every occurrence of "digest" in Message.pm and replace
it with "report".

Please can you try this and let me know if it works okay. If I don't hear
any bad comments about it, I will include it in this weekend's (hopefully)
release of 4.24.
--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC  7222 11F6 5947 1415 B654



More information about the MailScanner mailing list