List Info

Thread: Adding address extensions on spam




Adding address extensions on spam
country flaguser name
United Kingdom
2008-01-08 09:34:11
Now I know I am being daft, but I could have sworn that
adding the +spam 
on to an address only used to happen when you reached the
ultimate cutoff.

It now seems to happen at tag level 2, at the same time that
the subject is changed.

Is this behavior configurable?

Also, is it possible to add version numbers in the first few
lines of the amavisd code and config files?


Kind regards


Benedict White



------------------------------------------------------------
-------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Adding address extensions on spam
country flaguser name
Slovenia
2008-01-10 14:26:39
Benedict,

> [...] I could have sworn that adding the +spam
> on to an address only used to happen when you reached
the ultimate cutoff.
>
> It now seems to happen at tag level 2, at the same time
that the subject is
> changed.

Right.
This was changed in amavisd-new-2.0
(but broken in 2.4.0, fixed again in 2.4.1)

> Is this behavior configurable?

Yes, through %addr_extension_maps_by_ccat.

The default setting is:

  %addr_extension_maps_by_ccat = (
    CC_VIRUS,       sub { ca('addr_extension_virus_maps')
},
    CC_BANNED,      sub { ca('addr_extension_banned_maps')
},
    CC_SPAM,        sub { ca('addr_extension_spam_maps') },
    CC_SPAMMY,      sub { ca('addr_extension_spam_maps') },
    CC_BADH,        sub {
ca('addr_extension_bad_header_maps') },
  );

(CC_SPAM corresponds to kill_level, CC_SPAMMY corresponds to
tag2_level)

This would do the trick (in amavisd.conf):

  $addr_extension_maps_by_ccat{+CC_SPAMMY} = undef;

> Also, is it possible to add version numbers in the
first few lines of the
> amavisd code and config files?

Hmm. Not easily, the declaration of $myversion and friends
doesn't come early, and the value is assembled at run time.

For config files I wouldn't like to see a version number
there.
The compatibility of config files is supposed to stretch way
back
to very early versions of amavisd-new, and to large extent
even to amavisd-snapshot.

  Mark

------------------------------------------------------------
-------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )