[prev in list] [next in list] [prev in thread] [next in thread]
List: exim-users
Subject: Re: [exim] Forcing a message to be deferred if return_path has a
From: Gary Palmer <exim-users () in-addr ! com>
Date: 2006-01-31 15:53:17
Message-ID: 43DF87ED.6000101 () in-addr ! com
[Download RAW message or body]
Tony Finch wrote:
>On Tue, 31 Jan 2006, Gary Palmer wrote:
>
>
>>I have a "custom" lookup implimented in perl which is used to set the
>>return_path variable on the outbound transports. I am wondering what is the
>>best way to force the message to be deferred if the lookup encounters a
>>problem? Returning a forced failure just means the message is delivered with
>>the old return_path, which is undesirable as it is likely unroutable outside
>>of the local system. The docs say "if it fails for another reason, delivery
>>is deferred". What would "another reason" be in this situation?
>>
>>
>
>A non-forced string expansion failure. From the perl point of view,
>returning undef causes a forced failure whereas calling die (I think) is
>an unforced failure.
>
>
Interesting. Thanks for the hint Tony, that does indeed have the
desired effect. Never thought to try "die" before, since that tends to
kill the process. I guess embeded perl traps that somehow.
Thanks again
Gary
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic