You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Herman Reintke <hr...@tauri.nl> on 2003/09/06 13:25:21 UTC
Fetchmail & leaveonserver & seen
LS,
I am running the 22a10 fetchmail with the following configuration :
<account user="myaccount" password="mypassword" recipient="herman@localhost" ignorercpt-header="true"/>
<javaMailProviderName>pop3</javaMailProviderName>
<fetchall>false</fetchall>
<fetched leaveonserver="true" markseen="true"/>
But the messages from this account are being retrieved and processed each fetchmail interval.
I updated the code to debug whether the flag was set in MessageProcessor :
if (isMarkSeen())
getMessageIn().setFlag(Flags.Flag.SEEN, true);
getLogger().debug("Seen Flag set " + mail.getMessage().toString());
}
The debug output shows the setting of the flag.
In other (non fetchmail/james) messages there is mentioned that you cannot use the flags on a pop3 connection.
Is that what my problem is ?
In my experimenting with fetchpop I used the uidl list from the server to detect whether a message was already processed or new.
Is there a way to access the uid from a message ?
Kind regards,
Herman Reintke
RE: Fetchmail & leaveonserver & seen
Posted by Steve Brewin <sb...@synsys.com>.
> -----Original Message-----
> From: Herman Reintke [mailto:hreintke@tauri.nl]
> Sent: 06 September 2003 12:25
> To: server-user@james.apache.org
> Subject: Fetchmail & leaveonserver & seen
>
>
> LS,
>
> I am running the 22a10 fetchmail...
<<snipped>>
> But the messages from this account are being retrieved and
> processed each fetchmail interval.
<<summary>> though we can see they are marked as seen
> In other (non fetchmail/james) messages there is mentioned
> that you cannot use the flags on a pop3 connection.
> Is that what my problem is ?
Yes, it seems to be. A quick Google on Flag.SEEN +POP3 shows this is a
common problem with POP3 servers, the SEEN flag is often ignored. Note that
DELETED flag is usually OK.
I am currently working on the documentation for fetchmail and at a minimum
will include a note about this there and in the configuration file,
james-fetchmail.xml.
> In my experimenting with fetchpop I used the uidl list from
> the server to detect whether a message was already processed or new.
> Is there a way to access the uid from a message ?
For a javax.mail.internet.MimeMessage, getMessageID() answers the UID.
Lists of seen messages could be maintained, but it isn't pretty...
- There would have to be one list per <account>
- The lists would have to be persistent
- The lists would need to be pruned of messages no longer on the server to
stop perpetual growth
Personally, I don't think that this should be part of fetchmail. Assuming
that fixing the problem at source is not an option, it would be better in a
proxy sitting between the misbehaving server and all POP3 clients.
-- Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org