Modified: websites/production/camel/content/book-in-one-page.html
==============================================================================
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Thu Apr  7 18:21:17 
2016
@@ -3699,11 +3699,11 @@ The tutorial has been designed in two pa
 While not actual tutorials you might find working through the source of the 
various <a shape="rect" href="examples.html">Examples</a> useful.</li></ul>
 
 <h2 id="BookInOnePage-TutorialonSpringRemotingwithJMS">Tutorial on Spring 
Remoting with JMS</h2><p>&#160;</p><div class="confluence-information-macro 
confluence-information-macro-information"><p class="title">Thanks</p><span 
class="aui-icon aui-icon-small aui-iconfont-info 
confluence-information-macro-icon"></span><div 
class="confluence-information-macro-body"><p>This tutorial was kindly donated 
to Apache Camel by Martin Gilday.</p></div></div><h2 
id="BookInOnePage-Preface">Preface</h2><p>This tutorial aims to guide the 
reader through the stages of creating a project which uses Camel to facilitate 
the routing of messages from a JMS queue to a <a shape="rect" 
class="external-link" href="http://www.springramework.org"; 
rel="nofollow">Spring</a> service. The route works in a synchronous fashion 
returning a response to the client.</p><p><style type="text/css">/*<![CDATA[*/
-div.rbtoc1459779563967 {padding: 0px;}
-div.rbtoc1459779563967 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1459779563967 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1460053133795 {padding: 0px;}
+div.rbtoc1460053133795 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1460053133795 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1459779563967">
+/*]]>*/</style></p><div class="toc-macro rbtoc1460053133795">
 <ul class="toc-indentation"><li><a shape="rect" 
href="#BookInOnePage-TutorialonSpringRemotingwithJMS">Tutorial on Spring 
Remoting with JMS</a></li><li><a shape="rect" 
href="#BookInOnePage-Preface">Preface</a></li><li><a shape="rect" 
href="#BookInOnePage-Prerequisites">Prerequisites</a></li><li><a shape="rect" 
href="#BookInOnePage-Distribution">Distribution</a></li><li><a shape="rect" 
href="#BookInOnePage-About">About</a></li><li><a shape="rect" 
href="#BookInOnePage-CreatetheCamelProject">Create the Camel Project</a>
 <ul class="toc-indentation"><li><a shape="rect" 
href="#BookInOnePage-UpdatethePOMwithDependencies">Update the POM with 
Dependencies</a></li></ul>
 </li><li><a shape="rect" href="#BookInOnePage-WritingtheServer">Writing the 
Server</a>
@@ -5818,11 +5818,11 @@ So we completed the last piece in the pi
 <p>This example has been removed from <strong>Camel 2.9</strong> onwards. 
Apache Axis 1.4 is a very old and unsupported framework. We encourage users to 
use <a shape="rect" href="cxf.html">CXF</a> instead of Axis.</p></div></div>
 
 <style type="text/css">/*<![CDATA[*/
-div.rbtoc1459779565324 {padding: 0px;}
-div.rbtoc1459779565324 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1459779565324 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1460053134389 {padding: 0px;}
+div.rbtoc1460053134389 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1460053134389 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style><div class="toc-macro rbtoc1459779565324">
+/*]]>*/</style><div class="toc-macro rbtoc1460053134389">
 <ul class="toc-indentation"><li><a shape="rect" 
href="#BookInOnePage-TutorialusingAxis1.4withApacheCamel">Tutorial using Axis 
1.4 with Apache Camel</a>
 <ul class="toc-indentation"><li><a shape="rect" 
href="#BookInOnePage-Prerequisites">Prerequisites</a></li><li><a shape="rect" 
href="#BookInOnePage-Distribution">Distribution</a></li><li><a shape="rect" 
href="#BookInOnePage-Introduction">Introduction</a></li><li><a shape="rect" 
href="#BookInOnePage-SettinguptheprojecttorunAxis">Setting up the project to 
run Axis</a>
 <ul class="toc-indentation"><li><a shape="rect" 
href="#BookInOnePage-Maven2">Maven 2</a></li><li><a shape="rect" 
href="#BookInOnePage-wsdl">wsdl</a></li><li><a shape="rect" 
href="#BookInOnePage-ConfiguringAxis">Configuring Axis</a></li><li><a 
shape="rect" href="#BookInOnePage-RunningtheExample">Running the 
Example</a></li></ul>
@@ -17251,11 +17251,11 @@ template.send(&quot;direct:alias-verify&
 ]]></script>
 </div></div><p></p><h3 id="BookInOnePage-SeeAlso.28">See Also</h3>
 <ul><li><a shape="rect" href="configuring-camel.html">Configuring 
