Re: how to log date/time in daemon mode?

"Juergen Edner" <[email protected]>
Newsgroups gmane.mail.fetchmail.user
Organization privat
Message-ID <[email protected]>
Hi Gene,

> I was subjected to a phishing attack yesterday and again today, and it 
> would have been a lot easier to correlate the messages if fetchmail was 
> logging the time, preferably the date/time at the end of fetching of 
> fetching each mail. Something it is not now, and never has done.  And I 
> just reread the man pages without finding a clue.
> 
> How do I enable this so a date/time exists in the fetchmail.log?

I'm using the following two commands to log the start and end of
request cyle:

preconnect  "echo 'fetchmail: awakened at '`date +'%a, %d %b %G %H:%M:%S
(%Z)'`"

postconnect "echo 'fetchmail: sleeping at '`date +'%a, %d %b %G %H:%M:%S
(%Z)'` for xxx seconds

Further details can be found here:

http://www.fetchmail.info/fetchmail-man.html

Regards
Juergen
-- 
Mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.