Hi,

I've looked in the mailing list archives but I couldn't find anything about
my concrete problem. So I'll try to explain myself my best and hope you
could help me.

I'm using james-2.2.0 and I've configured it to extract the attachments from
the incoming message, manipulate them and add them again in the email. The
processors' chain could be described as follows:

IN-MAIL --> HasAttachments --(yes)--> ExtractAttachments -->
WaitTillAttachmentsModificationsReady --> PackNewAttachments -->
DeleteAttachmentFilesInFileSystem --> Delivery

For some reason I have to delete the attachment references in the file
system and I tryed to do that just before the message goes to the transport
processor. When I do that this way the attachments are not correctly
delivered, seems that deleting the file in the file system before sending
the message, makes the attachments desappear too. In a way has a logic...

What I need to do then is to delete the files after sending the message, and
that's what I'm not sure how to do. I'm unable to place another mailet after
calling RemoteDelivery or LocalDelivery, since the message is lost after
calling them.

To track wich files do I have to delete I need the message ID and that's why
I need the info of the original message. I tryed to modify the *Delivery
mailets, but the mail object I get is different than the original one and
the messageID doesn't match.

Will appreciate any help.

Best regards,
Carlos.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to