> Matus UHLAR - fantomas writes:
>> when delivering mail to a mailbox that could cross the quota in mailfilter
>>
>> - can I  check if the mail was delivered successfully by the Cc command?
>>   so I would e.g. forward it to another address only if it was delivered
>>   successfully.
>>
>>   The EXITCODE variable can be checked to see if delivery was successfull,
>>   but CC only sets it when running external program. That would mean I have
>>   to run "cc | deliverquota ..." but I'd like to skip calling external
>>   program for this.

On 15.04.10 19:44, Sam Varshavchik wrote:
> You can use the exception clause to trap a delivery failure, and handle 
> it accordingly.

Do we have any examples? I somehow couldn't find any useful (showing what to
do if error occurs... all examples just close delivery to exception {}
block) and I think I haven't understood the exception docs...


- if "cc ./Maildir/" fails because of quota, does maildrop stop processing?
  I wouldn't need to trap anything this way, just CC and continue...

or

- if I use exception {}, can I detect if the command failed?

  According to the docs, with exception {} the execution resumes imediately
  after the block, but it does even if nothing fails, correct?



And I'm still curious if I can find somehow that the quota notification has
been stored in users' mailbox... I would like to send a message in such case
to other address


-- 
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
M$ Win's are shit, do not use it !

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to