Dynamically setting the Sent Items folder

  • Thread starter Thread starter Aaron Anderson
  • Start date Start date
A

Aaron Anderson

What I'm trying to accomplish is adding an additional field to the new
mail form where a user will enter a project number. That field should
be used to programatically do one of the following:

- set which IMAP folder the sent message should be stored (eg Shared
Folders/Projects/12345A)
- post a copy of the message to an IMAP folder (eg Shared
Folders/Projects/12345A)

Creating the custom form was easy. What I'm not sure how to save the
outgoing message to an IMAP folder. Some google searching of the
newsgroups led me to this:

Try setting Item.SaveSentMessageFolder to the desired MAPIFolder
target. The
folder needs to be in your mailbox or PST file. (thanks to Sue Mosher
([email protected])).

I would like to confirm that this would work for IMAP folders.

An alternative is to set a custom X message header (eg X-Project:
12345A) and have my MTA file it in a folder. That is not my prefered
method however.

thanks,

Aaron Anderson
 
You cannot use custom form code to save an outgoing message to an IMAP
folder. Your application would need to handle this with an Application-level
event handler to monitor the default Sent Items folder and copy the message
to the IMAP mailbox.

You may also be able handle it with a rule for outgoing messages.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top