Camel</a></li><li><a shape="rect" 
href="component.html">Component</a></li><li><a shape="rect" 
href="endpoint.html">Endpoint</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li></ul><ul><li><a 
shape="rect" href="crypto.html">Crypto</a> Crypto is also available as a <a 
shape="rect" href="data-format.html">Data Format</a></li></ul> <h2 
id="BookInOnePage-CXFComponent">CXF Component</h2><div 
class="confluence-information-macro confluence-information-macro-note"><span 
class="aui-icon aui-icon-small aui-iconfont-warning 
confluence-information-macro-icon"></span><div 
class="confluence-information-macro-body"><p>When using CXF as a consumer, the 
<a shape="rect" href="cxf-bean-component.html">CXF Bean Component</a> allows 
you to factor out how message payloads are received from their processing as a 
RESTful or SOAP web service. This has the potential of using a multitude of 
transports to consume web 
 services. The bean component's configuration is also simpler and provides the 
fastest method to implement web services using Camel and 
CXF.</p></div></div><div class="confluence-information-macro 
confluence-information-macro-tip"><span class="aui-icon aui-icon-small 
aui-iconfont-approve confluence-information-macro-icon"></span><div 
class="confluence-information-macro-body"><p>When using CXF in streaming modes 
(see DataFormat option), then also read about <a shape="rect" 
href="stream-caching.html">Stream caching</a>.</p></div></div><p>The 
<strong>cxf:</strong> component provides integration with <a shape="rect" 
href="http://cxf.apache.org";>Apache CXF</a> for connecting to JAX-WS services 
hosted in CXF.</p><p><style type="text/css">/*<![CDATA[*/
-div.rbtoc1459779616900 {padding: 0px;}
-div.rbtoc1459779616900 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1459779616900 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1460053189049 {padding: 0px;}
+div.rbtoc1460053189049 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1460053189049 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1459779616900">
+/*]]>*/</style></p><div class="toc-macro rbtoc1460053189049">
 <ul class="toc-indentation"><li><a shape="rect" 
href="#BookInOnePage-CXFComponent">CXF Component</a>
 <ul class="toc-indentation"><li><a shape="rect" 
href="#BookInOnePage-URIformat">URI format</a></li><li><a shape="rect" 
href="#BookInOnePage-Options">Options</a>
 <ul class="toc-indentation"><li><a shape="rect" 
href="#BookInOnePage-Thedescriptionsofthedataformats">The descriptions of the 
dataformats</a>
@@ -22461,7 +22461,7 @@ imaps://[username@]host[:port][?options]
 </div></div><p>For example:</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[smtp://mycompany.mailserver:30?password=tiger&amp;username=scott
 ]]></script>
-</div></div><h4 id="BookInOnePage-DefaultPortsDefaultports"><span 
class="confluence-anchor-link" id="BookInOnePage-DefaultPorts"></span>Default 
ports</h4><p>Default port numbers are supported. If the port number is omitted, 
Camel determines the port number to use based on the protocol.</p><div 
class="confluenceTableSmall"><div class="table-wrap"><table 
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Protocol</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Default Port Number</p></th></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>SMTP</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>25</code></p></td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>SMTPS</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>465</code></p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>POP3</code></p></td><td colspan="1" 
rowspan="1" class="confluen
 ceTd"><p><code>110</code></p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>POP3S</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>995</code></p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>IMAP</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>143</code></p></td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>IMAPS</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>993</code></p></td></tr></tbody></table></div></div><h3
 id="BookInOnePage-Options.53">Options</h3><div 
class="confluenceTableSmall"><div class="table-wrap"><table 
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Property</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Default</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>host</code></p
 ></td><td colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td 
 >colspan="1" rowspan="1" class="confluenceTd"><p>The host name or IP address 
 >to connect to.</p></td></tr><tr><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p><code>port</code></p></td><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p>See <a shape="rect" 
 >href="#BookInOnePage-DefaultPorts">#DefaultPorts</a></p></td><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p>The TCP port number to connect 
 >on.</p></td></tr><tr><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p><code>username</code></p></td><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p>&#160;</p></td><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p>The user name on the email 
 >server.</p></td></tr><tr><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p><code>password</code></p></td><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p>The password on the email server
 .</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ignoreUriScheme</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>If <code>false</code>, Camel uses the 
scheme to determine the transport protocol (POP, IMAP, SMTP 
etc.)</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>contentType</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>text/plain</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>The mail message content type. 
Use <code>text/html</code> for HTML mails.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>folderName</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>INBOX</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>The folder to 
poll.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>destination</co
 de></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>username@host</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>@deprecated</strong> Use the 
<code>to</code> option instead. The <code>TO</code> recipients (receivers of 
the email).</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>to</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>username@host</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>The TO recipients (the receivers of the 
mail). Separate multiple email addresses with a comma. Email addresses 
containing special characters such as "&amp;" will need to be handled 
differently - see <a shape="rect" 
href="how-do-i-configure-password-options-on-camel-endpoints-without-the-value-being-encoded.html">How
 do I configure password options on Camel endpoints without the value being 
encoded</a>.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>replyTo
 </code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>alias@host</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>As of <strong>Camel 2.8.4, 2.9.1+</strong>, 
the Reply-To recipients (the receivers of the response mail). Separate multiple 
email addresses with a comma.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>CC</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p>The CC recipients (the receivers of the mail). Separate 
multiple email addresses with a comma.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>BCC</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>The BCC recipients (the receivers of the 
mail). Separate multiple email addresses with a comma.</p></td></tr><tr><td 
colspan="1" rowspan="1" class="c
 onfluenceTd"><p><code>from</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>camel@localhost</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>The FROM email 
