diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-03-09 06:37:55 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-03-09 06:37:55 +0000 |
commit | 39683eb5ab1e51c69ddf12a9da1ce0402f78380f (patch) | |
tree | d7f296191bfad70c9edf0c6fe10c42b2fe8ccb49 /libsylph/procmime.c | |
parent | 57da061f6ef7b0b005066dcf7fd5bd317f394339 (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/procmime.c')
-rw-r--r-- | libsylph/procmime.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libsylph/procmime.c b/libsylph/procmime.c index 0f9ab39f..349bd84f 100644 --- a/libsylph/procmime.c +++ b/libsylph/procmime.c @@ -1250,7 +1250,7 @@ gint procmime_execute_open_file(const gchar *file, const gchar *mime_type) gchar *mime_type_ = NULL; GList *cur; MailCap *mailcap; - gchar *cmdline, *p; + gchar *cmdline; gint ret = -1; static gboolean mailcap_list_init = FALSE; @@ -1298,8 +1298,7 @@ gint procmime_execute_open_file(const gchar *file, const gchar *mime_type) if (mailcap->needs_terminal) continue; - if ((p = strchr(mailcap->cmdline_fmt, '%')) && - *(p + 1) == 's' && !strchr(p + 2, '%')) + if (str_find_format_times(mailcap->cmdline_fmt, 's') == 1) cmdline = g_strdup_printf(mailcap->cmdline_fmt, file); else cmdline = g_strconcat(mailcap->cmdline_fmt, " \"", file, |