Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Sjef van Gool on January 08, 2004, 01:33:44 AM

Title: Procmail error (SME 6.0 final)?
Post by: Sjef van Gool on January 08, 2004, 01:33:44 AM
I installed e-smith-userpanel-1.6.0-2.noarch.rpm which runs fine ..... except when I try to forward mail, that generates:

:0
* ^.*contribs.org
{
   :0 c
   $MAILDIR/;Fora/
   
   :0
   ! ;test@hotmail.com
}

You see the ";" before test@, well it stays there! Which generates mail errors.
How do I get rid of that ";" ?

Thanks, Sjef.
Title: Re: Procmail error (SME 6.0 final)?
Post by: Sjef van Gool on January 08, 2004, 01:36:12 AM
In fact, the title should be: User panel error (SME 6.0 final)?
Title: Re: Procmail error (SME 6.0 final)?
Post by: Michael Doerner on January 11, 2004, 05:39:29 AM
Sjef,

I can reproduce the same problem here.
I would recommend to email the author of this contrib at support

Regards,
Michael Doerner
Title: Procmail error (SME 6.0 final)?
Post by: mdo on March 02, 2004, 10:56:33 AM
Sjef,

any luck/progress with that?

I am not a programmer so my workaround is not "elegant" but seems to do it for the moment...

In file /etc/e-smith/templates-user/.procmailrc/40user:

...
   elsif ($action2 eq 'forward')
        {
          # to an email
          $deliver2 = substr($deliver2,1); <--LINE ADDED
          $deliver2 = "! "."$deliver2";
....

You need to change this in 2 places in that template!
Please try and let us know.

Regards,
Michael
Title: Procmail error (SME 6.0 final)?
Post by: Anonymous on March 02, 2004, 11:17:38 AM
MDO,

Thanks for that!

No I didn't make any progress (and it was low on my priority list).
I already decided if I needed it again I could switch into procmail editing mode by the userpanel.
I didn't do that because then I would loose all my procmail userpanel settings.

I'm gonna try your solution this evening.

Thanks again, Sjef.
Title: Procmail error (SME 6.0 final)?
Post by: svangool on March 03, 2004, 03:32:31 AM
MDO,

You wrote:
> You need to change this in 2 places in that template!
> Please try and let us know.

'2 Places': I found only one place that fits your description.
Can you give more detail?

Sjef.
Title: Procmail error (SME 6.0 final)?
Post by: mdo on March 03, 2004, 11:02:37 AM
Sjef,

that's currently the template here:
....  snip ....
       # to a folder
          $deliver = "\$MAILDIR/"."$deliver"."/";
        }
        elsif ($action eq 'forward')
        {
          # to an email
          $deliver = substr($deliver,1); <--ADDED
          $deliver = "! "."$deliver";
        }
        elsif ($action eq 'delete')
        {
          # delete it
          $deliver = '/dev/null';
        }
        else
        {
          # freeform
          $deliver = "$deliver";
        }

        ## construct the 2nd deliver line
        if ($action2 eq 'sort')
        {
          # to a folder
          $deliver2 = "\$MAILDIR/"."$deliver2"."/";
        }
        elsif ($action2 eq 'forward')
        {
          # to an email
          $deliver2 = substr($deliver2,1);  <--ADDED
          $deliver2 = "! "."$deliver2";
        }

        ## construct the rule
..... snip .....

Regards,
Michael
Title: Procmail error (SME 6.0 final)?
Post by: Anonymous on March 06, 2004, 12:22:17 PM
bug fix for 6.0 users
http://www.dungog.net/sme/files/userpanel/sme6/

* Sat Mar 6 2004 Stephen Noble <support@dungog.net>
- procmail forward to user fixed
- procmail says folder not in correct format fixed
- procmail can use 2nd value for closer matching
- geek mode hidden, you can set manually with
- /sbin/e-smith/db processmail setprop stephen mode geek
- [1.6.0-3]

Regards
Stephen Noble
dungog.net/sme
Title: Procmail error (SME 6.0 final)?
Post by: svangool on March 07, 2004, 09:06:50 PM
Thanks Stephen!