FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > Email & Mailing List Management
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 03-14-2002, 05:06 PM   Postid: 63629
Oink
Visitor

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Feb 1999
Location: Amateur in Transit!
Posts: 79
Quote:
Originally posted by Bruce:
Replace the "exit 1" part with just "false", which is in the path.
Code:
condredirect aaa@aaa.aaa sh -c 'iftocc `tr "\n" " " < goodto.txt` || false'
and
condredirect aaa@aaa.aaa sh -c 'iftocc `tr "\n" " " < goodto.txt` | false'
both generate "command not found error" when trying to save filter. Pardon my not understanding the | symbol. It is a pipe, no?
Code:
condredirect aaa@aaa.aaa sh -c 'iftocc `tr "\n" " " < goodto.txt` false'
saves ok, but email failing the filter again bounces with
Code:
condredirect: fatal: permanent child error
vdeliver: Execution of vdeliver-predeliver failed
(Testing out of curiosity, I can definitely wait till the removal of mentioned patch is completed. I really appreciate your effort here, Bruce)
Oink is offline   Reply With Quote
Old 03-14-2002, 08:07 PM   Postid: 63646
sheila
Site Owner
 
sheila's Avatar

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Aug 1999
Location: Metro Los Angeles Area
Posts: 7,398
The double-pipe
||

is a symbol for "or". He's trying to make it so that if the iftocc fails, that the 'other' command that he is pasting onto the end is the value returned for the test, so that you can get around the bad value returned when iftocc fails. I'm not sure if shell scripts (about which I know very, very little) use short-circuit evaluation, but if they do, the second (or 'other' value) such as 'false' would only be returned in the case that the first value evaluates to failure.

By the way, I'm glad to see that someone presented this problem in a way that has caused it to be seriously looked at and re-evaluated. Somewhere else in the forums, I also publicly claimed that the condredirect was broken. (I tried to find it the other night by searching the forums, but had no success.) Anyhow, it didn't seem to draw the attention that this thread has drawn. I guess I didn't present the problem in a way that made it look like someone needed to 'fix' something?

Thanks to Bruce for checking it out and patching it (when he does get around to it ).
__________________
sheila
http://www.thinkspot.net/sheilaruns/
sheila is offline   Reply With Quote
Old 03-15-2002, 01:17 AM   Postid: 63671
kitchin
Site Owner

Forum Notability:
1163 pts: A True Crowd-pleaser!
[Post Feedback]
 
Join Date: Jan 2001
Location: Virginia
Posts: 2,992
Just to be clear, do you mean that "info condredirect" is now correct (except for the references to ".qmail"):

Quote:
If program exits 0, condredirect
forwards the mail message to newaddress, and then exits
99, so further commands in .qmail are ignored.

If program exits 111, condredirect exits 111, so delivery
will be retried later.

If program exits anything else (or does not exist),
conĀ*dredirect exits 0, so the rest of .qmail will be processed
as usual.
But a paragraph should be added saying:
Quote:
If program cannot be executed, condredirect exits N.
With the patch, N=100, but now N=0. Is that correct?

By the way, the info page for "iftocc" is very interesting. Looks like a great way to filter out BCC mail! Thanks...
kitchin is offline   Reply With Quote
Old 04-03-2002, 06:41 PM   Postid: 65056
kitchin
Site Owner

Forum Notability:
1163 pts: A True Crowd-pleaser!
[Post Feedback]
 
Join Date: Jan 2001
Location: Virginia
Posts: 2,992
One more paragraph should be added, or rather inserted:
Quote:
If program exits 100, condredirect exits 100, so the message
will bounce.
This is the undocumented behavior I have observed.
It's not really a quote, I am just using that tag.
kitchin is offline   Reply With Quote
Old 04-12-2002, 11:10 AM   Postid: 65834
Oink
Visitor

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Feb 1999
Location: Amateur in Transit!
Posts: 79
Quote:
Originally posted by Bruce:
The change is to remove this previous patch that is causing problems. [/i][/color]
Any progress?
Oink is offline   Reply With Quote
Old 04-30-2002, 04:56 PM   Postid: 66900
 Bruce
Developer
 
Bruce's Avatar
 
Join Date: Apr 2001
Location: Saskatoon, SK, Canada
Posts: 1,182
The problem with condredirect has been eliminated as a side effect the recent email system upgrades.
__________________
Bruce Guenter, FutureQuest http://www.FutureQuest.net/ http://untroubled.org/
Bruce is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:55 AM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.