From: piequiex <pie...@ny...> - 2017-01-06 17:00:38
|
> El 2017-01-04 a las 17:24 -0000, piequiex escribi??: > > > The problem is I loss all messages, except first two. They all must be parsed > > with script, which I execute from procmailrc. > > > > I have discovered that all messages will delivered in case when delay > > interval present in loop. For example: > > > > for msg in file.???; do > > cat $msg | script; > > sleep 1; > > done > > Probably your script is exiting too early, before it finishes processing. Yes. External application, executed from a script, sometimes terminates with the strange error - "Cannot allocate memory". This does not happen in example above. > Depending on how you do things, procmail can be called in parallel by > several emails, so you either change your script to be able to cope with > that situation, or tell the other software to only send one. > > For example, if you are using postfix in the mix, you can tell it to process > one email at a time for local delivery (slowing things down a lot). > > You can also use lock files in procmail so that a section blocks if a > parallel process is already in there. Thanks for advices. -- 0x16E684E1A170D8A3 |