Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2200EF00E for ; Fri, 29 Mar 2013 11:36:52 +0000 (UTC) Received: (qmail 73391 invoked by uid 500); 29 Mar 2013 11:36:50 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 73166 invoked by uid 500); 29 Mar 2013 11:36:50 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 73145 invoked by uid 99); 29 Mar 2013 11:36:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Mar 2013 11:36:49 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dhoffer6@gmail.com designates 209.85.220.176 as permitted sender) Received: from [209.85.220.176] (HELO mail-vc0-f176.google.com) (209.85.220.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Mar 2013 11:36:42 +0000 Received: by mail-vc0-f176.google.com with SMTP id ib11so410217vcb.7 for ; Fri, 29 Mar 2013 04:36:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Gks+XGOCcUBVtHt7jo38Xt1CD85VzARIcR3Jdh7i+48=; b=DRZcojbqJZIGaWDJI2k6xO42UDQcQ3dSSo1utWJTgahcA+tO6U0KgV+3Zn0KwFWG7r 26X/onrBNBaJ19uHuocjR2guAOKHf5QmAxSDC0Ctvb17u97C/QImdrOm47FEISHzuDWq Qx2VXyg9xCEsBSTfkAOgJCfjbSztcKqae7tIwbVXhSngZGKdhIq20HGxppA61dF3K5Yu nCCenjZmHw9Jh1z0sISVxMDkOW462R+2kLTCcHf93y7rBLo/s39TS0uk/Ki/t5JzOUgQ ydFON/C+7yeYsHD+jlVAMQqFpC9/5mi2Nh/JNQzGu9mXZEXUmuaYU6JVeG74xpaDnrrL ceMA== MIME-Version: 1.0 X-Received: by 10.58.84.164 with SMTP id a4mr1586937vez.9.1364556982066; Fri, 29 Mar 2013 04:36:22 -0700 (PDT) Received: by 10.220.154.139 with HTTP; Fri, 29 Mar 2013 04:36:21 -0700 (PDT) In-Reply-To: References: Date: Fri, 29 Mar 2013 05:36:21 -0600 Message-ID: Subject: Re: commons-email sending email twice? From: David Hoffer To: Commons Users List Content-Type: multipart/alternative; boundary=047d7b6dbc2231259d04d90eae1d X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6dbc2231259d04d90eae1d Content-Type: text/plain; charset=UTF-8 Sure, how do I enable debug mode? -Dave On Fri, Mar 29, 2013 at 5:31 AM, Thomas Neidhart wrote: > On Fri, Mar 29, 2013 at 1:30 AM, David Hoffer wrote: > > > I've got a strange one. I'm using commons-email to send some email, that > > is being sent to two recipients so I call addTo() twice, once for each > > recipients, then I call send() once. I can tell I'm calling send() once > > per the log files. > > > > However two messages get sent. I'm using GMail to send. I can tell two > > got sent because it logs two sent in GMail's Sent Mail folder. And each > of > > the recipients get duplicate emails. They both have the same send and > > receive timestamp. > > > > This program runs and does this twice per day, happens to be at midnight > > and at 1am. To try to keep GMail from combining/threading the messages > the > > subject contains the date. So since we send the email an hour apart > these > > both have the same subject...and since the emails are duplicated we have > 4 > > combined/threaded messages per day in our Sent Mail folder. However we > > should only have 2. > > > > This started happening about a month ago and we were using commons-email > > 1.3, I since upgraded to 1.3.1 and get the same behavior. > > > > I don't know if this issue is with commons-email or GMail, or why it > > started...it used to work fine. > > > > Has anyone seen anything like this? Have any pointers how I might > resolve > > this? > > > > Hi Dave, > > just tested it myself with my gmail account and could not reproduce your > problem. > Can you try to send the email with debug mode turned on and attach the > output here? > > Thomas > --047d7b6dbc2231259d04d90eae1d--