Unfortunately, the POP3 protocol does not support marking messages as "seen", whereas the IMAP protocol does.
fetchmail can be configured to use either protocol, but if your mail provider does not support IMAP, I'm afraid you are out of luck! fetchmail could be modified to optionally maintain a configurable sized cache of "seen" message ids enabling IMAP's "seen" behaviour to be emulated to some extent when using the POP3 protocol. If anyone has the itch, please post to server-dev. Cheers -- Steve > -----Original Message----- > From: Wes Thompson [mailto:[email protected]] > Sent: 10 April 2009 06:50 > To: [email protected] > Subject: FETCHMAIL not recognizing "mark as seen" flag, > causes duplicate > messages > > > Hello, I am setting up fetchmail to fetch messages from my > ISP mail server (mail.comcast.net). > > Where I am at: > - James/fetchmail configured so that it is downloading > the messages > - Can access the messages through James. > - The messages are going to the correct mailbox. > - Looked at the log -- no problems, > - The log notes that the fetchmail config file isn't > extracted b/c the file already exists (i assume this is normal) > > My problem: > I am receiving duplicate emails. I have set markseen="true" > in the config file but it seems that fetchmail still > downloads all of the messages instead of just the new > messages. Obviously, I could set leaveonserver="false" to > correct this but I would rather not. Any suggestions? My > config file for fetchmail and my log output are shown below. > > -WT > > > > CONFIGFILE: apps/james/conf/james-fetchmail.xml: > > <fetchmail enabled="true"> > <fetch name="comcastaccount"> > <accounts> > <account user="xxxx" password="xxxx" > recipient="[email protected]" ignorercpt-header="true"/> > </accounts> > <host>mail.comcast.net</host> > > <interval>60000</interval> > > <javaMailProviderName>pop3</javaMailProviderName> > <javaMailFolderName>INBOX</javaMailFolderName> > > <javaMailProperties> > <property name="mail.pop3.connectiontimeout" > value="180000"/> > <property name="mail.pop3.timeout" > value="180000"/> > </javaMailProperties> > > <fetchall>false</fetchall> > > <recursesubfolders>false</recursesubfolders> > > <fetched leaveonserver="true" markseen="true"/> > > <remotereceivedheader index="1" reject="true" > leaveonserver="true" markseen="false"/> > > <maxmessagesize limit="0" reject="false" > leaveonserver="true" markseen="false"/> > <undeliverable leaveonserver="true" > markseen="false"/> > > <recipientnotfound defer="true" reject="true" > leaveonserver="true" markseen="false"/> > > <userundefined reject="true" leaveonserver="true" > markseen="false" /> > <remoterecipient reject="true" > leaveonserver="true" markseen="false" /> > > <blacklist reject="true" leaveonserver="true" > markseen="false"> wib...@localhost, flob...@localhost </blacklist> > </fetch> > </fetchmail> > > > LOGFILE: log/phoenix.log: > > INFO 2009-04-10 00:29:38.540 [Phoenix ] (): Logger started > WARN 2009-04-10 00:29:38.605 [Phoenix ] (): Phoenix was > not started by the daemon thus it will not be possible to > restart the JVM via the Management interface. > INFO 2009-04-10 00:29:38.903 [Phoenix.] (): Installing Sar > located at file:/opt/james-2.3.1/apps/james.sar. > WARN 2009-04-10 00:29:39.231 [Phoenix.] (): The file > conf/sqlResources.xml can not be extracted from the Sar > "file:/opt/james-2.3.1/apps/james.sar" into directory > /opt/james-2.3.1/apps/james/conf/sqlResources.xml because > there is a file in the way. > WARN 2009-04-10 00:29:39.231 [Phoenix.] (): The file > conf/james-fetchmail.xml can not be extracted from the Sar > "file:/opt/james-2.3.1/apps/james.sar" into directory > /opt/james-2.3.1/apps/james/conf/james-fetchmail.xml because > there is a file in the way. > WARN 2009-04-10 00:29:39.232 [Phoenix.] (): The file > conf/james-smtphandlerchain.xml can not be extracted from the > Sar "file:/opt/james-2.3.1/apps/james.sar" into directory > /opt/james-2.3.1/apps/james/conf/james-smtphandlerchain.xml > because there is a file in the way. > WARN 2009-04-10 00:29:39.234 [Phoenix.] (): The file > conf/miResources.xml can not be extracted from the Sar > "file:/opt/james-2.3.1/apps/james.sar" into directory > /opt/james-2.3.1/apps/james/conf/miResources.xml because > there is a file in the way. > WARN 2009-04-10 00:29:39.235 [Phoenix.] (): The file > conf/james-listmanager.xml can not be extracted from the Sar > "file:/opt/james-2.3.1/apps/james.sar" into directory > /opt/james-2.3.1/apps/james/conf/james-listmanager.xml > because there is a file in the way. > WARN 2009-04-10 00:29:39.236 [Phoenix.] (): The file > conf/james-liststores.xml can not be extracted from the Sar > "file:/opt/james-2.3.1/apps/james.sar" into directory > /opt/james-2.3.1/apps/james/conf/james-liststores.xml because > there is a file in the way. > WARN 2009-04-10 00:29:39.238 [Phoenix.] (): The file > conf/samples/fetchmail/maxMessageSize.xml can not be > extracted from the Sar "file:/opt/james-2.3.1/apps/james.sar" > into directory > /opt/james-2.3.1/apps/james/conf/samples/fetchmail/maxMessageS > ize.xml because there is a file in the way. > WARN 2009-04-10 00:29:39.239 [Phoenix.] (): The file > conf/samples/fetchmail/oneAccountManyUsers.xml can not be > extracted from the Sar "file:/opt/james-2.3.1/apps/james.sar" > into directory > /opt/james-2.3.1/apps/james/conf/samples/fetchmail/oneAccountM > anyUsers.xml because there is a file in the way. > WARN 2009-04-10 00:29:39.240 [Phoenix.] (): The file > conf/samples/fetchmail/oneAccountManyUsersDynamic.xml can not > be extracted from the Sar > "file:/opt/james-2.3.1/apps/james.sar" into directory > /opt/james-2.3.1/apps/james/conf/samples/fetchmail/oneAccountM > anyUsersDynamic.xml because there is a file in the way. > WARN 2009-04-10 00:29:39.241 [Phoenix.] (): The file > conf/samples/fetchmail/oneAccountPerUser.xml can not be > extracted from the Sar "file:/opt/james-2.3.1/apps/james.sar" > into directory > /opt/james-2.3.1/apps/james/conf/samples/fetchmail/oneAccountP > erUser.xml because there is a file in the way. > WARN 2009-04-10 00:29:39.242 [Phoenix.] (): The file > conf/samples/fetchmail/oneAccountPerUserDynamic.xml can not > be extracted from the Sar > "file:/opt/james-2.3.1/apps/james.sar" into directory > /opt/james-2.3.1/apps/james/conf/samples/fetchmail/oneAccountP > erUserDynamic.xml because there is a file in the way. > WARN 2009-04-10 00:29:39.243 [Phoenix.] (): The file > conf/samples/fetchmail/remoteReceivedHeader.xml can not be > extracted from the Sar "file:/opt/james-2.3.1/apps/james.sar" > into directory > /opt/james-2.3.1/apps/james/conf/samples/fetchmail/remoteRecei > vedHeader.xml because there is a file in the way. > WARN 2009-04-10 00:29:39.244 [Phoenix.] (): The file > SAR-INF/config.xml can not be extracted from the Sar > "file:/opt/james-2.3.1/apps/james.sar" into directory > /opt/james-2.3.1/apps/james/SAR-INF/config.xml because there > is a file in the way. > WARN 2009-04-10 00:29:39.245 [Phoenix.] (): The file > SAR-INF/assembly.xml can not be extracted from the Sar "file:/opt/james-2.3.1/apps/james.sar" into directory /opt/james-2.3.1/apps/james/SAR-INF/assembly.xml because there is a file in the way. WARN 2009-04-10 00:29:39.254 [Phoenix.] (): The file SAR-INF/environment.xml can not be extracted from the Sar "file:/opt/james-2.3.1/apps/james.sar" into directory /opt/james-2.3.1/apps/james/SAR-INF/environment.xml because there is a file in the way. INFO 2009-04-10 00:29:40.108 [Phoenix.] (): Verifying that all key-stores have valid names. INFO 2009-04-10 00:29:40.108 [Phoenix.] (): Verify that any keystore names used by grant or permission reference actual keystores INFO 2009-04-10 00:29:40.109 [Phoenix.] (): Verify that if target is null then actions is null. INFO 2009-04-10 00:29:40.854 [Phoenix.] (): Verifying that the name specified for Blocks and BlockListeners are valid. INFO 2009-04-10 00:29:40.860 [Phoenix.] (): Verifying that the names specified for Component are valid. INFO 2009-04-10 00:29:40.860 [Phoenix.] (): Verifying that the names specified for the Components are unique. INFO 2009-04-10 00:29:40.861 [Phoenix.] (): Verifying that the dependency mapping is valid according to ComponentInfos. INFO 2009-04-10 00:29:40.861 [Phoenix.] (): Verifying that the dependency mapping for every Component is valid with respect to other components. INFO 2009-04-10 00:29:40.862 [Phoenix.] (): Verifying that there are no circular dependencies between Components. INFO 2009-04-10 00:29:40.873 [Phoenix.] (): Verifying that the name specified for Blocks and BlockListeners are unique. INFO 2009-04-10 00:29:40.874 [Phoenix.] (): Verifying that the specified Blocks have valid types. INFO 2009-04-10 00:29:41.028 [Phoenix.] (): Verifying that the specified BlockListeners have valid types. INFO 2009-04-10 00:29:41.303 [Phoenix.] (): 20 Blocks to process for phase "startup". Order of processing = [dnsserver, database-connections, mailstore, users-store, localusersrepository, spoolrepository, sockets, thread-manager, scheduler, James, mailetpackages, matcherpackages, spoolmanager, connections, remotemanager, pop3server, smtpserver, nntp-repository, nntpserver, fetchmail]. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