address.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>subject</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>&#160;</p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p>As of <strong>Camel 2.3</strong>, the Subject of the 
message being sent. Note: Setting the subject in the header takes precedence 
over this option.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>peek</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>true</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>Camel 2.11.3/2.12.2:</strong> Consumer only. 
Will mark the <code>javax.mail.Message</code> as peeked before processing the 
mail message. This applies to <code>IMAPMessage</code> messages types
  only. By using peek the mail will not be eager marked as <code>SEEN</code> on 
the mail server, which allows us to rollback the mail message if there is an 
error processing in Camel.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>delete</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p>Deletes the messages after they have been processed. 
This is done by setting the <code>DELETED</code> flag on the mail message. If 
<code>false</code>, the <code>SEEN</code> flag is set instead. As of 
<strong>Camel 2.10</strong> you can override this configuration option by 
setting a header with the key <code>delete</code> to determine if the mail 
should be deleted or not.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>unseen</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>true</code></p></td><td colspan="1" rowspan="1" 
class="c
 onfluenceTd"><p>It is possible to configure a consumer endpoint so that it 
processes only unseen messages (that is, new messages) or all messages. Note 
that Camel always skips deleted messages. The default option of 
<code>true</code> will filter to only unseen messages. POP3 does not support 
the <code>SEEN</code> flag, so this option is not supported in POP3; use IMAP 
instead. <strong>Important:</strong> This option is <strong>not</strong> in use 
if you also use <code>searchTerm</code> options. Instead if you want to disable 
unseen when using <code>searchTerm</code>'s then add 
<code>searchTerm.unseen=false</code> as a term.</p></td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>copyTo</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10:</strong> 
Consumer only. After processing a mail message, it can be copied to a mail 
folder with the given name. You ca
 n override this configuration value, with a header with the key 
<code>copyTo</code>, allowing you to copy messages to folder names configured 
at runtime.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>fetchSize</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>-1</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Sets the maximum number of messages to 
consume during a poll. This can be used to avoid overloading a mail server, if 
a mailbox folder contains a lot of messages. Default value of <code>-1</code> 
means no fetch size and all messages will be consumed. Setting the value to 0 
is a special corner case, where Camel will not consume any messages at 
all.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>alternativeBodyHeader</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>CamelMailAlternativeBody</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Spe
 cifies the key to an IN message header that contains an alternative email 
body. For example, if you send emails in <code>text/html</code> format and want 
to provide an alternative mail body for non-HTML email clients, set the 
alternative mail body with this key as a header.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>debugMode</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Enable debug mode on the underlying mail 
framework. The SUN Mail framework logs the debug messages to 
<code>System.out</code> by default.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>connectionTimeout</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>30000</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>The connection timeout in 
milliseconds. Default is 30 seconds.</p></td></tr><tr><td colspan="1" 
rowspan="1" class=
 "confluenceTd"><p><code>consumer.initialDelay</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>1000</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Milliseconds before the polling 
starts.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.delay</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>60000</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Camel will poll the mailbox only once a 
minute by default to avoid overloading the mail server.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.useFixedDelay</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Set to <code>true</code> to use 
a fixed delay between polls, otherwise fixed rate is used. See <a shape="rect" 
class="external-link" href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/c
 oncurrent/ScheduledExecutorService.html" 
rel="nofollow">ScheduledExecutorService</a> in JDK for 
details.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>disconnect</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.8.3/2.9:</strong> Whether 
the consumer should disconnect after polling. If enabled this forces Camel to 
connect on each poll.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>closeFolder</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.10.4:</strong> Whether the 
consumer should close the folder after polling. Setting this option to 
<code>false</code> and having <code>disconnect=false</code> as well, then the 
consumer keep the folder open between polls.</p></td></tr><tr><td colspan="1" 
rowspan="1" clas
 s="confluenceTd"><p><code>mail.XXX</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p>Set any <a shape="rect" class="external-link" 
href="http://java.sun.com/products/javamail/javadocs/index.html"; 
rel="nofollow">additional java mail properties</a>. For instance if you want to 
set a special property when using POP3 you can now provide the option directly 
in the URI such as: <code>mail.pop3.forgettopheaders=true</code>. You can set 
multiple such options, for example: 
<code>mail.pop3.forgettopheaders=true&amp;mail.mime.encodefilename=true</code>.</p></td></tr><tr><td
 colspan="1" rowspan="1" 
class="confluenceTd"><p><code>mapMailMessage</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.8:</strong> Specifies 
whether Camel should map the received mail message to Camel body/headers. If set
  to true, the body of the mail message is mapped to the body of the Camel IN 
message and the mail headers are mapped to IN headers. If this option is set to 
false then the IN message contains a raw <code>javax.mail.Message</code>. You 
can retrieve this raw message by calling 
<code>exchange.getIn().getBody(javax.mail.Message.class)</code>.</p></td></tr><tr><td
 colspan="1" rowspan="1" 
