3 messages in net.sourceforge.lists.courier-users[courier-users] Re: Temporarily locki...
FromSent OnAttachments
Lloyd ZusmanJan 28, 2005 6:31 pm 
Sam VarshavchikJan 28, 2005 7:34 pm 
Lloyd ZusmanJan 28, 2005 7:51 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Re: Temporarily locking a delivery attemptActions...
From:Lloyd Zusman (lj@asfast.com)
Date:Jan 28, 2005 7:51:57 pm
List:net.sourceforge.lists.courier-users

Sam Varshavchik <mrs@courier-mta.com> writes:

Lloyd Zusman writes:

My goal is to temporarily delay all message delivery to that particular Maildir while my utility function is running. Can I do this more simply than the way I guessed, above?

An "| exit 75" in a .courier file temporarily suspends mail delivery to the account.

Of course, ~/.courier should be updated atomically, such as:

cp ~/.courier ~/.courier.bak echo "| exit 75" >~/.courier.new mv ~/.courier.new ~/.courier

When you're done:

mv ~/.courier.bak ~/.courier

If no .courier used to exist, just 'rm' the temporary one.

Of course, you will need to factor in any default delivery instructions set via DEFAULTDELIVERY, or the authentication module, but that's the basic idea.

Thanks. This is easier than I thought.