fetchmail-friends
[Top] [All Lists]

Re: [fetchmail]FeatureRequest: log if fetchmail run is done

2001-08-31 10:46:47
Here is a feature request:

It would be good, if fetchmail would log if one fetchmail run is
done. Background: I am writing a script which goes offline as soon as
all mail was sent an recieved. Up to now I have a not existing pop
server in the last line of fetchmailrc. So I know when fetchmail has
recieved all mail, but that's not nice.

I second this request wholeheartedly. No surprise as I proposed the exact
same feature a while ago. I'd like to be able to (visually or automatically)
derive the state fetchmail from the (sys)log. Now you know when fetchmail
started but not when it finished a cycle.

My request was regarded as resulting in excessive verbosity, cluttering the
logs with too much info. As a matter of fact, after using fetchmail a while,
I have found loads of clutter from when a message was seen before and is
being skipped. This is noted in the log like "skipping message 55 (4640
octets) not flushed". On average I get about 60 of these messages of limited
value in my log every cycle. I suggest we trade these in for the single
requested "daemon poll cycle finished" message and win  on all parts.

As background info: I run a script that removes messages from my ISP only
after two days. Fetchmail runs with --keep --noflush.

I definitely feel implementing this request would add to the already
significant value of fetchmail.

Regards,
Jan Klaverstijn.


----- Original Message -----
From: <fetchmail-friends-request(_at_)lists(_dot_)ccil(_dot_)org>
To: <fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org>
Sent: Friday, August 31, 2001 6:01 PM
Subject: Fetchmail-friends digest, Vol 1 #177 - 9 msgs


Send Fetchmail-friends mailing list submissions to
fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.ccil.org/mailman/listinfo/fetchmail-friends
or, via email, send a message with subject or body 'help' to
fetchmail-friends-request(_at_)lists(_dot_)ccil(_dot_)org

You can reach the person managing the list at
fetchmail-friends-admin(_at_)lists(_dot_)ccil(_dot_)org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Fetchmail-friends digest..."


Today's Topics:

   1. Re: My Fetchmail keeps stopping (Rob MacGregor)
   2. Re: 2001-08-28 / pop3+ssl after imap / fails in daemon
       but not in foreground mode (Jorge Godoy)
   3. Re: My Fetchmail keeps stopping (David Findlay)
   4. Re: FeatureRequest: log if fetchmail run is done (Jorge Godoy)
   5. Re: FeatureRequest: log if fetchmail run is done (Thomas Guettler)
   6. Re: FeatureRequest: log if fetchmail run is done (Jorge Godoy)
   7. Re: My Fetchmail keeps stopping (Rob MacGregor)
   8. On UNIX (SOLARIS) - loss of file .fetchmail.pid (Will Renkel
{QA1403})

--__--__--

Message: 1
From: "Rob MacGregor" <rob_macgregor(_at_)hotmail(_dot_)com>
To: david_j_findlay(_at_)yahoo(_dot_)com(_dot_)au, 
fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org
Subject: Re: [fetchmail]My Fetchmail keeps stopping
Date: Thu, 30 Aug 2001 09:27:54 +0100

From: David Findlay <david_j_findlay(_at_)yahoo(_dot_)com(_dot_)au>

My fetchmail keeps stopping all the time. It will work okay for a while
after
first started in daemon mode, but then it will just stop working. If I
kill
it, and start it again it works fine once again and then later stop
again.
Anyone got any ideas why? Thanks,

One day people will provide information beyond "it doesn't work"... :-(

1) OS version?
2) Fetchmail version?
3) Error messages from logs?

--
Rob
NOTE: Please don't CC me on anything sent to mailing lists or send me
email
directly unless it's a privacy issue, thanks.


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



--__--__--

Message: 2
To: Jochen_Hayek(_at_)ACM(_dot_)org
Cc: fetchmail-friends(_at_)ccil(_dot_)org
Subject: Re: [fetchmail]2001-08-28 / pop3+ssl after imap / fails in daemon
 but not in foreground mode
From: Jorge Godoy <godoy(_at_)conectiva(_dot_)com>
Date: Thu, 30 Aug 2001 08:17:26 -0300

Jochen_Hayek(_at_)ACM(_dot_)org writes:

