Hi,
Thanks.
I have found the solution already.
Inside James.java -> storeMail(...) method:
userInbox.store(mailImpl);
mailImpl is the mail in user inbox repo. At the same time if I go up in the
function call, somewhere the old mail in spool repo was processed before set
to null when it is GHOSTED. So I just need to remember the Mail id
(getName()) and pass to associating function after userInbox.store
(mailImpl).
Thanks.
Cheers,
Edward
On 12/28/05, Stefano Bagnara <[EMAIL PROTECTED]> wrote:
>
> Edward Tan wrote:
> > [...]
> > in the user mailbox seems not possible since the file pair in the user
> > mailbox has not been created when the mailet is processing the mail.
> >
> > Any idea how I can make the association of mail Id during mailet
> processing
> > with filename of the file pair in user mailbox?
>
>
> The name is automatically generated by the filepair. There's no way to
> know it in advance.
>
> You probably need to create your own implementation of file repository
> using your own naming/format.
>
> What's your goal? Why do you need to know the file name? Probably the
> right way is totally different.
>
> Stefano
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>