class="confluenceTd"><p><code>maxMessagesPerPoll</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>0</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Specifies the maximum number of messages to 
gather per poll. By default, no maximum is set. Can be used to set a limit of 
e.g. 1000 to avoid downloading thousands of files when the server starts up. 
Set a value of 0 or negative to disable this option.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>javaMailSender</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null<
 /code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies a 
pluggable <span style="color: 
rgb(34,34,34);">org.apache.camel.component.</span><span style="color: 
rgb(34,34,34);">mail.JavaMailSender</span> instance in order to use a custom 
email implementation.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ignoreUnsupportedCharset</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Option to let Camel ignore 
unsupported charset in the local JVM when sending mails. If the charset is 
unsupported then <code>charset=XXX</code> (where <code>XXX</code> represents 
the unsupported charset) is removed from the <code>content-type</code> and it 
relies on the platform default instead.</p></td></tr><tr><td colspan="1" 
rowspan="1" 
class="confluenceTd"><p><code>sslContextParameters</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</c
 ode></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 
2.10:</strong> Reference to a 
<code>org.apache.camel.util.jsse.SSLContextParameters</code> in the <a 
shape="rect" class="external-link" 
href="http://camel.apache.org/registry.html";>Registry</a>.&#160; This reference 
overrides any configured SSLContextParameters at the component level.&#160; See 
<a shape="rect" class="external-link" 
href="http://camel.apache.org/http4.html#HTTP4-UsingtheJSSEConfigurationUtility";>Using
 the JSSE Configuration Utility</a>.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>searchTerm</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11:</strong> 
Refers to a <code>javax.mail.search.SearchTerm</code> which allows to filter 
mails based on search criteria such as subject, body, from, sent after a 
certain date etc. See further below for examples.</
 p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>searchTerm.xxx</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.11:</strong> To configure 
search terms directly from the endpoint uri, which supports a limited number of 
terms defined by the 
<code>org.apache.camel.component.mail.SimpleSearchTerm</code> class. See 
further below for examples.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p class="p1"><code>sortTerm</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><code>null</code></td><td 
colspan="1" rowspan="1" class="confluenceTd"><strong>Camel 2.15: </strong>To 
configure the sortTerms that <span>IMAP</span> supports to sort the searched 
mails<strong><strong>. </strong></strong>You may need to define an array of<p 
class="p1"><code>com.sun.mail.imap.sortTerm</code> i<span>n the registry first 
and #name to reference 
 it in this URI option.</span></p><p class="p1"><strong>Camel 2.16:</strong> 
You can also specify a comma separated list of sort terms on the URI that Camel 
will convert internally. For example, to sort descending by date you would use 
<code>sortTerm=reverse,date</code>. You can use any of the sort terms defined 
in <a shape="rect" class="external-link" 
href="https://javamail.java.net/nonav/docs/api/com/sun/mail/imap/SortTerm.html"; 
rel="nofollow">com.sun.mail.imap.SortTerm</a>.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p 
class="p1"><code>postProcessAction</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><code>null</code></td><td colspan="1" rowspan="1" 
class="confluenceTd"><strong>Camel 2.15:</strong> Refers to a<code 
style="line-height: 1.4285715;">org.apache.camel.component.mail.</code><span 
style="line-height: 1.4285715;"><code>MailBoxPostProcessAction</code> for doing 
post processing tasks on the mailbox once the normal processing ended.</sp
 an></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><code>skipFailedMessage</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><code>false</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><strong>Camel 2.15.1:</strong> If the mail 
consumer cannot retrieve a given mail message, then this option allows to skip 
the message and move on to retrieve the next mail message. The default behavior 
would be the consumer throws an exception and no mails from the batch would be 
able to be routed by Camel.</td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><code>handleFailedMessage</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><code>false</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><strong>Camel 2.15.1:</strong> If the mail 
consumer cannot retrieve a given mail message, then this option allows to 
handle the caused exception by the consumer's error handler. By enable the 
bridge error handler on the consumer, then the Camel r
 outing error handler can handle the exception instead. <span>The default 
behavior would be the consumer throws an exception and no mails from the batch 
would be able to be routed by Camel.</span></td></tr><tr><td colspan="1" 
rowspan="1" 
class="confluenceTd"><pre><span>dummyTrustManager</span></pre></td><td 
colspan="1" rowspan="1" class="confluenceTd"><code>false</code></td><td 
colspan="1" rowspan="1" class="confluenceTd"><strong>Camel 2.17:</strong>To use 
a dummy security setting for trusting all certificates. Should only be used for 
development mode, and not production.</td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><code>idempotentRepository</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><code>null</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><strong>Camel 2.17:</strong> A pluggable 
repository org.apache.camel.spi.IdempotentRepository which allows to cluster 
consuming from the same mailbox, and let the repository coordinate whether a 
mail
  message is valid for the consumer to process.</td></tr><tr><td colspan="1" 
