Re: Any way to remove timestamps from fetchmail output?

Spencer Collyer <[email protected]> Tue, 15 Apr 2025 06:20:09 +0100
Newsgroups gmane.mail.fetchmail.user
Message-ID <20250415062009.0d7c3964@anubis>
> Hello Spencer,
> 
> Thanks for the question and feedback. The log format is hardcoded, so
> you have not missed anything like a switch, there is none.
> 
> I'll see if I can change something for 6.5.3 to fix the double
> timestamp though,
> <https://gitlab.com/fetchmail/fetchmail/-/issues/66>.
> 
> In the interim, for cron, the first timestamp - can be stripped off by
> piping the output through sed, say,
> 
> fetchmail --your-options-here 2>&1 | sed -Ee
> 's/^(Jan|Feb|Mar|Apr|May|Ju[nl]|Aug|Sep|Oct|Nov|Dev) [0-9]{1,2}  
> [0-9]{1,2}:[0-9]{2}:[0-9]{2} //'
> 
> HTH
> 
> Matthias

Thanks Matthias. I'll try the 'sed' trick to get rid of the first one and would appreciate it if the double timestamp could be fixed.

Regards,

Spencer