Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ABA5C1031B for ; Fri, 28 Feb 2014 02:37:22 +0000 (UTC) Received: (qmail 99250 invoked by uid 500); 28 Feb 2014 02:37:22 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 99141 invoked by uid 500); 28 Feb 2014 02:37:21 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 99019 invoked by uid 99); 28 Feb 2014 02:37:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Feb 2014 02:37:20 +0000 Date: Fri, 28 Feb 2014 02:37:20 +0000 (UTC) From: "Willem Jiang (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CAMEL-7254) MailComponent 'peek' doesn't work due to programming error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-7254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Willem Jiang reassigned CAMEL-7254: ----------------------------------- Assignee: Willem Jiang > MailComponent 'peek' doesn't work due to programming error > ---------------------------------------------------------- > > Key: CAMEL-7254 > URL: https://issues.apache.org/jira/browse/CAMEL-7254 > Project: Camel > Issue Type: Bug > Components: camel-mail > Affects Versions: 2.12.2 > Reporter: Matt Nathan > Assignee: Willem Jiang > Priority: Critical > > The MailComponent peek setting doesn't work due to the following line: > {code:java} > private void peekMessage(Message mail) { > // this only applies to IMAP messages which has a setPeek method > if (mail.getClass().getName().startsWith("IMAP")) { > try { > LOG.trace("Calling setPeek(true) on mail message {}", mail); > IntrospectionSupport.setProperty(mail, "peek", true); > } catch (Throwable e) { > // ignore > LOG.trace("Error setting peak property to true on: " + mail + ". This exception is ignored.", e); > } > } > } > {code} > The line that checks the class name for IMAP should be using getSimpleName. Otherwise it's checking the package name instead. > This effectively means that rollback of processing in camel mail is not supported. -- This message was sent by Atlassian JIRA (v6.1.5#6160)