[Fwd: Re: [dspam-users] Modification to dspam source for lowercase
username with plussed addressing....]
Benjamin Donnachie
benjamin at pythagoras.no-ip.org
Sat Apr 8 05:24:39 EDT 2006
My dspam patch below should be useful for sites running cyrus-imap with
plussed addressing.
Take care,
Ben
-------- Original Message --------
> I think that should be "PlussedUserLowercase", and it might be too
> specific to use "plus" as the detail separator (qmail uses "-" by
> default, but from memory that's adjustable).
The option is intended to complement "EnabledPlusedDetail" - if that's
enabled, then the option PlusedUserLowercase forces the username section
to lowercase internally.
It was much easier to implement than I thought!
--- dspam.c 2006-04-07 20:07:23.322488264 +0100
+++ dspam.c 2006-04-07 22:50:45.443339392 +0100
@@ -1571,6 +1571,8 @@
if (_ds_match_attribute(agent_config, "EnablePlusedDetail", "on")) {
strlcpy(mailbox, username, sizeof(mailbox));
ATX->recipient = mailbox;
+ if (_ds_match_attribute(agent_config, "PlusedUserLowercase", "on"))
+ lc (username, username);
plus = index(username, '+');
if (plus) {
atsign = index(plus, '@');
I added the following to dspam.conf:
#
# When using plused addressing, forces dspam to internally use lowercase
# usernames. Thus preserving case of the plused address.
#
PlusedUserLowercase on
I've also got the following in imap.conf so that cyrus-imap also forces
the username section to lowercase, but leaves the case of the folder
(plused detail) alone:
lmtp_downcase_rcpt: 1
Ben
More information about the Info-cyrus
mailing list