On Mon, Apr 24, 2000 at 05:07:55PM -0400, Marc Gordon wrote:
On Mon, 24 Apr 2000, Stuart Hall wrote:
On Mon, 24 Apr 2000 19:43:11 +0000 (UTC), Jason wrote:
Hi there.
Ok, i'm lazy, so that's why i'm asking. But is there a way of determing the number of msgs retreived by fetchmail.
I use the fetchmail "log" feature, then read the resultant log file using Perl, and display the results using Perl/Tk, with a count of messages for each mailbox folder. Clicking on a folder invokes Mutt on that folder. Another quick and dirty counter mechanism, if you're using procmail, is to write a character to a file for each message received, then use a file length test to display the number of new messages. The count file can be zeroed when the count is displayed. In my Perl/Tk widget I use this to display the number of new messages received. My procmail rule to do this is: # count all incoming messages :0c | cat > /dev/null && echo -n . >> $HOME/.newmailcount ... which is probably not the most efficient scheme, but does the job. If anyone is interested in this (and assuming you've installed Perl/Tk) I'd be happy to send the code, but the ideas behind it are pretty simple. Ken -- Ken Irving Trident Software jkirving@mosquitonet.com -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/