<snip />

    fetchmail: 5.8.0 querying jh60.gmx.net (protocol POP3) at Tue Aug 21
=
12:32:45 2001
    fetchmail: SSL connection failed.
    fetchmail: fetchmail: sleeping at Tue Aug 21 12:32:45 2001
    fetchmail: terminated with signal 2

My IMAP also works... And, with regards to pop3:

[godoy(_at_)dagon godoy]$ LANG=3D LC_ALL=3D
fetchmail --verbose --nodetach --dae=
mon=3D100 pop.conectiva
fetchmail: starting fetchmail 5.9.0 daemon
fetchmail: 5.9.0 querying pop.conectiva (protocol POP3) at Thu Aug 30
08:15=
:45 2001
fetchmail: Issuer Organization: Conectiva
fetchmail: Issuer CommonName: pop.conectiva
fetchmail: Server CommonName: pop.conectiva
fetchmail: pop.conectiva key fingerprint:
82:2B:27:12:A1:63:25:39:C6:43:49:=
2D:8F:82:DA:75
fetchmail: Warning: server certificate verification: self signed
certificate
fetchmail: Issuer Organization: Conectiva
fetchmail: Issuer CommonName: pop.conectiva
fetchmail: Server CommonName: pop.conectiva
fetchmail: Warning: server certificate verification: Certificate has
expired
fetchmail: Issuer Organization: Conectiva
fetchmail: Issuer CommonName: pop.conectiva
fetchmail: Server CommonName: pop.conectiva
fetchmail: Warning: server certificate verification: Certificate has
expired
fetchmail: POP3< +OK POP3 burns.conectiva v2000.70cl server ready
fetchmail: POP3> USER godoy
fetchmail: POP3< +OK User name accepted, password please
fetchmail: POP3> PASS *
fetchmail: POP3< +OK Mailbox open, 1 messages


Update your fetchmail to 5.9.0 and try again. :-) I think that this
problem might be already corrected.

Of course I am willing to compile&install&run an experimental version.

You can try a released version. :-)



--=20
Godoy. <godoy(_at_)conectiva(_dot_)com>

Solutions Developer       - Conectiva Inc. - http://en.conectiva.com
Desenvolvedor de Solu=E7=F5es - Conectiva S.A. -
http://www.conectiva.com.br


--__--__--

Message: 3
From: David Findlay <david_j_findlay(_at_)yahoo(_dot_)com(_dot_)au>
Organization: Davsoft
To: "Rob MacGregor" <rob_macgregor(_at_)hotmail(_dot_)com>
Subject: Re: [fetchmail]My Fetchmail keeps stopping
Date: Thu, 30 Aug 2001 21:16:42 +1000
Cc: fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org

On Thursday 30 August 2001 18:27, Rob MacGregor hit his keyboard with his
head and the result was this:
From: David Findlay <david_j_findlay(_at_)yahoo(_dot_)com(_dot_)au>

My fetchmail keeps stopping all the time. It will work okay for a while
after
first started in daemon mode, but then it will just stop working. If I
kill it, and start it again it works fine once again and then later
stop
again. Anyone got any ideas why? Thanks,

One day people will provide information beyond "it doesn't work"... :-(

I thought there was enough info there, sorry :-)

1) OS version?

Debian Linux Unstable running kernel 2.2.18

2) Fetchmail version?

Latest one in Debian Unstable.

3) Error messages from logs?

No errors anywhere. It just comes to a halt regularly. I've tried running
it
in verbose mode, no errors at all. That's what has me mystified. It's in
daemon mode polling my three servers every 180 seconds. Thanks,

David


--__--__--

Message: 4
To: Thomas Guettler <thomas(_at_)thomas-guettler(_dot_)de>
Cc: fetchmail-friends(_at_)ccil(_dot_)org
Subject: Re: [fetchmail]FeatureRequest: log if fetchmail run is done
From: Jorge Godoy <godoy(_at_)conectiva(_dot_)com>
Date: Thu, 30 Aug 2001 08:23:08 -0300

Thomas Guettler <guettli(_at_)thomas-guettler(_dot_)de> writes:

Here is a feature request:

