Hi,

have a look at the RemoteDelivery Mailet. to see how you can do
exactly this with current stable version of james (2.3.2). But to be
hornest using this kind of stuff is more or less internal and it will
change with the next version of james.

Bye,
Norman


2010/4/12 Israel Tsadok <[email protected]>:
> Is there a simple way for me to store an mail message and deliver it at a
> later data?
>
> I'm making my first steps with james, and I'm trying to write a simple
> mailet that replies "are you sure you want to send this?" to the sender, and
> only forwards the email once the user replied either by email or by clicking
> a web link.
>
> I've looked at the AbstractRedirect mailet for pointers on how to do this,
> and it seems that it always starts with an existing Mail object and builds
> from there, changing fields as necessary. I managed to use this technique
> for sending the confirmation reply, as well as to forward the email
> immediately. However, I'm not sure what to do about the delayed forwarding.
>
> I tried serializing the MailImpl object, but that doesn't seem to save the
> actual message, only the metadata. Also, I'm not sure what I am supposed to
> do with a MailImpl object outside of a mailet, if the user chooses to go the
> web route.
>
> I realize this question is somewhat silly, as so much of james is dedicated
> to the storage and delivery of email, but I'm really hoping for something
> simple. Looking at JDBCMailRepository it seems that you have to go digging
> into the guts of the message and store it by parts, which seems too fragile
> for my code.
>
> Thanks,
> Israel
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to