On 13-04-12 06:13, Frantisek Hanzlik wrote: > Paul Cockings wrote: >> On 27/03/2012 11:08, Frantisek Hanzlik wrote: >>> I'm trying test dspam (latest git version). What seem for me quite >>> unacceptable is displaying base64 (maybe quoted-printable too) >>> Sender and Subject items as-is, which make them human-unreadable. <snip> >>> >>> I'm thinking several months ago there in list was mentioned that >>> some patch solving this problem was accepted and included in, but >>> is it true? >>> <snip> >> >> Maybe you are thinking about the two fixes in GIT on 22/Feb/2012 ?
this was another issue with webui, nothing related to this. Relevant commits are: defd76fa7f2e2548067fd7157e6ac2aee06520cd and 2169b243927712edbb22b51d7f61b97d79de9103 (2011-11-10 by Alex Prokofiev). >> >> You could take a look at the options in [web-ui-location]/configure.pl >> Here you will see some options: >> >> $CONFIG{'HISTORY_HTMLIZE'} = "no"; # Wether to HTML-ize sender and >> subject in history "yes" or "no" >> $CONFIG{'QUARANTINE_HTMLIZE'} = "no"; # Wether to HTML-ize sender and >> subject in quarantine "yes" or "no" >> $CONFIG{'MIME_DECODE'} = 0; >> >> Please alter these options 1 at a time and report back your success or >> failure > > Hello Paul, > thanks for Your reply and these recommendations. After some tries, > I'm still not lucky. Maybe I'm doin something wrong. My thinking is > as (e.g. when dspam.cgi process quarantine): When I in browser see > MIME encoded strings, then I must surely enable MIME_DECODE (i.e. > $CONFIG{'MIME_DECODE'} = 1;). Eventual usage of QUARANTINE_HTMLIZE > setting should be done only when resulting string will be contain > garbage at diacritics chracters, I'm right? > > Thus I set "$CONFIG{'MIME_DECODE'} = 1;" > (btw, i not understand, why isn't MIME decoding switched on as default, > or rather permanently? Probably everyone want readable output instead > human-unreadable strings. Or it is non-default option because on some > systems MIME::WordDecoder and Unicode::Map8 are not available? MIME_DECODE is only in git master, and is part of above (currently) non-portable bugfix. It will not be part of any release without more work to it. The releases only contain the *_HTMLIZE options. The fact that MIME_DECODE it is optional, is because it introduced a new dependency for webui. When its value will be proved, we might remove the config option (and make the dependency non-optional). Feel free to improve the code in order to make it ready for production use, note that the real problem is in DSPAM itself, not in the webui. > > I'm still doing some tries, but it seem as there is problem with processing > multi-line header items, both in dspam.cgi (as it display badly when > processing quarantine mboxes) and dspam (as it write incomplete "From:" > and "Subject:" (and maybe "To:" too) pieces of corresponding items. > > e.g.: > > a) when in mail header is: > ... > From: "=?iso-8859-1?B?RXVyb3BlIERlYnRjb2xsZWN0?= > =?iso-8859-1?B?aW9u?=" <a.przyw...@gce-mailer-8.com> > Subject: =?iso-8859-1?B?Q29sbGVjdCB5b3VyIHJlY2Vp?= > =?iso-8859-1?B?dmFibGVzIGluIEZyYW5jZSBhbmQgaW4gdGhlIHdvcmxk?= > Date: Wed, 11 Apr 2012 10:04:13 +0200 > ... > then web page shows (i have custom date format) only: > 62% 11.04 11:12 "=?iso-8859-1?B?RXVyb3BlIERlYnRjb2xsZWN0?= > =?iso-8859-1?B?Q29sbGVjdCB5b3VyIHJlY2Vp?= > > > b) when in header are items: > From: =?windows-1250?Q?Nakladatelstv=ED?= FRAUS <ka...@fraus.cz> > Subject: =?windows-1250?Q?Pozv=E1nka?= na =?windows-1250?Q?Semin=E1=F8?= - > =?windows-1250?Q?=C8esk=FD?= jazyk pro =?windows-1250?Q?Z=8A nov=EC?= > ... > then in logs (both system and user) is only: > 1333375296 I Nakladatelství 4f79b140237537245819226 Pozvánka > Delivered ... > instead of right: > 1333375296 I Nakladatelství FRAUS <ka...@fraus.cz> > 4f79b140237537245819226 Pozvánka na Seminář Český jazyk pro ZŠ nově > Delivered ... > This looks like an issue with either header processing or writing message summary to the *.log files. How is a) different from b) here? You didn't show logfile contents for a). > > PS: When I can request for improvements: IMO in history and quarantine > pages, when logged user is manager of (shared,managed) group, would be > for easier human classification helpful display message recipients too. > Would be easily possible do it, please? > It might be, you probably know more Perl than I do. We would be glad to review/accept your patch :) -- Tom ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user