On Thu, Jan 06, 2011 at 03:09:53AM +0000, Toby Cubitt wrote: > As far as I recall (it's a long time since I looked at it), the > date_conditional patch straightforwardly compares the email date stamp > against the current time. The <1d conditional is true whenever the email > is dated less than 24h before the current time. That's *not* what I'm > after. When the current time is 00:01 on the 6 Jan, I want an email that > arrived at 23:59 on the 5 Jan to display "Sun 05", even though the email > is only two minutes old.
In case anyone's interested, I've put the modified version of the date_conditional patch which implements the above behaviour at: http://www.dr-qubit.org/download.php?file =mutt/mutt-1.5.21-patch.tsc.date_conditional.1 [URL should all be on one line] Note that you can still get the original date_conditional behaviour by specifying a finer time unit in the date format. E.g. if you want to specify a format for emails from the last 24 hours, use <24h as the time span. If you want to specify a format for emails from today (as described above), use <1d as the time span. (Roughly speaking, in this version of the date_conditional patch, the current time and the email's date stamp are converted to the unit of time specified in the conditional, and the fractional part discarded, before comparing the two.) Toby -- Dr T. S. Cubitt Mathematics and Quantum Information group Department of Mathematics Complutense University Madrid, Spain email: [email protected] web: www.dr-qubit.org
