[vchkpw] vdelivermail fails when alias line starting with | and containing /Maildir/

2002-10-23 Thread Anders Brander
Hi,

I think i've encountered a bug, vdelivermail seems to process the line:
|/do/deliver/to /home/vpopmail/domains/example.com/test1/Maildir/
wrongly. It deals with it like it's a /Maildir/-line, which is wrong.
It seems like vdelivermail checks for /Maildir/ anywhere in the line, 
before it checks for a | at the start of the line. I've made a quick fix 
to vdelivermail.c.

http://fmail.dk/stuff/vdeliver-command.diff

Please test and comment.

/Anders




Re: [vchkpw] vdelivermail fails when alias line starting with | and containing /Maildir/

2002-10-23 Thread Bill Shupp
On Wednesday, October 23, 2002, at 05:28  AM, Anders Brander wrote:


Hi,

I think i've encountered a bug, vdelivermail seems to process the line:
|/do/deliver/to /home/vpopmail/domains/example.com/test1/Maildir/
wrongly. It deals with it like it's a /Maildir/-line, which is wrong.
It seems like vdelivermail checks for /Maildir/ anywhere in the line,
before it checks for a | at the start of the line. I've made a quick 
fix
to vdelivermail.c.

http://fmail.dk/stuff/vdeliver-command.diff

Please test and comment.

Looks good, I've added this.

Regards,

Bill Shupp