You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "A.Light" <an...@axiossystems.com> on 2014/11/18 13:21:35 UTC
Simple email forward route
Hi all,
I'm going to post a question that has already been posted here
<http://camel.465427.n5.nabble.com/Forward-mail-via-camel-td5715953.html>
and here
<http://camel.465427.n5.nabble.com/Missing-start-boundary-exception-on-camel-mail-2-10-2-td5724769.html>
, without resolution. Since the previous posts are 1 or 2 years old, I
thought the better thing was to make a new post. We can then point those
posts to here if we get a solution.
Said that, I'm trying to implement a complex route that involves reading and
writing emails, but I'm getting consistently a "Missing start boundary"
exception for which I'm asking for help here. After stripping out from the
route everything not related to the exception, I ended up with this simple
spring route:
<route>
<from
uri="imap://mailserver:143?username=receiver@foodomain.com&password=xxxxxx&consumer.delay=1000"/>
<setHeader
headerName="from"><constant>receiver@foodomain.com</constant></setHeader>
<setHeader
headerName="to"><constant>forwardto@foodomain.com</constant></setHeader>
<to uri="smtp://mailserver:225"/>
</route>
My camel version is 2.14.0, java is 1.7.
Here is the email writeTo format, as taken from
MimeMultipart.writeTo(FileOutputStream): emailWriteTo.txt
<http://camel.465427.n5.nabble.com/file/n5759253/emailWriteTo.txt>
Here is the stacktrace of the error: Stacktrace02.txt
<http://camel.465427.n5.nabble.com/file/n5759253/Stacktrace02.txt>
What is causing the exception?
Let me know if there's anything else I can provide to help identify the
problem which most surely is somewhere in my configuration.
Thanks for any suggestion,
A.
--
View this message in context: http://camel.465427.n5.nabble.com/Simple-email-forward-route-tp5759253.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Simple email forward route
Posted by Paul McCulloch <pk...@gmail.com>.
You may be able to work around this (which may hide a real underlying
problem!) with -Dmail.mime.multipart.allowempty=true
On 18 November 2014 12:21, A.Light <an...@axiossystems.com> wrote:
> Hi all,
> I'm going to post a question that has already been posted here
> <http://camel.465427.n5.nabble.com/Forward-mail-via-camel-td5715953.html>
> and here
> <
> http://camel.465427.n5.nabble.com/Missing-start-boundary-exception-on-camel-mail-2-10-2-td5724769.html
> >
> , without resolution. Since the previous posts are 1 or 2 years old, I
> thought the better thing was to make a new post. We can then point those
> posts to here if we get a solution.
>
> Said that, I'm trying to implement a complex route that involves reading
> and
> writing emails, but I'm getting consistently a "Missing start boundary"
> exception for which I'm asking for help here. After stripping out from the
> route everything not related to the exception, I ended up with this simple
> spring route:
>
> <route>
> <from
> uri="imap://mailserver:143?username=receiver@foodomain.com
> &password=xxxxxx&consumer.delay=1000"/>
> <setHeader
> headerName="from"><constant>receiver@foodomain.com</constant></setHeader>
> <setHeader
> headerName="to"><constant>forwardto@foodomain.com</constant></setHeader>
> <to uri="smtp://mailserver:225"/>
> </route>
>
> My camel version is 2.14.0, java is 1.7.
> Here is the email writeTo format, as taken from
> MimeMultipart.writeTo(FileOutputStream): emailWriteTo.txt
> <http://camel.465427.n5.nabble.com/file/n5759253/emailWriteTo.txt>
> Here is the stacktrace of the error: Stacktrace02.txt
> <http://camel.465427.n5.nabble.com/file/n5759253/Stacktrace02.txt>
>
> What is causing the exception?
> Let me know if there's anything else I can provide to help identify the
> problem which most surely is somewhere in my configuration.
>
> Thanks for any suggestion,
> A.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Simple-email-forward-route-tp5759253.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>