Hi Norman,
Thanks for your answer but this is'nt exactly what i wanted.
The method mail.getMessage().getMessageID() gives me the value of the field
Message-ID in the "header" table (something like <[email protected]
>).
I was'nt clear but what I need is the MESSAGE_ID field (an Integer, same as
message.id field)  corresponding to the entring mail in my mailet.
Is it possible to have it before the mail has been stored in the db?if yes,
how to do it?

Thx,
Mat.
.

2011/2/9 Norman <[email protected]>

> Am 09.02.2011 16:28, schrieb math math:
>
>  Hi everyone,
>> I'm working with james3M2 and developping a custom mailet.
>> I would like to know how to get a message ID, from Message table....? how
>> and where is it calculated? is it possible to get it when the mail pass
>> through my mailet?
>> Thx,
>> Mat.
>>
>>
>
> Hi there,
>
> you can access the MessageID in your Mailet via.
>
> mail.getMessage().getMessageID();
>
> See:
>
> http://download.oracle.com/javaee/1.3/api/javax/mail/internet/MimeMessage.html#getMessageID%28%29
>
> Bye,
> Norman
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to