Hi Yeah well spotted, a good idea to use a linked so the order is preserved.
Not sure if the attachments api has any hint to indicate ordering. Maybe some unique id of the attachment, many be used as workaround in current Camel version. Though fell free to log a JIRA, and as we love contributions you are welcome to work on a patch also. http://camel.apache.org/contributing.html On Sun, Jan 5, 2014 at 1:04 PM, rdehuyss <[email protected]> wrote: > Hi all, > > for a project I'm working on where mail attachments are retrieved from a > gmail account, the order of the attachments is very important. > > In Camel, I use a SplitAttachmentsExpression to split all the attachments > and process them sequentially. > > However, I saw that the method createAttachments in DefaultMessage is using > a plain old HashMap, thus resulting in a random order of the attachments. If > this would be a LinkedHashMap, the order of the messages would be assured > when processing in Camel. > > Am I the first one bumping into this? Should I create a Jira ticket? > > Thx a lot, > Ronald > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-Message-Attachment-order-tp5745563.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io
