View Javadoc

1   /*
2    * $Id: MailProperties.java 8205 2007-09-05 13:11:53Z alan.cassar $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.providers.email;
12  
13  /**
14   * Mail properties that are sent on the MuleMessage when receiving a Mail Message or
15   * which can be set on the endpoint or event to be added to outgoing mail
16   */
17  public interface MailProperties
18  {
19      /**
20       * Event properties
21       */
22      public static final String CONTENT_TYPE_PROPERTY = "contentType";
23      public static final String TO_ADDRESSES_PROPERTY = "toAddresses";
24      public static final String CC_ADDRESSES_PROPERTY = "ccAddresses";
25      public static final String BCC_ADDRESSES_PROPERTY = "bccAddresses";
26      public static final String FROM_ADDRESS_PROPERTY = "fromAddress";
27      public static final String REPLY_TO_ADDRESSES_PROPERTY = "replyToAddresses";
28      public static final String SUBJECT_PROPERTY = "subject";
29      public static final String CUSTOM_HEADERS_MAP_PROPERTY = "customHeaders";
30      public static final String SENT_DATE_PROPERTY = "sentDate";
31      
32      //these properties will be used to avoid conflict with the outbound SMTP properties
33      public static final String INBOUND_CONTENT_TYPE_PROPERTY = "inbound.contentType";
34      public static final String INBOUND_TO_ADDRESSES_PROPERTY = "inbound.toAddresses";
35      public static final String INBOUND_CC_ADDRESSES_PROPERTY = "inbound.ccAddresses";
36      public static final String INBOUND_BCC_ADDRESSES_PROPERTY = "inbound.bccAddresses";
37      public static final String INBOUND_FROM_ADDRESS_PROPERTY = "inbound.fromAddress";
38      public static final String INBOUND_REPLY_TO_ADDRESSES_PROPERTY = "inbound.replyToAddresses";
39      public static final String INBOUND_SUBJECT_PROPERTY = "inbound.subject";
40      public static final String INBOUND_CUSTOM_HEADERS_MAP_PROPERTY = "inbound.customHeaders";
41      public static final String INBOUND_SENT_DATE_PROPERTY = "inbound.sentDate";
42  }