http://bugzilla.spamassassin.org/show_bug.cgi?id=4091

           Summary: spamd: add support for simple alphabetic hash via
                    formatting
           Product: Spamassassin
           Version: 3.0.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: spamc/spamd
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


enhancement: add an option to "--virtual-config-dir=" where if you use %U[1-9]
it'll include [1-9], characters from the $safename variable, so virtual
configurations where path name such as:

/mailhome/b/brian/
/mailhome/c/chris/
/mailhome/be/benny/

are possible.

example:... --virtual-config-dir='/mailhome/%U2/%l'


--- spamd       2005-01-20 21:02:16.000000000 -0500
+++ spamd.new   2005-01-20 21:05:15.000000000 -0500
@@ -1448,6 +1448,7 @@
   my $dir = $opt{'virtual-config-dir'};
   my $userdir;
   my $prefsfile;
+  my $partname;

   if ( defined $dir ) {
     my $safename = $username;
@@ -1459,6 +1460,9 @@
     $dir =~ s/\%u/${safename}/g;
     $dir =~ s/\%l/${localpart}/g;
     $dir =~ s/\%d/${domain}/g;
+    $dir =~ m/\%U(.)/;
+    $partname = substr($safename,0,$1);
+    $dir =~ s/\%U./${partname}/g;
     $dir =~ s/\%\%/\%/g;

     $userdir   = $dir;



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to