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 va...@yahoo.com on 2004/11/04 14:11:33 UTC
FetchMail issue.
Hello
I have an issue with fetchmail.
I am using james 2.2.0 to download emails via pop and process them via a mailet.
My emails are not getting deleted on the pop server despite having leaveonserver="false"
everywhere...
Once downloaded, the emails are then passed onto a mailet. The same emails are getting downloaded
over and over (and it seems to do always the same 7 out of 13). The mailet will change the state
of the email to "Mail.GHOST" once it has finished processing it as I do not want to store any
processed emails.
I would like to delete the emails on the POP server...
Looking at the log below, one can see 2 entries per email.
1/ about "Ignoring recipient header" where Delete=false
2/ about "Spooled message to ..." where Delete=true
Why do we have conflicting Delete values?
Give the fetchmail config (further below) why doesn't it delete the emails???
Any suggestions would be greatly appreciated.
Many thanks
Benoit
Here is the log from fetchmail:
04/11/04 13:02:15 INFO fetchmail.ChartFetch: Starting fetching mail from server 'www.XXXXX.co.uk'
for user 'YYYYYYY.co.uk' in folder 'INBOX'
04/11/04 13:02:16 INFO fetchmail.ChartFetch: Ignoring recipient header. Using configured
recipient as new envelope recipient: user1@localhost. Message ID:
<39...@lonu0047>. Flags: Seen = false, Delete = false.
04/11/04 13:02:24 INFO fetchmail.ChartFetch: Spooled message to recipients: user1@localhost .
Message ID: <39...@lonu0047>. Flags: Seen = false, Delete = true.
04/11/04 13:02:25 INFO fetchmail.ChartFetch: Ignoring recipient header. Using configured
recipient as new envelope recipient: user1@localhost. Message ID:
<16...@lonu0047>. Flags: Seen = false, Delete = false.
04/11/04 13:02:41 INFO fetchmail.ChartFetch: Spooled message to recipients: user1@localhost .
Message ID: <16...@lonu0047>. Flags: Seen = false, Delete = true.
.....
04/11/04 13:03:14 INFO fetchmail.ChartFetch: Processed 5 messages of 11 in folder 'INBOX'
04/11/04 13:03:17 INFO fetchmail.ChartFetch: Finished fetching mail from server 'www.XXXXX.co.uk'
for user 'YYYYYY.co.uk' in folder 'INBOX'
My fetchmail config is as follows:
<fetchmail enabled="true">
<fetch name="ChartFetch">
<accounts>
<account user="YYYY.co.uk" password="?????"
recipient="user1@localhost" ignorercpt-header="true"/>
</accounts>
<recipientnotfound defer="false" reject="true"
leaveonserver="false" markseen="false"/>
<host>www.XXXXX.co.uk</host>
<interval>100000</interval>
<javaMailProviderName>pop3</javaMailProviderName>
<javaMailFolderName>INBOX</javaMailFolderName>
<fetchall>true</fetchall>
<recursesubfolders>false</recursesubfolders>
<fetched leaveonserver="false" markseen="false"/>
<undeliverable leaveonserver="false" markseen="false"/>
<userundefined reject="true" leaveonserver="false" markseen="false"/>
<blacklist reject="true" leaveonserver="false" markseen="false">
wibble@localhost, flobble@localhost
</blacklist>
<remoterecipient reject="true" leaveonserver="false" markseen="false"/>
</fetch>
</fetchmail>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org