Two fixes for dtmail

This commit is contained in:
Ulrich Wilkens
2012-08-30 03:09:48 +02:00
committed by Jon Trulson
parent 3a28782409
commit 5c68d52ce4
3 changed files with 10 additions and 1 deletions

View File

@@ -2608,7 +2608,9 @@ MsgScrollingList::formatHeader(DtMailHeaderLine & info,
{
DtMailValueDate ds = ((info.header_values[1])[0])->toDate();
if (ds.dtm_date && ds.dtm_tz_offset_secs)
#define USE_MAX_TZ_SECONDS (60 * 60 * 12)
if (ds.dtm_date && ds.dtm_tz_offset_secs >= -USE_MAX_TZ_SECONDS
&& ds.dtm_tz_offset_secs <= USE_MAX_TZ_SECONDS)
{
#define USE_YEAR_FORMAT_SECONDS (60 * 60 * 24 * 180)
time_t now;