Re: Incorrect time on email

 
From: "Barry Page" <barry_page@PROTECTED>
Date: July 23rd 2009
>Try this:
>In dada/DADA/Mail/Send.pm there's a line that says: 
>    $fields{Date} = $self->_Date;

Yup that worked. Thanks! On my test list it sent 'tomorrow' before change, 'now' after change. Date headers were maintained correctly through all mail hops. I guess being in New Zealand (UTC +12) is an 'edge case' for date handling.

From Greenhithe test Thu Jul 23 20:40:47 2009
Return-Path: <barry@PROTECTED>
Authentication-Results: mta124.mail.ac4.yahoo.com  from=greenhithe.org.nz; domainkeys=neutral (no sig); from=greenhithe.org.nz; dkim=neutral (no  sig)
Received: from 127.0.0.1  (EHLO locallywired.net) (202.175.131.40)
  by mta124.mail.ac4.yahoo.com with SMTP; Thu, 23 Jul 2009 13:35:14 -0700
Received: from locallywired.net (locallywired.net [127.0.0.1])
    by locallywired.net (8.13.8/8.13.8) with ESMTP id n6NKelke017365
    for <barry_page@PROTECTED>; Fri, 24 Jul 2009 08:40:47 +1200
Received: (from apache@localhost)
    by locallywired.net (8.13.8/8.13.8/Submit) id n6NKeloF017364;
    Fri, 24 Jul 2009 08:40:47 +1200
Date: Fri, 24 Jul 2009 08:40:47 +1200
From: "Greenhithe test" <info@PROTECTED>

What's the process for filing a bug? [btw. reading through your code is freaky ... it's like a window into your brain ... ;-) ]

 
Regards,
Barry Page


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.com

Demo:
http://demo.dadamailproject.com

Seen 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/

Post:
mailto:[list_settings.discussion_pop_email]

Unsubscribe:
http://dadamailproject.com/cgi-bin/dada/mail.cgi/u/[list]/

List Information:
[PROGRAM_URL]/list/[list_settings.list]

Archive:
[PROGRAM_URL]/archive/[list_settings.list]

Mailing List Powered by Dada Mail

  • This mailing list is a public mailing list - anyone may join or leave, at any time.
  • This mailing list is a group discussion list (unmoderated)
  • Start a new thread, email: dadadev@dadamailproject.com

This is the developer discussion mailing list for Dada Mail.

If you are just looking for support Dada Mail, consult the message boards at:

https://forum.dadamailproject.com

Documentation for Dada Mail:

https://dadamailproject.com/d

Specifically, see the Error FAQ:

https://dadamailproject.com/d/FAQ-errors.pod.html

To post to this list, send a message to:

mailto:dadadev@dadamailproject.com

All subscribers of this list may post to the list itself.

Topics that are welcome:

  • Constructive critiques on the program (I like, "x", but, "y" needs some work - here's an idea on how to make this better...)
  • Bug/Error reports
  • Bug fixes
  • Request For Comments on any changes to the program
  • Help customizing Dada Mail for your own needs
  • Patches
  • Language Translations
  • Support Documentation/Doc editing, FAQ's, etc.
  • Discussion of any changes that you would like to be committed to the next version of Dada Mail -

Dada Mail is on Github:

https://github.com/justingit/dada-mail/

If you would like to fork, branch, send over PRs, open up issues, etc.

Privacy Policy:

This Privacy Policy is for this mailing list, and this mailing list only.

Email addresses collection through this mailing list are used explicitly to work within this email discussion list.

We only collect email addresses through our Closed-Loop Opt-In system.

We don't use your email address for any other purpose.

We won't be sharing your email address with any other entity.

Unsubscription can be done at any time. Please contact us at: justin@dadamailproject.com for any help regarding your subscription, including removal from the mailing list.

All mailing list messages sent from us will include a subscription removal link, which will allow you to remove yourself from this mailing list automatically, and permanently.

All consent to use your email address for any other purpose stated at the time of the mailing list subscription will also be revoked upon mailing list removal.