Re: "Date:" header handling

 
From: "Mariano Absatz" <el.baby@PROTECTED>
Date: September 10th 2007

Thanx a lot Justin

I just modified Mail::Send pm like this (patch attached)

Tonight I have to send a message to a large list I'll let you know how it went

On 9/10/07, Dada Mail (Justin Simoni) dada@PROTECTED wrote: >

On Sep 7, 2007, at 12:01 PM, Mariano Absatz wrote:

did you finally do this? can you send me a patch? or else at least you have a good guess of where should I do what?

OK, here's basically the deal In the dada/DADA/Mail/Send pm file, you'll have to find the, makegeneral_headers subroutine There's 2 lines there:

[snip]

            require HTTP::Date;
            $gh{Date} = HTTP::Date::time2str();

[/snip]

You'll want to comment/remove those Seems like there's probably a reason I explicitly set the Date: header, although I forget why at this very moment

So, to put it back on at the time of sending, you'll have to change the, send subroutine Find these few lines (I'm using 2 10 15 as the example):

[snip]

    # This copies over domain-specific tunings for sending



    my ($email_address, $email_domain) = split('@', $fields{To});
    # damn that's weird


    if($self->{list_info}->{use_domain_sending_tunings} == 1) {

     if($self->{domain_specific_tunings}->{$email_domain}->

{domain} eq $email_domain){ foreach(keys %{$self->{domain_specific_tunings}-> {$email_domain}}){ $local_li->{$} = $self->{domainspecific_tunings}-> {$email_domain}->{$_}; } }

    }





 # and back to your regularly scheduled send() subroutine



[/snip]

And at the end of all that, just add:

[snip]

 require HTTP::Date;
 $fields{Date} = HTTP::Date::time2str();

[/snip]

And that should do it

There may be some weird bugs introduced from this in regards with the archives and the SQL backend, but the above little tweaks should get you pretty far;

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