aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-06-03 03:49:50 +0800
committerDan Winship <danw@src.gnome.org>2000-06-03 03:49:50 +0800
commitdc11e4ea911bf1543d4dd7421ba1f8decdc4e1cf (patch)
treee91bdf5422a3067efd44171fefe0fce66758ed0b /mail/message-list.c
parent87593b97975f7fb05e799c762d99c06e31bfb2d8 (diff)
downloadgsoc2013-evolution-dc11e4ea911bf1543d4dd7421ba1f8decdc4e1cf.tar.gz
gsoc2013-evolution-dc11e4ea911bf1543d4dd7421ba1f8decdc4e1cf.tar.zst
gsoc2013-evolution-dc11e4ea911bf1543d4dd7421ba1f8decdc4e1cf.zip
If the date in the summary is 0, output "?".
* message-list.c (filter_date): If the date in the summary is 0, output "?". svn path=/trunk/; revision=3400
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index ddba5e04ad..6bede24743 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -438,6 +438,9 @@ filter_date (const void *data)
time_t date = GPOINTER_TO_INT (data);
char buf[26], *p;
+ if (date == 0)
+ return g_strdup ("?");
+
ctime_r (&date, buf);
p = strchr (buf, '\n');
if (p)