rowspan="1" 
class="confluenceTd"><code>idempotentRepositoryRemoveOnCommit</code></td><td 
colspan="1" rowspan="1" class="confluenceTd"><code>true</code></td><td 
colspan="1" rowspan="1" class="confluenceTd"><strong>Camel 2.17:</strong> <span 
style="line-height: 1.42857;">When using idempotent repository, then when the 
mail message has been successfully processed and is committed, should the 
message id be removed from the idempotent repository (default) or be kept in 
the repository. By default its assumed the message id is unique and has no 
value to be kept in the repository, because the mail message will be marked as 
seen/moved or deleted to prevent it from being consumed again. And therefore 
having the message id stored in the idempotent repository has little value. 
However this option allows to store the message id, for whatever reason you may 
have.</span></td></tr><tr><td colspan="1" rowspan="1" class="conf
 luenceTd"><code>mailUidGenerator</code></td><td colspan="1" rowspan="1" 
class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" 
class="confluenceTd"><strong>Camel 2.17:</strong> A pluggable MailUidGenerator 
that allows to use custom logic to generate UUID of the mail 
message.</td></tr></tbody></table></div></div><h3 
id="BookInOnePage-SSLsupport">SSL support</h3><p>The underlying mail framework 
is responsible for providing SSL support. &#160;You may either configure 
SSL/TLS support by completely specifying the necessary Java Mail API 
configuration options, or you may provide a configured SSLContextParameters 
through the component or endpoint configuration.</p><h4 
id="BookInOnePage-UsingtheJSSEConfigurationUtility.4">Using the JSSE 
Configuration Utility</h4><p>As of <strong>Camel 2.10</strong>, the mail 
component supports SSL/TLS configuration through the <a shape="rect" 
href="camel-configuration-utilities.html">Camel JSSE Configuration 
Utility</a>.&#160; This utility greatly decr
 eases the amount of component specific code you need to write and is 
configurable at the endpoint and component levels.&#160; The following examples 
demonstrate how to use the utility with the mail component.</p><h5 
id="BookInOnePage-Programmaticconfigurationoftheendpoint.1">Programmatic 
configuration of the endpoint</h5><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><h4 id="BookInOnePage-DefaultPortsDefaultports"><span 
class="confluence-anchor-link" id="BookInOnePage-DefaultPorts"></span>Default 
ports</h4><p>Default port numbers are supported. If the port number is omitted, 
Camel determines the port number to use based on the protocol.</p><div 
class="confluenceTableSmall"><div class="table-wrap"><table 
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Protocol</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Default Port Number</p></th></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>SMTP</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>25</code></p></td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>SMTPS</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>465</code></p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>POP3</code></p></td><td colspan="1" 
rowspan="1" class="confluen
 ceTd"><p><code>110</code></p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>POP3S</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>995</code></p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>IMAP</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>143</code></p></td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>IMAPS</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>993</code></p></td></tr></tbody></table></div></div><h3
 id="BookInOnePage-Options.53">Options</h3><div 
class="confluenceTableSmall"><div class="table-wrap"><table 
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Property</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Default</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>host</code></p
 ></td><td colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td 
 >colspan="1" rowspan="1" class="confluenceTd"><p>The host name or IP address 
 >to connect to.</p></td></tr><tr><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p><code>port</code></p></td><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p>See <a shape="rect" 
 >href="#BookInOnePage-DefaultPorts">#DefaultPorts</a></p></td><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p>The TCP port number to connect 
 >on.</p></td></tr><tr><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p><code>username</code></p></td><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p>&#160;</p></td><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p>The user name on the email 
 >server.</p></td></tr><tr><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p><code>password</code></p></td><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p>The password on the email server
 .</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ignoreUriScheme</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>If <code>false</code>, Camel uses the 
scheme to determine the transport protocol (POP, IMAP, SMTP 
etc.)</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>contentType</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>text/plain</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>The mail message content type. 
Use <code>text/html</code> for HTML mails.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>folderName</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>INBOX</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>The folder to 
poll.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>destination</co
 de></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>username@host</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>@deprecated</strong> Use the 
<code>to</code> option instead. The <code>TO</code> recipients (receivers of 
the email).</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>to</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>username@host</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>The TO recipients (the receivers of the 
mail). Separate multiple email addresses with a comma. Email addresses 
containing special characters such as "&amp;" will need to be handled 
differently - see <a shape="rect" 
href="how-do-i-configure-password-options-on-camel-endpoints-without-the-value-being-encoded.html">How
 do I configure password options on Camel endpoints without the value being 
encoded</a>.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>replyTo
 </code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>alias@host</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>As of <strong>Camel 2.8.4, 2.9.1+</strong>, 
the Reply-To recipients (the receivers of the response mail). Separate multiple 
email addresses with a comma.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>cc</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p>The CC recipients (the receivers of the mail). Separate 
multiple email addresses with a comma.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>bcc</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>The BCC recipients (the receivers of the 
mail). Separate multiple email addresses with a comma.</p></td></tr><tr><td 
colspan="1" rowspan="1" class="c
 onfluenceTd"><p><code>from</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>camel@localhost</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>The FROM email 
