X-attached: none Hi Stevan,
Le dimanche 10 avril 2011 à 13:27:12 (+0200 CEST), Stevan Bajić a écrit : > On Sun, 10 Apr 2011 09:06:08 +0200, Julien Valroff wrote: [...] > > The following macro works but creates one unique mail with several > > attachments, and DSPAM only retrains the first attachment: > > > > macro index X "set copy=no mime_forward=yes weed=no resolve=no > > editor='/bin/true' > > ns...@domain.com [1] > > set copy=yes mime_forward=ask-no > > weed=yes resolve=yes editor='~/.mutt/scripts/killsig %s; /usr/bin/vim > > %s' > > " "Mark as spam" > > > > Mutt doesn't allow to split actions for each tagged mail (except for > > print > > and pipe, using respectively print_split and pipe_split). > > > > What do you use (or what would you use) for such action? > > > My retraining script that I have in the contrib directory is capable to > retrain multiple signatures at once. Have you looked if it is something > for you? I am currently playing with it :) I hadn't thought of it immediately as I had to exclude it from the Debian package due to the fact it has no license (my bad, I also have forgotten emailing you about it!) It works fine from the command line but for unknown reason, I cannot make it work with postfix pipe (and I've deleted the spam I wanted to test with by error…). Does it require any special flags? I am currently using it as follows: dspam-retrain unix - n n - - pipe flags=Ru user=dspam argv=/usr/local/bin/dspam-retrain-forward.pl --headers-only=yes --bodies-only=no --client --mode=teft --class=${nexthop} --source=error --user ${sender} -o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject -o mynetworks=127.0.0.1 When using the debug mode, it gives: cat /home/julien/test.msg | dspam-retrain-forward.pl --debug --headers-only=yes --bodies-only=no --client --mode=teft --class=spam --source=error --user test DEBUG: Found DSPAM signature '1,4da11c83154081104012938' in header (attachment). DEBUG: /usr/bin/dspamc --source=error --class=spam --signature=1\,4da11c83154081104012938 --mode=teft --user test DEBUG: Found DSPAM signature '1,4da0fcfa154081479215841' in header (attachment). DEBUG: /usr/bin/dspamc --source=error --class=spam --signature=1\,4da0fcfa154081479215841 --mode=teft --user test DEBUG: Found DSPAM signature '1,4da0f7f1154085004845483' in header (attachment). DEBUG: /usr/bin/dspamc --source=error --class=spam --signature=1\,4da0f7f1154085004845483 --mode=teft --user test By the way, is there any possibility to test a setup without actually training? Is --mode=notrain safe for this? Cheers, Julien -- .''`. Julien Valroff ~ <jul...@kirya.net> ~ <jul...@debian.org> : :' : Debian Developer & Free software contributor `. `'` http://www.kirya.net/ `- 4096R/ E1D8 5796 8214 4687 E416 948C 859F EF67 258E 26B1 ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user