Ok, I have done everything withing my power to figure this out. I
got one thing fixed so that the libmilter lowercases the username
prior to passing it to spamd which fixed one problem.  The
patch is listed below. (I know, my C sucks but it works... :)

The other issue appears to be beyond my C++ skills which are
non-existant. I need to add a header X-Spam-Multi: Yes when
the message is passed to spamd with the _multi_ username. 

This will allow for a procmail rule on the destination MX to
parse the messages using the proper user's rules.

I can successfully get a header added to the mail using the
smfi_addheader function. The problem is that I cannot get 
it to trigger only if the username is _multi_.

I think it has to do with the object oriented nature of
the SA class, but my OO skills are limited to perl and PHP.
I haven't done any C in several years and never any C++.

Ideas or help?

Here is the lowercase patch. If this is not applied then the
username is passed in the case that it is received, and it
doesn't match. [EMAIL PROTECTED] will get passed as BONNIE,
not bonnie.

--- spamass-milter-0.1.3a/spamass-milter.cpp    2002-12-31 12:03:13.000000000 -0800
+++ spamass-milter-0.1.3a-1/spamass-milter.cpp  2003-06-18 14:54:30.000000000 -0700
@@ -763,7 +763,15 @@
         } else
         { 
           // There is only 1 recipient so we pass the username to SPAMC 
-          argv[argc++] = (char *) local_user().c_str(); 
+          char *temp;
+          temp = (char *) local_user().c_str();
+          int sidx=0;
+          while (temp[sidx]!='\0') {
+            if (isupper(temp[sidx]))
+              temp[sidx] = tolower(temp[sidx]);
+            sidx++;
+          };
+          argv[argc++] = temp;
         }
       }
       argv[argc++] = 0;


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to