It would be good, if fetchmail would log if one fetchmail run is
done. Background: I am writing a script which goes offline as soon as
all mail was sent an recieved. Up to now I have a not existing pop
server in the last line of fetchmailrc. So I know when fetchmail has
recieved all mail, but that's not nice.

If some one is interessted, it is at
http://www.thomas-guettler.de/scripts (pon4mail.sh). But it is Debian
specific.

Please CC to me, I am not on this list.

Thomas,=20

Could you explain it better? I think didn't get it (maybe because I'm
not a native speaker...).=20

You're trying to know when fetchmail has finished it's work? Is it?
With fetchmail + postfix I can just look at /var/log/maillog and look
after=20

Aug 30 08:21:08 dagon postfix/smtpd[4087]: disconnect from
localhost.locald=
omain[127.0.0.1]=20=20


to know when something was delivered and the connection closed. YMMV,
but I think this is highly dependent on how your MTA handles
connections. I'd try looking for similar stuff from your MTA.=20


--=20
Godoy. <godoy(_at_)conectiva(_dot_)com>

Solutions Developer       - Conectiva Inc. - http://en.conectiva.com
Desenvolvedor de Solu=E7=F5es - Conectiva S.A. -
http://www.conectiva.com.br


--__--__--

Message: 5
Date: Thu, 30 Aug 2001 14:14:00 +0200
To: Jorge Godoy <godoy(_at_)conectiva(_dot_)com>
Cc: fetchmail-friends(_at_)ccil(_dot_)org
Subject: Re: [fetchmail]FeatureRequest: log if fetchmail run is done
Reply-To: Thomas Guettler <thomas(_at_)thomas-guettler(_dot_)de>
From: Thomas Guettler <guettli(_at_)thomas-guettler(_dot_)de>

On Thu, Aug 30, 2001 at 08:23:08AM -0300, Jorge Godoy wrote:
Thomas Guettler <guettli(_at_)thomas-guettler(_dot_)de> writes:

Here is a feature request:

It would be good, if fetchmail would log if one fetchmail run is
done. Background: I am writing a script which goes offline as soon as
all mail was sent an recieved. Up to now I have a not existing pop
server in the last line of fetchmailrc. So I know when fetchmail has
recieved all mail, but that's not nice.

If some one is interessted, it is at
http://www.thomas-guettler.de/scripts (pon4mail.sh). But it is Debian
specific.

Please CC to me, I am not on this list.

Thomas,

Could you explain it better? I think didn't get it (maybe because I'm
not a native speaker...).

You're trying to know when fetchmail has finished it's work? Is it?
With fetchmail + postfix I can just look at /var/log/maillog and look
after

Aug 30 08:21:08 dagon postfix/smtpd[4087]: disconnect from
localhost.localdomain[127.0.0.1]


I prefer looking into /var/log/fetchmail. Up to now my log would look
like this:

fetchmail: 5.3.3 querying iaix5.informatik.htw-dresden.de (protocol ...
(1)
fetchmail: terminated with signal 15
fetchmail: starting fetchmail 5.3.3 daemon
fetchmail: 5.3.3 querying iaix5.informatik.htw-dresden.de (protocol ...

(1) After quering the last server (iaix5...) fetchmail starts
sleeping. Here it would be nice to have something like "fetchmail:
start to sleep ...". Because my script pon4mail.sh checks the log
every second and goes offline as soon as all servers were queried.

Up to now I do this be adding an not existing mailserver to the
fetchmailrc. As soon as pon4mail.sh sees the server name at the last
line of /var/log/fetchmail it goes offline. This works but is ugly.

If fetchmail would tell me before starting to sleep I would know when
all servers are queried and go offline.

I hope you know what I mean now.

I think this means adding one line to fetchmail sources.

--
Open Source Software Solutions
Thomas Guettler <thomas(_at_)thomas-guettler(_dot_)de>
http://www.thomas-guettler.de



--__--__--

Message: 6
To: Thomas Guettler <thomas(_at_)thomas-guettler(_dot_)de>
Cc: fetchmail-friends(_at_)ccil(_dot_)org
Subject: Re: [fetchmail]FeatureRequest: log if fetchmail run is done
From: Jorge Godoy <godoy(_at_)conectiva(_dot_)com>
Date: Thu, 30 Aug 2001 10:29:04 -0300

Thomas Guettler <guettli(_at_)thomas-guettler(_dot_)de> writes:

I prefer looking into /var/log/fetchmail. Up to now my log would look
like this:

<snip/>

(1) After quering the last server (iaix5...) fetchmail starts
sleeping. Here it would be nice to have something like "fetchmail:
start to sleep ...". Because my script pon4mail.sh checks the log
every second and goes offline as soon as all servers were queried.

Indeed. As it does when you have verbose output on console...

Up to now I do this be adding an not existing mailserver to the
fetchmailrc. As soon as pon4mail.sh sees the server name at the last
line of /var/log/fetchmail it goes offline. This works but is ugly.

If fetchmail would tell me before starting to sleep I would know when
all servers are queried and go offline.

By "going online" and "going offline" you mean connecting and
disconnecting from your ISP? Are you trying to implement some basic
"dial on demand" control?=20

You would make your script count the time when the connection is down
and dial again, so that fetchmail can pull your messages?

You may also try looking at:

       preconnect               Command to be executed before each
                                connection
       postconnect              Command  to be executed after each
                                connection

To try sending some message to the log file (or even running
something) that your script will be able to get.=20

I hope you know what I mean now.

I wasn't being ironic. Just trying to say that I might have lost
something :-) I see that I understood what you meant and that the
alternative I pointed out isn't good for you.=20

I think this means adding one line to fetchmail sources.=20

Dunno. :-) Maybe it's already there and we don't know how to activate
it. :-)=20


