[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Suggested update for spamass-milter
From: |
Dan Nelson |
Subject: |
Re: Suggested update for spamass-milter |
Date: |
Fri, 19 Dec 2003 12:16:30 -0600 |
User-agent: |
Mutt/1.5.5.1i |
In the last episode (Dec 19), Cassandra Lynette Brockett said:
> At the moment a username is sent to spam[cd] as the localpart only,
> this causes a few issues if you are handling virtualdomains on the
> mailserver. Here's an example :-
>
> User 1 - address@hidden (it's a fake testing domain)
> User 2 - address@hidden (again, another fake domain).
[...]
> Therefore is there a way an option could be added to spamass-milter
> (even if it is --work-with-cyrus or something like that if all the
> single-letters are taken *grin*), which would hand over full
> recipient usernames to the local spam[cd] process.
The CVS source already does that, with the -e flag. Of course, with
savannah down, you can't get it :( As soon as it comes back up I'll
roll another release. Their current message says it'll be up today,
but I wouldn't be surprised if it took a couple more days.
Until then, using this in place of the regular local_user function in
spamass-milter.cpp should do what you want:
string
SpamAssassin::local_user()
{
// assuming we have a recipient in the form: <address@hidden>
// we return 'address@hidden'
if (_rcpt[0]=='<')
return _rcpt.substr(1,_rcpt.find('>')-1);
else
return _rcpt;
}
--
Dan Nelson
address@hidden