Hi All, I've come across some issues with the Daily Spam Quarantine Summary email that dspam_notify sends out. Attached is a patch to work around these issues. Patch is for dspam_notify v1.05 (dspam 3.10.1).
1) The number of "New Messages" in the quarantine report displays as 0 if the day number in the date of the message in quarantine is less than 10. This is because dspam writes 2 characters for a single digit day to the quarantine .mbox file; a <space> and the single day number. Example: 15 of November, is written as: From QUARANTINE Wed Nov 15 12:14:34 2011 3rd of November, is written as: From QUARANTINE Wed Nov 3 12:14:34 2011 (notice the extra space before the 3) The format of the date $TODAY variable in dspam_notify only includes a single space between the month abbreviation and the day number. So until the 10th of each month, the new message count will display as zero. This is also the case if it is a Thursday, as dspam_notify abbreviates to "Thur" instead of "Thu". 2) I had to include a "From:" in the email headers, as my mail client was displaying the "From" as unknown because the header was missing, however the "Return-Path" was set correctly. Additionally I added an extra variable $FROM_NAME, so the "From" header can displayed as: "From: IT Support <itsupp...@example.com>" 3) Also I had to include an extra "\n" in the email datasend, as the HTML was displaying in my email headers. Cheers, JLK
dspam_notify-3.10.1-jlk.patch
Description: dspam_notify-3.10.1-jlk.patch
------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user