Arpad Horvath wrote:
>
> Hi,
>
> I use James 2.2.0a15.
>
> I've got a nullpointer exception in fetchmail while trying to
> receive a
> mail with the headerlines
> Return-Path: <>
> Message-ID: <5624303.1076072031045.JavaMail.SYSTEM>
> Date: Fri, 6 Feb 2004 13:53:51 +0100 (CET)
>
> Configuration parameter
> <remoteReceivedHeaderIndex>-1</remoteReceivedHeaderIndex> does not
> change the error.
>
> The main problem is that the worker stops an no messages from the POP3
> Account ist transfered.
>
> The exception comes from
> org.apache.james.fetchmail.messageprocessor.java line 587 as
> a result of
> variable headers whitch is in this case NULL
> Actually I have solved the problem by adding an check like
> if (headers != null){
> if (headers.length > 0 && getRemoteReceivedHeaderIndex() > -1)
> ...
> }
> }
> Is there a better way to solve the problem?
Your way works fine and is how its done in the version of fetchmail I'm
currently in the process of committing.
-- Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]