fetchmail-friends
[Top] [All Lists]

Re: [fetchmail]Preventing fetchmail from marking message read with pop3

2004-04-25 21:10:49
On Sun, 25 Apr 2004, Rob Funk wrote:

Donald Thompson wrote:
Is it possible to have fetchmail not mark a retrieved message as being
'read'?

Depends on your configuration settings, and possibly your POP server.....

What does your .fetchmailrc look like?  (fetchmail -V is a good way to
report this.)

Heres the fetchmailrc:
poll 10.9.1.21 protocol pop3 username XXXX password XXXXX smtpname 
dlt(_at_)wherever(_dot_)com keep set logfile /home/dlt/fetchmail.log

Telnetting to the pop3 port on the voice mail server gives me this version
string:
POP3 Server (Version R6.0-6.39.0,04 January 1999)

Fetchmail -V reports:
dlt(_at_)dv2:~$ fetchmail -V
This is fetchmail release 6.2.5+NTLM+SDPS+SSL+NLS
Fallback MDA: (none)
Linux dv2 2.4.25 #2 Thu Feb 19 17:07:04 EST 2004 i686 GNU/Linux
Taking options from command line and /home/dlt/.fetchmailrc
Logfile is /home/dlt/fetchmail.log
Idfile is /home/dlt/.fetchids
Fetchmail will show progress dots even in logfiles.
Fetchmail will forward misaddressed multidrop messages to dlt.
Options for retrieving from 1022(_at_)10(_dot_)9(_dot_)1(_dot_)21:
  True name of server is 10.9.1.21.
  Protocol is POP3.
  All available authentication methods will be tried.
  Server nonresponse timeout is 300 seconds (default).
  Default mailbox selected.
  Only new messages will be retrieved (--all off).
  Fetched messages will be kept on the server (--keep on).
  Old messages will not be flushed before message retrieval (--flush off).
  Rewrite of server-local addresses is enabled (--norewrite off).
  Carriage-return stripping is disabled (stripcr off).
  Carriage-return forcing is disabled (forcecr off).
  Interpretation of Content-Transfer-Encoding is enabled (pass8bits off).
  MIME decoding is disabled (mimedecode off).
  Idle after poll is disabled (idle off).
  Nonempty Status lines will be kept (dropstatus off)
  Delivered-To lines will be kept (dropdelivered off)
  Fetch message size limit is 100 (--fetchsizelimit 100).
  Do binary search of UIDs during 9 out of 10 polls (--fastuidl 10).
  Messages will be SMTP-forwarded to: localhost (default)
  Address to be put in RCPT TO lines shipped to SMTP will be 
dlt(_at_)wherever(_dot_)com
  Single-drop mode: 1 local name(s) recognized.
  1 UIDs saved.

The fetchmail is from a debian unstable package.


I have a voice mail system where I use fetchmail to pop3 voice
mail messages from the voice mail server into users email accounts. Even
if I use 'keep' option, the voice mail ends up in a 'heard' section of
the voice mail system as opposed to keeping it as newly received voice
mail.

Are you using the fetchall option?  If so, try getting rid of it.  If not,
try adding "no fetchall".

No, I am not using fetchall.

Running fetchmail with the -v -v option may be useful for us to see exactly
which POP commands it's using.

Heres the output of fetchmail -vvv. Note that one message is 'Read' which
it does not fetch, and one message is 'Unread' which it does fetch.

dlt(_at_)dv2:~$ fetchmail -vvv
fetchmail: 6.2.5 querying 10.9.1.21 (protocol POP3) at Mon Apr 26 00:03:51
2004:
 poll started
fetchmail: POP3< +OK dvvoice POP3 Server (Version R6.0-6.39.0,04 January
1999) r
eady. <13325(_dot_)1082952212(_at_)dvvoice(_dot_)wherever(_dot_)local>
fetchmail: POP3> CAPA
fetchmail: POP3< -ERR Invalid command; valid commands: APOP, USER (then
PASS), Q
UIT
fetchmail: Invalid command; valid commands: APOP, USER (then PASS), QUIT
fetchmail: Repoll immediately on 1022(_at_)10(_dot_)9(_dot_)1(_dot_)21
fetchmail: POP3< +OK dvvoice POP3 Server (Version R6.0-6.39.0,04 January
1999) r
eady. <13326(_dot_)1082952212(_at_)dvvoice(_dot_)wherever(_dot_)local>
fetchmail: POP3> USER 1022
fetchmail: POP3< +OK please send PASS command
fetchmail: POP3> PASS *
fetchmail: POP3< +OK 2 messages ready for 1022
fetchmail: POP3> STAT
fetchmail: POP3< +OK 2 21322
fetchmail: POP3> LAST
fetchmail: POP3< -ERR Invalid command; valid commands:  DELE, LIST, NOOP,
RETR, RSET, STAT, TOP, UIDL, or QUIT
fetchmail: Invalid command; valid commands:  DELE, LIST, NOOP, RETR, RSET,
STAT, TOP, UIDL, or QUIT
fetchmail: POP3> UIDL
fetchmail: POP3< +OK UIDL listing for 2 messages:
fetchmail: POP3< 1 1040425(_dot_)93951(_at_)dvvoice(_dot_)wherever(_dot_)local
fetchmail: POP3< 2 1040426(_dot_)94207(_at_)dvvoice(_dot_)wherever(_dot_)local
fetchmail: POP3< .
fetchmail: 2 messages (1 seen) for 1022 at 10.9.1.21 (21322 octets).
fetchmail: skipping message 1022(_at_)10(_dot_)9(_dot_)1(_dot_)21:1 not flushed
fetchmail: POP3> LIST 2
fetchmail: POP3< +OK 2 9715
fetchmail: POP3> RETR 2
fetchmail: POP3< +OK message 2 (9715 octets):
fetchmail: reading message 1022(_at_)10(_dot_)9(_dot_)1(_dot_)21:2 of 2 (9715 
octets)
fetchmail: SMTP< 220 dv2.wherever.com ESMTP Exim 3.36 #1 Mon, 26 Apr
2004 00:03:56 -0400
fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-dv2.wherever.com Hello localhost [127.0.0.1]
fetchmail: SMTP< 250-SIZE
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-AUTH PLAIN LOGIN
fetchmail: SMTP< 250-STARTTLS
fetchmail: SMTP< 250 HELP
fetchmail: SMTP> MAIL FROM:<non-mail-user(_at_)mail> SIZE=9715
fetchmail: SMTP< 250 <non-mail-user(_at_)mail> is syntactically correct
fetchmail: SMTP> RCPT TO:<dlt(_at_)wherever(_dot_)com>
fetchmail: SMTP< 250 <dlt(_at_)wherever(_dot_)com> verified
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter message, ending with "." on a line by itself
#****************.*****************.****************.*****************.****************.*****************.****************.*****************.*****************fetchmail:
SMTP>. (EOM)
fetchmail: SMTP< 250 OK id=1BHxLY-0003BD-00
fetchmail:  not flushed
fetchmail: POP3> QUIT
fetchmail: POP3< +OK dvvoice POP3 Server (Version R6.0-6.39.0) shutdown.
fetchmail: 6.2.5 querying 10.9.1.21 (protocol POP3) at Mon Apr 26 00:03:56
2004: poll completed
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 dv2.wherever.com closing connection
fetchmail: normal termination, status 0

-Don