From: Justin J <justin@PROTECTED>
To: Dada Mail Developers Subscriber <barry_page@PROTECTED>
Sent: Thursday, 23 July, 2009 7:50:22 PM
Subject: [dadadev] Re: Incorrect time on email
On Jul 23, 2009, at 12:01 AM, Barry Page wrote:
--
Post: <mailto:
dadadev@PROTECTED>
Unsubscribe:
<
http://dadamailproject.com/cgi-bin/dada/mail.cgi/u/dadadev/>
List Information: <
http://dadamailproject.com/cgi-bin/dada/mail.cgi/list/dadadev>
Archive: <
http://dadamailproject.com/cgi-bin/dada/mail.cgi/archive/dadadev>
Mailing List Powered by Dada Mail
http://dadamailproject.com/cgi-bin/dada/mail.cgi/what_is_dada_mail/>
> Here is something a little bit interesting. When I send a message to the list, the incorrect time is being picked up somewhere in the chain. This doesn't happen if I send a *test* message, only if I send it to the list. If you look at the headers of a sample message you might see that somewhere it is taking my time zone of UTC+12 (correct) and applying UTC-12 (incorrect)
> It looks like this is happening in the Dada cgi, as the other servers/services in the chain
seem to have the correct timezone.
> I am using sendmail as the smtp server with linux. I have checked the time settings and they appear fine. I check all mail going in and out using spamassassin, and it is applying quite a heavy spam score because time is in the future, so I can reasonably assume that some mail is being eliminated before reaching subscribers mailboxes.
>
> Any thoughts? Is this a dada bug or something in my setup? Using 3.0.3 Stable.
Try this:
In dada/DADA/Mail/Send.pm there's a line that says:
$fields{Date} = $self->_Date;
It's in such a place, that the Date header in outgoing messages *should* be created, right when they're sent. It's possible there's a bug in the actual method that creates the Date header. You'll see notes above this line:
# DEV: I'm setting the date here, since somewhere the date is being
rewritten *Somewhere*
# DEV: I should also be using Email::Date::Format, instead of something I ripped out of Mail::Bulkmail - no?
Looks like I stole the code from another module, so there's a good chance there's some bugs in it. The, "Email::Date::Format" module would be a great replacement, as it has no dependencies, hasn't been updated in years and hopefully, doesn't have this bug. I'll attempt to make a note to do just that.
You could try simply removing/commenting out that line ($fields{Date} = $self->_Date; ) and see if the mail server itself will create the Date header for you. If so, you're golden.
Why this problem doesn't happen in test messages - man, I have no idea ;)
Sounds like a bug should be opened, if anything.
--Justin J.
Dada Mail - Write Once: Distribute Everywhere Software
url:
http://dadamailproject.comDemo:
http://demo.dadamailproject.comSeen Dada Mail 3?
http://dadamailproject.com/features/3_0/On Jul 23, 2009, at 12:01 AM, Barry Page wrote:
>
> Here is something a little bit interesting. When I send a message to the list, the incorrect time is being picked up somewhere in the chain. This doesn't happen if I send a *test* message, only if I send it to the list. If you look at the headers of a sample message you might see that somewhere it is taking my time zone of UTC+12 (correct) and applying UTC-12 (incorrect)
> It looks like this is happening in the Dada cgi, as the other servers/services in the chain seem to have the correct timezone.
> I am using sendmail as the smtp server with linux. I have checked the
time settings and they appear fine. I check all mail going in and out using spamassassin, and it is applying quite a heavy spam score because time is in the future, so I can reasonably assume that some mail is being eliminated before reaching subscribers mailboxes.
>
> Any thoughts? Is this a dada bug or something in my setup? Using 3.0.3 Stable.
>
> From Greenhithe Residents Newsletter Mon Jul 20 22:31:01 2009
> Return-Path: <
greenhithe.bounce@PROTECTED>
> Authentication-Results: mta246.mail.re2.yahoo.com from=greenhithe.org.nz; domainkeys=neutral (no sig); from=greenhithe.org.nz; dkim=neutral (no sig)
> Received: from 202.175.131.40 (EHLO locallywired.net) (202.175.131.40)
> by mta246.mail.re2.yahoo.com with SMTP; Sun, 19 Jul 2009 15:26:17 -0700
>
Received: from locallywired.net (locallywired.net [127.0.0.1])
> by locallywired.net (8.13.8/8.13.8) with ESMTP id n6JMV1dY004486
> for <
barry_page@PROTECTED>; Mon, 20 Jul 2009 10:31:01 +1200
> Received: (from apache@localhost)
> by locallywired.net (8.13.8/8.13.8/Submit) id n6JMV1BH004485;
> Mon, 20 Jul 2009 10:31:01 +1200
> Date: Mon, 20 Jul 2009 10:31:01 -1200
> From: "Greenhithe Residents Newsletter" <
info@PROTECTED>
> To: "Greenhithe Residents Newsletter Subscriber" <
barry_page@PROTECTED>
> Reply-To: "Greenhithe Residents Newsletter" <
info@PROTECTED>
> List: grracha
> List-Archive: <
http://www.greenhithe.org.nz/cgi-bin/dada/mail.cgi/archive/grracha/>
> List-ID: <grracha.vmfedora.locallywired.net.net>
> List-Owner: <
info@PROTECTED>
> List-Subscribe: <
http://www.greenhithe.org.nz/cgi-bin/dada/mail.cgi/s/grracha/>
> List-Unsubscribe: <
http://www.greenhithe.org.nz/cgi-bin/dada/mail.cgi/u/grracha/>
> List-URL: <
http://www.greenhithe.org.nz/cgi-bin/dada/mail.cgi/list/grracha/>
> Message-ID: <
20090720102434.75172260@PROTECTED>
> Content-type: multipart/alternative; boundary="----------=_1248042274-2248-0"; charset=iso-8859-1
> MIME-Version: 1.0
> Subject: Greenhithe Residents and Ratepayers Assoc. AGM reminder
> DATE_IN_FUTURE_24_48,HTML_IMAGE_ONLY_32,HTML_MESSAGE autolearn=no
> version=3.2.4
> vmfedora.locallywired.net
> Content-Length: 5260
>
>
>
>
>
> Regards,
> Barry Page
>
>
> Post:
> mailto:
dadadev@PROTECTED>
> Unsubscribe:
>
http://dadamailproject.com/cgi-bin/dada/mail.cgi/u/dadadev/>
> List Information:
>
http://dadamailproject.com/cgi-bin/dada/mail.cgi/list/dadadev>
> Archive:
>
http://dadamailproject.com/cgi-bin/dada/mail.cgi/archive/dadadev>
> Mailing List Powered by Dada Mail
>
--
Post:<mailto:
dadadev@PROTECTED>
Unsubscribe:
<
http://dadamailproject.com/cgi-bin/dada/mail.cgi/u/dadadev/>
List Information:<
http://dadamailproject.com/cgi-bin/dada/mail.cgi/list/dadadev>
Archive:<
http://dadamailproject.com/cgi-bin/dada/mail.cgi/archive/dadadev>
Mailing List Powered by Dada Mail
http://dadamailproject.com/cgi-bin/dada/mail.cgi/what_is_dada_mail/