Re: Adding timestamp to maillog
Dennis Putnam <[email protected]>
| Newsgroups | gmane.mail.fetchmail.user |
|---|---|
| Message-ID | <[email protected]> |
On 9/10/2020 4:43 PM, James Moe via Fetchmail-users wrote: > 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. > Thanks for everyone that replied. I was not aware of 'preconnect'. This is the solution I prefer. _______________________________________________ Fetchmail-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fetchmail-users
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQTebsbo9TQsIuOkbg/9+JZipna1VAUCX1t9HAAKCRD9+JZipna1 VDpoAKDYKbvnwkml0Kr5BiWnfuzIAEfLxQCeK9uRxiki29qIrcruuYfRcDqd6bk= =OJJQ -----END PGP SIGNATURE-----