Closed GoogleCodeExporter closed 9 years ago
Hello gdlindenberg,
I really appreciate the patch and the work that you have put in checking out
the code!
I'd love to work on how to fix this datejs gotcha, but I'm not sure this patch
would work in all cases..
With the patch above you add 1 day if the mail composition time is before the
'send at' date.
But what if the user would like to send at '@tuesday' but it's currently Thurs?
With the current state of datejs the email would be send immediately, because
it assumes that you really wanted to send it 2 days ago (which is pretty dumb).
With this patch it would be sent on Friday?
Original comment by blairk...@gmail.com
on 22 Jan 2014 at 5:28
I 'designed' the patch to work with hours since it was what I needed. The main
problem is how gmail delay send works, since it checks "If NOW is greater than
the send time, then send", of course it's not gmail delay send's fault that de
datejs plugin has it's faults.
I don't have the java programming skills to do it properly, but I think that
the function that decides when to send it has to be rewritten, using some kind
of check like I did, for example, if the mail is scheduled for Thuesday and
today is friday, then check
1) What day was the email written? (We have access to that info as I used in my
quick fix)
2) What day datejs says we need to send it (it will say last tuesday)
3) Is that day greater than the day the email was written?
4) If it is, then send it.
I can -try- to assist of course, but my javascript skills aren't that good, and
my code is not even near polished
Original comment by gdlinden...@zonedevelopments.com.ar
on 24 Jan 2014 at 12:38
Original comment by blairk...@gmail.com
on 21 Mar 2014 at 9:48
Original issue reported on code.google.com by
gdlinden...@zonedevelopments.com.ar
on 22 Jan 2014 at 2:28