aboutsummaryrefslogtreecommitdiffstats
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
parent87593b97975f7fb05e799c762d99c06e31bfb2d8 (diff)
downloadgsoc2013-evolution-dc11e4ea911bf1543d4dd7421ba1f8decdc4e1cf.tar
gsoc2013-evolution-dc11e4ea911bf1543d4dd7421ba1f8decdc4e1cf.tar.gz
gsoc2013-evolution-dc11e4ea911bf1543d4dd7421ba1f8decdc4e1cf.tar.bz2
gsoc2013-evolution-dc11e4ea911bf1543d4dd7421ba1f8decdc4e1cf.tar.lz
gsoc2013-evolution-dc11e4ea911bf1543d4dd7421ba1f8decdc4e1cf.tar.xz
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
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/message-list.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index e7cd180fc1..54915334b7 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2000-06-02 Dan Winship <danw@helixcode.com>
+ * message-list.c (filter_date): If the date in the summary is 0,
+ output "?".
+
* component-factory.c (create_view): keep a GList of folder
browsers created
(owner_unset_cb): Go through the list and close each folder before
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)