[prev in list] [next in list] [prev in thread] [next in thread]
List: james-user
Subject: Re: Problem with mailet
From: jbi joe <joe () daggerpoint ! net>
Date: 2008-11-16 11:30:20
Message-ID: 20524377.post () talk ! nabble ! com
[Download RAW message or body]
The message I see in the mailet log is that the mail was forwarded
to the var/mail/error directory, then no more of me debug
statements come out, no exception, or any further debug appears
that I can find. SO it looks as if the last output I see from the mailet
is the line where IM performing the "mail.getMesssage()''
I will try to figure out how it increase the debug level,
perhaps Im not seeing the debug becuase its a different debug level.
Stefano Bagnara-2 wrote:
>
> jbi joe ha scritto:
>> IM creating my own custom mailet and gettin an error
>> trying to extract the mail out of the service method.
>> The getMessage appears fine, but then looking at
>> the result parts of the message cause exceptions.
>> Here is code snippet...
>>
>> public void service(Mail mail) {
>> MimeMessage message = mail.getMessage(); //works OK
>> Address addr = message.getFrom(); // BREAKS here
>> }
>
> What do you mean by "BREAKS" ?
> If you have an exception please paste it. If you think there is an
> exception but you don't see it try to increase the debug level to DEBUG
> (open your server.xml and put DEBUG in the log-level="INFO" statements).
>
> If BREAKS means something else please explain it.
>
> Keep in mind that JAMES "Mail" object uses a wrapper to encapsulate the
> MimeMessage so that the message itself could be loaded only when some
> property for the MimeMessage is really needed (lazy loading). Maybe your
> message is invalid and you get the error only when you try to load it.
> The question is "where does the input message come from?"
>
> Stefano
>
>> HELP greatly appreciated? SHould be a snap here as I have seen
>> other mailet code do this...
>> TIA
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Problem-with-mailet-tp20498216p20524377.html
Sent from the James - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic