|
From: <t_...@ti...> - 2025-10-18 17:51:00
|
Hi list, after upgrading to 6.5.6 I've noticed that syslog messages include the timestamp. Since I'm starting fetchmail thru systemd, the timestamp is already included in journal. Is it possible to remove timestamp from syslog message ? Here is my uname -a : Linux agmob3 6.16.12-100.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Oct 12 18:44:08 UTC 2025 x86_64 GNU/Linux Thanks in advance for any answer. Ciao Angelo |
|
From: axreios <rp...@am...> - 2025-10-18 20:01:15
|
On Sat, Oct 18, 2025 at 07:36:52PM +0200, t_...@ti... wrote: >Hi list, >after upgrading to 6.5.6 I've noticed that syslog messages include the timestamp. >Since I'm starting fetchmail thru systemd, the timestamp is already included in journal. >Is it possible to remove timestamp from syslog message ? > >Here is my uname -a : > >Linux agmob3 6.16.12-100.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Oct 12 18:44:08 UTC 2025 x86_64 GNU/Linux > >Thanks in advance for any answer. >Ciao >Angelo > Are you getting the timestamp listed twice? I am not seeing that, though I am not using systemd. I do start fetchmail from the command line with the --syslog option. FWIW. ax |
|
From: <t_...@ti...> - 2025-10-18 20:51:17
|
On Sat, 18 Oct 2025 15:01:08 -0500 axreios <rp...@am...> wrote: > On Sat, Oct 18, 2025 at 07:36:52PM +0200, t_...@ti... wrote: > >Hi list, > >after upgrading to 6.5.6 I've noticed that syslog messages include > >the timestamp. Since I'm starting fetchmail thru systemd, the > >timestamp is already included in journal. Is it possible to remove > >timestamp from syslog message ? > > > >Here is my uname -a : > > > >Linux agmob3 6.16.12-100.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Oct > >12 18:44:08 UTC 2025 x86_64 GNU/Linux > > > >Thanks in advance for any answer. > >Ciao > >Angelo > > > > Are you getting the timestamp listed twice? I am not seeing that, > though I am not using systemd. I do start fetchmail from the command > line with the --syslog option. FWIW. > ax > > Hi, thanks for your answer. here is an example of messages from my journalctl Oct 18 15:03:14 fetchmail[1601465]: Oct 18 15:03:14 fetchmail: 77 messages (77 seen) for ...... Oct 18 15:03:14 fetchmail[1601465]: Oct 18 15:03:14 fetchmail: 43 messages (43 seen) for ...... Oct 18 15:03:15 fetchmail[1601825]: Oct 18 15:03:15 fetchmail: No mail for ...... Oct 18 15:03:15 fetchmail[1601825]: Oct 18 15:03:15 fetchmail: No mail for ...... with previous fetchmail version (6.4) this was not happening. Thanks again. Ciao, Angelo |
|
From: Matthias A. <mat...@gm...> - 2025-10-20 18:16:48
|
Am 18.10.25 um 22:51 schrieb t_...@ti...: > On Sat, 18 Oct 2025 15:01:08 -0500 > axreios <rp...@am...> wrote: > >> On Sat, Oct 18, 2025 at 07:36:52PM +0200, t_...@ti... wrote: >>> Hi list, >>> after upgrading to 6.5.6 I've noticed that syslog messages include >>> the timestamp. Since I'm starting fetchmail thru systemd, the >>> timestamp is already included in journal. Is it possible to remove >>> timestamp from syslog message ? >>> >>> Here is my uname -a : >>> >>> Linux agmob3 6.16.12-100.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Oct >>> 12 18:44:08 UTC 2025 x86_64 GNU/Linux >>> >>> Thanks in advance for any answer. >>> Ciao >>> Angelo >>> >> Are you getting the timestamp listed twice? I am not seeing that, >> though I am not using systemd. I do start fetchmail from the command >> line with the --syslog option. FWIW. >> ax >> >> > Hi, > thanks for your answer. > here is an example of messages from my journalctl > > Oct 18 15:03:14 fetchmail[1601465]: Oct 18 15:03:14 fetchmail: 77 messages (77 seen) for ...... > Oct 18 15:03:14 fetchmail[1601465]: Oct 18 15:03:14 fetchmail: 43 messages (43 seen) for ...... > Oct 18 15:03:15 fetchmail[1601825]: Oct 18 15:03:15 fetchmail: No mail for ...... > Oct 18 15:03:15 fetchmail[1601825]: Oct 18 15:03:15 fetchmail: No mail for ...... > > with previous fetchmail version (6.4) this was not happening. Please heed <https://www.fetchmail.info/fetchmail-FAQ.html#G3> and please include information on how your systemd file looks like. |
|
From: <t_...@ti...> - 2025-10-20 21:07:10
|
On Mon, 20 Oct 2025 20:16:34 +0200 Matthias Andree via Fetchmail-users <fet...@li...> wrote: > Am 18.10.25 um 22:51 schrieb t_...@ti...: > > On Sat, 18 Oct 2025 15:01:08 -0500 > > axreios <rp...@am...> wrote: > > > >> On Sat, Oct 18, 2025 at 07:36:52PM +0200, t_...@ti... wrote: > >>> Hi list, > >>> after upgrading to 6.5.6 I've noticed that syslog messages include > >>> the timestamp. Since I'm starting fetchmail thru systemd, the > >>> timestamp is already included in journal. Is it possible to remove > >>> timestamp from syslog message ? > >>> > >>> Here is my uname -a : > >>> > >>> Linux agmob3 6.16.12-100.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Sun > >>> Oct 12 18:44:08 UTC 2025 x86_64 GNU/Linux > >>> > >>> Thanks in advance for any answer. > >>> Ciao > >>> Angelo > >>> > >> Are you getting the timestamp listed twice? I am not seeing that, > >> though I am not using systemd. I do start fetchmail from the > >> command line with the --syslog option. FWIW. > >> ax > >> > >> > > Hi, > > thanks for your answer. > > here is an example of messages from my journalctl > > > > Oct 18 15:03:14 fetchmail[1601465]: Oct 18 15:03:14 fetchmail: 77 > > messages (77 seen) for ...... Oct 18 15:03:14 fetchmail[1601465]: > > Oct 18 15:03:14 fetchmail: 43 messages (43 seen) for ...... Oct 18 > > 15:03:15 fetchmail[1601825]: Oct 18 15:03:15 fetchmail: No mail for > > ...... Oct 18 15:03:15 fetchmail[1601825]: Oct 18 15:03:15 > > fetchmail: No mail for ...... > > > > with previous fetchmail version (6.4) this was not happening. > > > Please heed <https://www.fetchmail.info/fetchmail-FAQ.html#G3> > > and please include information on how your systemd file looks like. > > Thanks for answering. I've read the FAQ and I have to say that my fetchmail works very fine. I only wonder why it includes timestamps in logs since the last upgrade. here is my systemd service (triggered by timer) ======================================================= [Unit] Description=Fetch My Mails Documentation=man:fetchmail(1) ConditionPathExists=/tmp/XISON [Service] Type=oneshot StandardOutput=journal StandardError=journal SyslogIdentifier=fetchmail SyslogFacility=mail SyslogLevel=warning ### check for full internet connection ExecStartPre=/Scripts/ck_full_conn ### fetch mails ExecStart=fetchmail -f /home/.MYFMRC SuccessExitStatus=1 ### fetch spam ExecStart=fetchmail -f /home/.MYFMRC_SPAM SuccessExitStatus=1 Restart=on-failure RestartSec=90 ======================================================= On the config files I use the follwing options : ======================================================= set invisible set no bouncemail defaults proto imap timeout 20 bad-header accept ======================================================= Should I provide any other info ? Thanks again. Regards Angelo > _______________________________________________ > Fetchmail-users mailing list > Fet...@li... > https://lists.sourceforge.net/lists/listinfo/fetchmail-users |
|
From: Andrew C A. <fet...@ai...> - 2025-10-21 11:03:58
|
On Mon, 20 Oct 2025, t_...@ti... wrote:
> I've read the FAQ and I have to say that my fetchmail works very fine.
> I only wonder why it includes timestamps in logs since the last
> upgrade.
Probably related to this * fetchmail, with --logfile, now logs time stamps
into the file, in localtime
and in the format "Jun 20 23:45:01 fetchmail: ". It will be localized
through
the environment variables LC_TIME (or LC_ALL) and TZ.
Contributed by Holger Hoffstätte.
from /home/src/ubuntu/fetchmail/fetchmail-6.5.0/NEWS
I think it is for the benefit of IMAP IDLE.
In that mode fetchmail keeps an open connection to the server
and logs whenever the server offers/pushes a new messages.
IMAP IDLE saves fetchmail from starting a new connection (including
setting up encryption) every few minutes and allows it to be completely
idle until there is a new message.
It doesn't support more than one remote mailbox
(unless you set up separate fetchmail processes with separate configs).
--
Andrew C. Aitchison Kendal, UK
an...@ai...
|
|
From: Matthias A. <mat...@gm...> - 2025-10-21 17:48:52
|
Am 21.10.25 um 12:45 schrieb Andrew C Aitchison: > > On Mon, 20 Oct 2025, t_...@ti... wrote: > >> I've read the FAQ and I have to say that my fetchmail works very fine. >> I only wonder why it includes timestamps in logs since the last >> upgrade. > > Probably related to this * fetchmail, with --logfile, now logs time > stamps > into the file, in localtime > and in the format "Jun 20 23:45:01 fetchmail: ". It will be localized > through > the environment variables LC_TIME (or LC_ALL) and TZ. > Contributed by Holger Hoffstätte. > from /home/src/ubuntu/fetchmail/fetchmail-6.5.0/NEWS > > I think it is for the benefit of IMAP IDLE. > In that mode fetchmail keeps an open connection to the server > and logs whenever the server offers/pushes a new messages. > > IMAP IDLE saves fetchmail from starting a new connection (including > setting up encryption) every few minutes and allows it to be completely > idle until there is a new message. > It doesn't support more than one remote mailbox > (unless you set up separate fetchmail processes with separate configs). > I've received relevant parts of Angelo's configuration directly, and part of the .service file is this section: > [Service] > Type=oneshot > StandardOutput=journal > StandardError=journal > SyslogIdentifier=fetchmail > SyslogFacility=mail > SyslogLevel=warning According to the .fetchmailrc file, Angelo does not use a logfile, so Holger's contribution does not apply; instead, fetchmail logs to stdout/stderr, adds a timestamp as it would when logging to console -- and systemd captures the output and adds its own timestamp for the journal. Angelo, you can either put --syslog on your fetchmail command lines in the fetchmail.service unit files, or you can add set syslog early (before skip and poll lines) to your various .fetchmailrc files. In that case, fetchmail will send directly to syslog without timestamps, and on systemd-based systems, syslog also usually ends up where journalctl looks. HTH Best regards, Matthias |
|
From: <t_...@ti...> - 2025-10-21 18:18:52
|
On Tue, 21 Oct 2025 19:48:39 +0200 Matthias Andree via Fetchmail-users <fet...@li...> wrote: > Angelo, > > you can either put --syslog on your fetchmail command lines in the > fetchmail.service unit files, or you can add > > set syslog > > early (before skip and poll lines) to your various .fetchmailrc files. > In that case, fetchmail will send directly to syslog without > timestamps, and on systemd-based systems, syslog also usually ends up > where journalctl looks. > > HTH > > Best regards, > Matthias OK Matthias, I'll use --syslog on the command lines Thanks you all for taking the time to answer my question. Ciao, Angelo > > > > _______________________________________________ > Fetchmail-users mailing list > Fet...@li... > https://lists.sourceforge.net/lists/listinfo/fetchmail-users |