From: Carlos E. R. <rob...@te...> - 2018-02-10 23:48:12
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, 2017-11-15 at 00:20 +0100, I wrote: > Hi, > > I wonder if there is a way to know how many emails a fetchmail run > fetched? Better if per account. Perhaps printing it to the log, then > finding that entry. Or printing to the terminal where it runs, whatever. I found some way: fetchmail -v ... & PID=$! wait ... grep fetchmail /var/log/mail | grep $PID | grep "message.*for .* at .*" \ | cut -d" " -f6- I gets the data for the accounts polled in that run, but before the actual poll. Ie, it says how may mails are in the folder, not how many were actually fetched. - -- Cheers, Carlos E. R. (from openSUSE 42.3 x86_64 "Malachite" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlp/gCUACgkQtTMYHG2NR9W+pACgjjE9p3DG7ap8Vtstnl7cL50T 91UAnRY/yJdJlegA1V8HLUcbGWOJF1ky =jQaE -----END PGP SIGNATURE----- |