address.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>subject</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>&#160;</p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p>As of <strong>Camel 2.3</strong>, the Subject of the 
message being sent. Note: Setting the subject in the header takes precedence 
over this option.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>peek</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>true</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>Camel 2.11.3/2.12.2:</strong> Consumer only. 
Will mark the <code>javax.mail.Message</code> as peeked before processing the 
mail message. This applies to <code>IMAPMessage</code> messages types
  only. By using peek the mail will not be eager marked as <code>SEEN</code> on 
the mail server, which allows us to rollback the mail message if there is an 
error processing in Camel.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>delete</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p>Deletes the messages after they have been processed. 
This is done by setting the <code>DELETED</code> flag on the mail message. If 
<code>false</code>, the <code>SEEN</code> flag is set instead. As of 
<strong>Camel 2.10</strong> you can override this configuration option by 
setting a header with the key <code>delete</code> to determine if the mail 
should be deleted or not.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>unseen</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>true</code></p></td><td colspan="1" rowspan="1" 
class="c
 onfluenceTd"><p>It is possible to configure a consumer endpoint so that it 
processes only unseen messages (that is, new messages) or all messages. Note 
that Camel always skips deleted messages. The default option of 
<code>true</code> will filter to only unseen messages. POP3 does not support 
the <code>SEEN</code> flag, so this option is not supported in POP3; use IMAP 
instead. <strong>Important:</strong> This option is <strong>not</strong> in use 
if you also use <code>searchTerm</code> options. Instead if you want to disable 
unseen when using <code>searchTerm</code>'s then add 
<code>searchTerm.unseen=false</code> as a term.</p></td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>copyTo</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10:</strong> 
Consumer only. After processing a mail message, it can be copied to a mail 
folder with the given name. You ca
 n override this configuration value, with a header with the key 
<code>copyTo</code>, allowing you to copy messages to folder names configured 
at runtime.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>fetchSize</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>-1</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Sets the maximum number of messages to 
consume during a poll. This can be used to avoid overloading a mail server, if 
a mailbox folder contains a lot of messages. Default value of <code>-1</code> 
means no fetch size and all messages will be consumed. Setting the value to 0 
is a special corner case, where Camel will not consume any messages at 
all.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>alternativeBodyHeader</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>CamelMailAlternativeBody</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Spe
 cifies the key to an IN message header that contains an alternative email 
body. For example, if you send emails in <code>text/html</code> format and want 
to provide an alternative mail body for non-HTML email clients, set the 
alternative mail body with this key as a header.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>debugMode</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Enable debug mode on the underlying mail 
framework. The SUN Mail framework logs the debug messages to 
<code>System.out</code> by default.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>connectionTimeout</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>30000</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>The connection timeout in 
milliseconds. Default is 30 seconds.</p></td></tr><tr><td colspan="1" 
rowspan="1" class=
 "confluenceTd"><p><code>consumer.initialDelay</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>1000</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Milliseconds before the polling 
starts.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.delay</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>60000</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Camel will poll the mailbox only once a 
minute by default to avoid overloading the mail server.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.useFixedDelay</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Set to <code>true</code> to use 
a fixed delay between polls, otherwise fixed rate is used. See <a shape="rect" 
class="external-link" href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/c
 oncurrent/ScheduledExecutorService.html" 
rel="nofollow">ScheduledExecutorService</a> in JDK for 
details.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>disconnect</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.8.3/2.9:</strong> Whether 
the consumer should disconnect after polling. If enabled this forces Camel to 
connect on each poll.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>closeFolder</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.10.4:</strong> Whether the 
consumer should close the folder after polling. Setting this option to 
<code>false</code> and having <code>disconnect=false</code> as well, then the 
consumer keep the folder open between polls.</p></td></tr><tr><td colspan="1" 
rowspan="1" clas
 s="confluenceTd"><p><code>mail.XXX</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p>Set any <a shape="rect" class="external-link" 
href="http://java.sun.com/products/javamail/javadocs/index.html"; 
rel="nofollow">additional java mail properties</a>. For instance if you want to 
set a special property when using POP3 you can now provide the option directly 
in the URI such as: <code>mail.pop3.forgettopheaders=true</code>. You can set 
multiple such options, for example: 
<code>mail.pop3.forgettopheaders=true&amp;mail.mime.encodefilename=true</code>.</p></td></tr><tr><td
 colspan="1" rowspan="1" 
class="confluenceTd"><p><code>mapMailMessage</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.8:</strong> Specifies 
whether Camel should map the received mail message to Camel body/headers. If set
  to true, the body of the mail message is mapped to the body of the Camel IN 
message and the mail headers are mapped to IN headers. If this option is set to 
false then the IN message contains a raw <code>javax.mail.Message</code>. You 
can retrieve this raw message by calling 
<code>exchange.getIn().getBody(javax.mail.Message.class)</code>.</p></td></tr><tr><td
 colspan="1" rowspan="1" 
class="confluenceTd"><p><code>maxMessagesPerPoll</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>0</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Specifies the maximum number of messages to 
gather per poll. By default, no maximum is set. Can be used to set a limit of 
e.g. 1000 to avoid downloading thousands of files when the server starts up. 
Set a value of 0 or negative to disable this option.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>javaMailSender</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null<
 /code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies a 
