Re: Adding timestamp to maillog

James Moe via Fetchmail-users <[email protected]>
Newsgroups gmane.mail.fetchmail.user
Message-ID <sig.0522646fb0.4996987f-ff83-71bb-3afe-ebd98ebb3b53@sohnen-moe.com>
On 9/10/20 10:36 AM, Dennis Putnam wrote:

> Has anyone figured out how to add a timestamp on the fetchmail log
> messages to the maillog? TIA
>
  Not that I ever found.
  My configuration file has these entries as a workaround:

set logfile "/path/to/fetchmail.log"
poll example.com interval 1
  protocol imap username "account_name_of_interest" password "secret"
  preconnect "echo `date +%Y-%m-%dT%H:%M:%S` <account_name_of_interest> >>
/path/to/fetchmail.log
  ... other stuff ...

  It does result in an entry for every time fetchmail connects to a server to
check for mail even if no mail is available.

-- 
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
Think.
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.