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
-
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.
-
In fact, the title should be: User panel error (SME 6.0 final)?
-
Sjef,
I can reproduce the same problem here.
I would recommend to email the author of this contrib at support- dungog.net since he might not always read this forum.
Regards,
Michael Doerner
-
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
-
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.
-
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.
-
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
-
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
-
Thanks Stephen!