Re: Scheduled Mailing Oddities

 
From: "Justin J justin@PROTECTED [Dada Mail Developers]" <dadadev@PROTECTED>
In-Reply-To: (no subject)
Date: March 17th 2016

Still not sure what's causing this problem, but one of the things that (after re-)reviewing your post was this:

There is a cron job set to run every weekday at 2:15 a m to kick of several list mailings, including the student list (plus one at 3:15)

I wonder if you hit upon a problem with the scheduler, where it needs perhaps at least one check before it kicks off a mass mailing from a schedule If it doesn't get that, it may be just that it takes the safe bet that it missed the first schedule in the range, and will only start on the second

Personally, if you can, I'd go with running the cronjob much more frequently - I do design things to be checked every few minutes or so

The other suspect thing I found is in the code This line in, dada/DADA/MailingList/Schedules pm:

https://github
com/justingit/dada-mail/blob/master/dada/DADA/MailingList/Schedules
pm#L158-L165

for(@$recurring_scheds){ 
            if(
                     $_->{ctime} >= ($t - 259_200) 
                &&   $_->{ctime} <= ($t + 259_200) 
            ){ 
                push(@$schedule_times, $_->{ctime}); 
            }
        }

I'm hand-waving over a bunch of things, but basically Dada Mail figures out the correct range of dates to send out a recurring schedule, then these lines above find the dates that are near the current date "259_200" is seconds, which is around 3 days I'm wondering, since you're schedule only happens once a week, you're not getting the best feedback on when things should be sent out - which is why you don't get a printout of when schedules will be sent in the future Just a guess I've bumped this, "259_200" to, "604_800", which is a week-full of seconds I've also tried to play with the formatting of this report, so it may make a little more sense, when you look at it You can see these changes in,

https://github
com/justingit/dada-mail/commit/c17be4c1912ad30c542ec7ccac31c7ee27626efb

Bug,

https://github
com/justingit/dada-mail/issues/553
  • 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.