Can you simply rename it so the mailer can start a new one, and let you process the other one without worrying about locking or hurrying? I don't whack EMail in perl, so there may be some shortcomings to this approach that I haven't thought of.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Read entire file then clear while flocking
by roboticus
in thread Read entire file then clear while flocking
by citycrew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |