aboutsummaryrefslogtreecommitdiff
path: root/src/inc.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-03-09 06:37:55 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-03-09 06:37:55 +0000
commit39683eb5ab1e51c69ddf12a9da1ce0402f78380f (patch)
treed7f296191bfad70c9edf0c6fe10c42b2fe8ccb49 /src/inc.c
parent57da061f6ef7b0b005066dcf7fd5bd317f394339 (diff)
added a hidden option "mime_command" for backward compatibility.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1035 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/inc.c')
-rw-r--r--src/inc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/inc.c b/src/inc.c
index 87837327..c73985b0 100644
--- a/src/inc.c
+++ b/src/inc.c
@@ -182,10 +182,9 @@ static void inc_finished(MainWindow *mainwin, gint new_messages)
prefs_common.enable_newmsg_notify &&
prefs_common.newmsg_notify_cmd) {
gchar buf[1024];
- gchar *p;
- if ((p = strchr(prefs_common.newmsg_notify_cmd, '%')) &&
- *(p + 1) == 'd' && !strchr(p + 2, '%'))
+ if (str_find_format_times
+ (prefs_common.newmsg_notify_cmd, 'd') == 1)
g_snprintf(buf, sizeof(buf),
prefs_common.newmsg_notify_cmd,
new_messages);