aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-driver.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-11-07 20:36:24 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-11-07 20:36:24 +0800
commite797be055881bb928b728aa1c1d65682f04d904a (patch)
treede673f96f3f68ed5bc1ac3e61c2d7203fa937a72 /filter/filter-driver.c
parent66dd09db7fc4007888ba62e5570d840ed83ab868 (diff)
downloadgsoc2013-evolution-e797be055881bb928b728aa1c1d65682f04d904a.tar
gsoc2013-evolution-e797be055881bb928b728aa1c1d65682f04d904a.tar.gz
gsoc2013-evolution-e797be055881bb928b728aa1c1d65682f04d904a.tar.bz2
gsoc2013-evolution-e797be055881bb928b728aa1c1d65682f04d904a.tar.lz
gsoc2013-evolution-e797be055881bb928b728aa1c1d65682f04d904a.tar.xz
gsoc2013-evolution-e797be055881bb928b728aa1c1d65682f04d904a.tar.zst
gsoc2013-evolution-e797be055881bb928b728aa1c1d65682f04d904a.zip
you shouldn't use an integer to set the flag. You should use a string, and
2000-11-06 Not Zed <NotZed@HelixCode.com> * filter-driver.c (do_flag): you shouldn't use an integer to set the flag. You should use a string, and look it up, because the flag bits might change. (filter_driver_filter_message): Can som e one PLEASE STOP INDENTING THE CODE. Even if i have to come over the and beat it into you. YOU DONT INDENT CODE ONCE ITS BEEN CHECKED IN TO CVS, otherwise you SCREW UP THE DIFF's. Can't you please please learn this? (filter_driver_log): Fixes for api changes to mime_message. 2000-11-05 Not Zed <NotZed@HelixCode.com> * filter-message-search.c (get_sent_date): Fix for date change api. No longer need to encode/decode the date, after its been encoded/ecoded already. (get_received_date): Likewise. svn path=/trunk/; revision=6477
Diffstat (limited to 'filter/filter-driver.c')
-rw-r--r--filter/filter-driver.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/filter/filter-driver.c b/filter/filter-driver.c
index f32699559a..e07b58dc0c 100644
--- a/filter/filter-driver.c
+++ b/filter/filter-driver.c
@@ -562,17 +562,22 @@ filter_driver_log (FilterDriver *driver, enum filter_log_t status, const char *d
case FILTER_LOG_START: {
/* write log header */
const char *subject = NULL;
- const char *from = NULL;
+ char *fromstr;
+ const CamelInternetAddress *from;
char date[50];
time_t t;
-
+
+ /* FIXME: does this need locking? Probably */
+
from = camel_mime_message_get_from (p->message);
+ fromstr = camel_address_format((CamelAddress *)from);
subject = camel_mime_message_get_subject (p->message);
time (&t);
strftime (date, 49, "%a, %d %b %Y %H:%M:%S", localtime (&t));
fprintf (p->logfile, "Applied filter \"%s\" to message from %s - \"%s\" at %s\n",
- str, from ? from : "unknown", subject ? subject : "", date);
+ str, fromstr ? fromstr : "unknown", subject ? subject : "", date);
+ g_free(fromstr);
break;
}
case FILTER_LOG_ACTION: