RE: [vchkpw] Multiple Independent Pipes

2004-01-28 Thread Andy BIERLAIR
Correct me if I am wrong:

If you do this in a .qmail: (one line, no line break)

| script1.pl | script2.pl
(here the result piped into script2.pl depends on the output of script1.pl)

That's different from: (two lines, one line break)

| script1.pl
| script2.pl
(here both deliver independent results)

Correct?


Andy

-Original Message-
From: Jeremy Kitchen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 28, 2004 07:48
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Multiple Independent Pipes

On Mon, 2004-01-26 at 09:33, Andy BIERLAIR wrote:
 Hello,
 
 I am looking for a solution to make multiple independent pipes in qmail
with
 vpopmail. Usually you do independent pipes like this:
 
 .qmail-default
 
 | /usr/local/bin/a-selfmade-script.pl
 | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
 
 Now imagine a-self-script.pl breaks and the output is empty. The result
will
 be no delivery.

nope.

they are seperate delivery instructions, try this:

|cat -  /dev/null
|forward [EMAIL PROTECTED]

now, with your theory, nothing will be forwarded to [EMAIL PROTECTED],
when in fact, the entire message will be :)

however, if the perl script 'breaks' it should exit 111 to report
temporary failure so it will be tried again, unless errors are simply to
be ignored.

man dot-qmail

-Jeremy

-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE



smime.p7s
Description: S/MIME cryptographic signature


RE: [vchkpw] Multiple Independent Pipes

2004-01-28 Thread Jeremy Kitchen
On Wed, 2004-01-28 at 01:25, Andy BIERLAIR wrote:
 Correct me if I am wrong:
 
 If you do this in a .qmail: (one line, no line break)
 
 | script1.pl | script2.pl
 (here the result piped into script2.pl depends on the output of script1.pl)

yes

 That's different from: (two lines, one line break)
 
 | script1.pl
 | script2.pl
 (here both deliver independent results)

yes

they are different in that they are entirely seperate delivery
instructions, and each will get a fresh copy of the message along with a
fresh environment to work from.

man qmail-command
man dot-qmail

-Jeremy

-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE



Re: [vchkpw] Multiple Independent Pipes

2004-01-27 Thread Jeremy Kitchen
On Mon, 2004-01-26 at 09:33, Andy BIERLAIR wrote:
 Hello,
 
 I am looking for a solution to make multiple independent pipes in qmail with
 vpopmail. Usually you do independent pipes like this:
 
 .qmail-default
 
 | /usr/local/bin/a-selfmade-script.pl
 | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
 
 Now imagine a-self-script.pl breaks and the output is empty. The result will
 be no delivery.

nope.

they are seperate delivery instructions, try this:

|cat -  /dev/null
|forward [EMAIL PROTECTED]

now, with your theory, nothing will be forwarded to [EMAIL PROTECTED],
when in fact, the entire message will be :)

however, if the perl script 'breaks' it should exit 111 to report
temporary failure so it will be tried again, unless errors are simply to
be ignored.

man dot-qmail

-Jeremy

-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE



[vchkpw] Multiple Independent Pipes

2004-01-26 Thread Andy BIERLAIR
Hello,

I am looking for a solution to make multiple independent pipes in qmail with
vpopmail. Usually you do independent pipes like this:

.qmail-default

| /usr/local/bin/a-selfmade-script.pl
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

Now imagine a-self-script.pl breaks and the output is empty. The result will
be no delivery.

It there a way to treat incoming mail with two pipes independently? One
Input - 2 or more outputs. I hope you get my point.

Thanks for helping.

Regards,

Andy BIERLAIR
root eSolutions sàrl



smime.p7s
Description: S/MIME cryptographic signature