james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Bagnara <apa...@bago.org>
Subject Re: [FetchMail] MimeMessage POP3 issue
Date Wed, 01 Aug 2007 22:39:57 GMT
Robert Burrell Donkin ha scritto:
> i'm also seeing the following exceptions fairly frequently. from
> looking at the code, MessageProcessor uses MimeMessage behind the
> scenes to perform the required POP3 access.

I see you started enjoying fetchmail.
I admit I've had some weird problem with fetchmail and some message is
not parseable at all (because of javamail) but this IOException is not
in my logs.
Again I see a weird newline inside the first log of the Message ID:
"<A432A9".

> is there any way of fixing this issue short of replacing MimeMessage
> with a POP3 protocol library?

This would probably mean rewriting most of fetchmail because fetchmail
is really bound to javamail.
If you like to work on fetchmail and you are confused by the
update/set/is/isBasic/compute pattern then I suggest you to look at
http://issues.apache.org/jira/browse/JAMES-509

Oh, and if you search JAMES-509 in archives you can find one of the
first "social" problems appeared on the list ;-)

For this specific case I suggest you to enable javamail debugging or
sniffing the TCP connection to the server to understand what's going on
with your pop server.

Stefano

> - robert
> 
> 01/08/07 08:59:38 INFO  fetchmail.mail.xmlmapt.org: Ignoring recipient
> header. Using configured recipient as new envelope recipient:
> rob@localhost. Message ID: <A432A9
> E4-614F-4D4D-A00B-8123B1E22ECF@leosimons.com>. Flags: Seen = false,
> Delete = false.
> 01/08/07 08:59:38 ERROR fetchmail.mail.xmlmapt.org: Exception
> processing message ID:
> <A432A9E4-614F-4D4D-A00B-8123B1E22ECF@leosimons.com>
> javax.mail.MessagingException: error getting size;
>   nested exception is:
>         java.io.IOException: Unexpected response: .
>         at com.sun.mail.pop3.POP3Message.getSize(POP3Message.java:118)
>         at javax.mail.internet.MimeMessage.<init>(MimeMessage.java:216)
>         at org.apache.james.fetchmail.MessageProcessor.createMessage(MessageProcessor.java:572)
>         at org.apache.james.fetchmail.MessageProcessor.process(MessageProcessor.java:384)
>         at org.apache.james.fetchmail.FolderProcessor.process(FolderProcessor.java:98)
>         at org.apache.james.fetchmail.StoreProcessor.process(StoreProcessor.java:87)
>         at org.apache.james.fetchmail.FetchMail.targetTriggered(FetchMail.java:559)
>         at org.apache.avalon.cornerstone.blocks.scheduler.DefaultTimeScheduler.doRunEntry(DefaultTimeScheduler.java:449)
>         at org.apache.avalon.cornerstone.blocks.scheduler.DefaultTimeScheduler$1.run(DefaultTimeScheduler.java:412)
>         at org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)
>         at org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)
> Caused by: java.io.IOException: Unexpected response: .
>         at com.sun.mail.pop3.Protocol.simpleCommand(Protocol.java:361)
>         at com.sun.mail.pop3.Protocol.list(Protocol.java:235)
>         at com.sun.mail.pop3.POP3Message.getSize(POP3Message.java:110)
>         ... 10 more



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message