aboutsummaryrefslogtreecommitdiff
path: root/libsylph/procmsg.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 /libsylph/procmsg.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 'libsylph/procmsg.c')
-rw-r--r--libsylph/procmsg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libsylph/procmsg.c b/libsylph/procmsg.c
index 3487bdf0..00a3b9c9 100644
--- a/libsylph/procmsg.c
+++ b/libsylph/procmsg.c
@@ -1289,7 +1289,6 @@ void procmsg_print_message(MsgInfo *msginfo, const gchar *cmdline)
GPtrArray *headers;
gint i;
gchar buf[1024];
- gchar *p;
g_return_if_fail(msginfo != NULL);
@@ -1367,8 +1366,7 @@ void procmsg_print_message(MsgInfo *msginfo, const gchar *cmdline)
}
#endif
- if (cmdline && (p = strchr(cmdline, '%')) && *(p + 1) == 's' &&
- !strchr(p + 2, '%'))
+ if (cmdline && str_find_format_times(cmdline, 's') == 1)
g_snprintf(buf, sizeof(buf) - 1, cmdline, prtmp);
else {
if (cmdline) {