--=20
Godoy. <godoy(_at_)conectiva(_dot_)com>

Solutions Developer       - Conectiva Inc. - http://en.conectiva.com
Desenvolvedor de Solu=E7=F5es - Conectiva S.A. -
http://www.conectiva.com.br


--__--__--

Message: 7
From: "Rob MacGregor" <rob_macgregor(_at_)hotmail(_dot_)com>
To: david_j_findlay(_at_)yahoo(_dot_)com(_dot_)au
Cc: fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org
Subject: Re: [fetchmail]My Fetchmail keeps stopping
Date: Thu, 30 Aug 2001 14:37:23 +0100

From: David Findlay <david_j_findlay(_at_)yahoo(_dot_)com(_dot_)au>

2) Fetchmail version?

Latest one in Debian Unstable.

"fetchmail -V | head -5" will tell you the exact version.

3) Error messages from logs?

No errors anywhere. It just comes to a halt regularly. I've tried running
it
in verbose mode, no errors at all. That's what has me mystified. It's in
daemon mode polling my three servers every 180 seconds. Thanks,

Hmmm, you could grab the latest and build that, see if it solves your
problem.

You could also try running it with ptrace (ie "ptrace fetchmail") and
watch
the output.  When fetchmail stops take a look over the last screenful,
there
should be a sign there as to the problem.

--
Rob
NOTE: Please don't CC me on anything sent to mailing lists or send me
email
directly unless it's a privacy issue, thanks.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



--__--__--

Message: 8
Date: Thu, 30 Aug 2001 10:51:03 -0500 (CDT)
From: Will Renkel {QA1403} <renkel(_at_)cig(_dot_)mot(_dot_)com>
To: fetchmail-friends(_at_)ccil(_dot_)org
Subject: [fetchmail]On UNIX (SOLARIS) - loss of file .fetchmail.pid

This file continues to disappear when I have fetchmail runninmg in daemon
mode.
This started with fetchmail release 5.9.0
hence if I try to "re-awaken" the process for a new poll before the
elapsed specified time
it does not work.

I can (and do) recreate the file.
But does anyone have a clue as to why its dis-apperaing?


--
--------------------------------------------------------------------
 Will Renkel - Motorola Test Labs & Support - REMEDY Support Team
 1501 W. Shure Drive - Arlington Heights, IL 60004
 (847) 632-4416 - Will(_dot_)Renkel(_at_)motorola(_dot_)com

"Golf and bowling are not a matter of life and death ...
     they transcend such trivial matters!"

"da little BIG DOG!"
--------------------------------------------------------------------



--__--__--

_______________________________________________
Fetchmail-friends mailing list
Fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org
http://lists.ccil.org/mailman/listinfo/fetchmail-friends


End of Fetchmail-friends Digest




<Prev in Thread] Current Thread [Next in Thread>