pluggable <span style="color: 
rgb(34,34,34);">org.apache.camel.component.</span><span style="color: 
rgb(34,34,34);">mail.JavaMailSender</span> instance in order to use a custom 
email implementation.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ignoreUnsupportedCharset</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Option to let Camel ignore 
unsupported charset in the local JVM when sending mails. If the charset is 
unsupported then <code>charset=XXX</code> (where <code>XXX</code> represents 
the unsupported charset) is removed from the <code>content-type</code> and it 
relies on the platform default instead.</p></td></tr><tr><td colspan="1" 
rowspan="1" 
class="confluenceTd"><p><code>sslContextParameters</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</c
 ode></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 
2.10:</strong> Reference to a 
<code>org.apache.camel.util.jsse.SSLContextParameters</code> in the <a 
shape="rect" class="external-link" 
href="http://camel.apache.org/registry.html";>Registry</a>.&#160; This reference 
overrides any configured SSLContextParameters at the component level.&#160; See 
<a shape="rect" class="external-link" 
href="http://camel.apache.org/http4.html#HTTP4-UsingtheJSSEConfigurationUtility";>Using
 the JSSE Configuration Utility</a>.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>searchTerm</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11:</strong> 
Refers to a <code>javax.mail.search.SearchTerm</code> which allows to filter 
mails based on search criteria such as subject, body, from, sent after a 
certain date etc. See further below for examples.</
 p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>searchTerm.xxx</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.11:</strong> To configure 
search terms directly from the endpoint uri, which supports a limited number of 
terms defined by the 
<code>org.apache.camel.component.mail.SimpleSearchTerm</code> class. See 
further below for examples.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p class="p1"><code>sortTerm</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><code>null</code></td><td 
colspan="1" rowspan="1" class="confluenceTd"><strong>Camel 2.15: </strong>To 
configure the sortTerms that <span>IMAP</span> supports to sort the searched 
mails<strong><strong>. </strong></strong>You may need to define an array of<p 
class="p1"><code>com.sun.mail.imap.sortTerm</code> i<span>n the registry first 
and #name to reference 
 it in this URI option.</span></p><p class="p1"><strong>Camel 2.16:</strong> 
You can also specify a comma separated list of sort terms on the URI that Camel 
will convert internally. For example, to sort descending by date you would use 
<code>sortTerm=reverse,date</code>. You can use any of the sort terms defined 
in <a shape="rect" class="external-link" 
href="https://javamail.java.net/nonav/docs/api/com/sun/mail/imap/SortTerm.html"; 
rel="nofollow">com.sun.mail.imap.SortTerm</a>.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p 
class="p1"><code>postProcessAction</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><code>null</code></td><td colspan="1" rowspan="1" 
class="confluenceTd"><strong>Camel 2.15:</strong> Refers to a<code 
style="line-height: 1.4285715;">org.apache.camel.component.mail.</code><span 
style="line-height: 1.4285715;"><code>MailBoxPostProcessAction</code> for doing 
post processing tasks on the mailbox once the normal processing ended.</sp
 an></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><code>skipFailedMessage</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><code>false</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><strong>Camel 2.15.1:</strong> If the mail 
consumer cannot retrieve a given mail message, then this option allows to skip 
the message and move on to retrieve the next mail message. The default behavior 
would be the consumer throws an exception and no mails from the batch would be 
able to be routed by Camel.</td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><code>handleFailedMessage</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><code>false</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><strong>Camel 2.15.1:</strong> If the mail 
consumer cannot retrieve a given mail message, then this option allows to 
handle the caused exception by the consumer's error handler. By enable the 
bridge error handler on the consumer, then the Camel r
 outing error handler can handle the exception instead. <span>The default 
behavior would be the consumer throws an exception and no mails from the batch 
would be able to be routed by Camel.</span></td></tr><tr><td colspan="1" 
rowspan="1" 
class="confluenceTd"><pre><span>dummyTrustManager</span></pre></td><td 
colspan="1" rowspan="1" class="confluenceTd"><code>false</code></td><td 
colspan="1" rowspan="1" class="confluenceTd"><strong>Camel 2.17:</strong>To use 
a dummy security setting for trusting all certificates. Should only be used for 
development mode, and not production.</td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><code>idempotentRepository</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><code>null</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><strong>Camel 2.17:</strong> A pluggable 
repository org.apache.camel.spi.IdempotentRepository which allows to cluster 
consuming from the same mailbox, and let the repository coordinate whether a 
mail
  message is valid for the consumer to process.</td></tr><tr><td colspan="1" 
