From: Carlos E. R. <rob...@te...> - 2017-01-05 21:56:32
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 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. 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. Procmail is offtopic here, and you don't say what distribution you are using, but surely it has a help forum or mail list. I use openSUSE, you can find me there and I'll be happy to try to help. Otherwise, mail me directly, and time permitting, I'll try to help. - -- Cheers Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlhuwQQACgkQja8UbcUWM1ypHgD8C6ef8G4HACmIfjZm+rPHPj6K RgeHPDDSE0ijupeSbyUA/2QcceAc3PSFv2OLmoMXRpdZAWThKHiWVihQOAah/oRb =mR5g -----END PGP SIGNATURE----- |