rowspan="1" 
class="confluenceTd"><code>idempotentRepositoryRemoveOnCommit</code></td><td 
colspan="1" rowspan="1" class="confluenceTd"><code>true</code></td><td 
colspan="1" rowspan="1" class="confluenceTd"><strong>Camel 2.17:</strong> <span 
style="line-height: 1.42857;">When using idempotent repository, then when the 
mail message has been successfully processed and is committed, should the 
message id be removed from the idempotent repository (default) or be kept in 
the repository. By default its assumed the message id is unique and has no 
value to be kept in the repository, because the mail message will be marked as 
seen/moved or deleted to prevent it from being consumed again. And therefore 
having the message id stored in the idempotent repository has little value. 
However this option allows to store the message id, for whatever reason you may 
have.</span></td></tr><tr><td colspan="1" rowspan="1" class="conf
 luenceTd"><code>mailUidGenerator</code></td><td colspan="1" rowspan="1" 
class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" 
class="confluenceTd"><strong>Camel 2.17:</strong> A pluggable MailUidGenerator 
that allows to use custom logic to generate UUID of the mail 
message.</td></tr></tbody></table></div></div><h3 
id="BookInOnePage-SSLsupport">SSL support</h3><p>The underlying mail framework 
is responsible for providing SSL support. &#160;You may either configure 
SSL/TLS support by completely specifying the necessary Java Mail API 
configuration options, or you may provide a configured SSLContextParameters 
through the component or endpoint configuration.</p><h4 
id="BookInOnePage-UsingtheJSSEConfigurationUtility.4">Using the JSSE 
Configuration Utility</h4><p>As of <strong>Camel 2.10</strong>, the mail 
component supports SSL/TLS configuration through the <a shape="rect" 
href="camel-configuration-utilities.html">Camel JSSE Configuration 
Utility</a>.&#160; This utility greatly decr
 eases the amount of component specific code you need to write and is 
configurable at the endpoint and component levels.&#160; The following examples 
demonstrate how to use the utility with the mail component.</p><h5 
id="BookInOnePage-Programmaticconfigurationoftheendpoint.1">Programmatic 
configuration of the endpoint</h5><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[KeyStoreParameters ksp = new 
KeyStoreParameters();
 ksp.setResource(&quot;/users/home/server/truststore.jks&quot;);
 ksp.setPassword(&quot;keystorePassword&quot;);
@@ -22501,7 +22501,7 @@ map.put(&quot;org.apache.camel.test&quot
 String body = &quot;Hello Claus.\nYes it does.\n\nRegards James.&quot;;
 template.sendBodyAndHeaders(&quot;smtp://davscl...@apache.org&quot;, body, 
map);
 ]]></script>
-</div></div><strong>Since Camel 2.11</strong> When using the MailProducer the 
send the mail to server, you should be able to get the message id of the <a 
shape="rect" class="external-link" 
href="http://java.sun.com/javaee/5/docs/api/javax/mail/internet/MimeMessage.html";
 rel="nofollow">MimeMessage</a> with the key <code>CamelMailMessageId</code> 
from the Camel message header.<h3 
id="BookInOnePage-Headerstakeprecedenceoverpre-configuredrecipients">Headers 
take precedence over pre-configured recipients</h3><p>The recipients specified 
in the message headers always take precedence over recipients pre-configured in 
the endpoint URI. The idea is that if you provide any recipients in the message 
headers, that is what you get. The recipients pre-configured in the endpoint 
URI are treated as a fallback.</p><p>In the sample code below, the email 
message is sent to <code>davscl...@apache.org</code>, because it takes 
precedence over the pre-configured recipient, <code>i...@mycompany.com</code>. 
 Any <code>CC</code> and <code>BCC</code> settings in the endpoint URI are also 
ignored and those recipients will not receive any mail. The choice between 
headers and pre-configured settings is all or nothing: the mail component 
<em>either</em> takes the recipients exclusively from the headers or 
exclusively from the pre-configured settings. It is not possible to mix and 
match headers and pre-configured settings.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><strong>Since Camel 2.11</strong> When using the MailProducer the 
send the mail to server, you should be able to get the message id of the <a 
shape="rect" class="external-link" 
href="http://java.sun.com/javaee/5/docs/api/javax/mail/internet/MimeMessage.html";
 rel="nofollow">MimeMessage</a> with the key <code>CamelMailMessageId</code> 
from the Camel message header.<h3 
id="BookInOnePage-Headerstakeprecedenceoverpre-configuredrecipients">Headers 
take precedence over pre-configured recipients</h3><p>The recipients specified 
in the message headers always take precedence over recipients pre-configured in 
the endpoint URI. The idea is that if you provide any recipients in the message 
headers, that is what you get. The recipients pre-configured in the endpoint 
URI are treated as a fallback.</p><p>In the sample code below, the email 
message is sent to <code>davscl...@apache.org</code>, because it takes 
precedence over the pre-configured recipient, <code>i...@mycompany.com</code>. 
 Any <code>cc</code> and <code>bcc</code> settings in the endpoint URI are also 
ignored and those recipients will not receive any mail. The choice between 
headers and pre-configured settings is all or nothing: the mail component 
<em>either</em> takes the recipients exclusively from the headers or 
exclusively from the pre-configured settings. It is not possible to mix and 
match headers and pre-configured settings.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[        Map&lt;String, Object&gt; headers = 
new HashMap&lt;String, Object&gt;();
         headers.put(&quot;to&quot;, &quot;davscl...@apache.org&quot;);
 

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.


Reply via email to