aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-25 15:45:14 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-25 15:45:14 +0000
commite4eb7ddd1d987340e339b2a59d7ed0be46d79166 (patch)
tree58aaab3ee4e6062deb6ba625dd36ffa8fef0e14d
parentbd130a4ae88473246e46676138dc688ee9a27d60 (diff)
added more characters to be substituted for filename.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@861 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.ja7
-rw-r--r--libsylph/utils.c6
3 files changed, 15 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index e9c79365..f2aac6f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-26
+
+ * libsylph/utils.c: subst_for_filename(): added more characters to be
+ substituted (for Win32).
+ generate_mime_boundary(): replaced subst_char() with subst_chars().
+
2005-12-25
* src/compose.c: compose_attach_parts(): include message/rfc822 parts.
diff --git a/ChangeLog.ja b/ChangeLog.ja
index 70ce5634..fb900bc8 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,3 +1,10 @@
+2005-12-26
+
+ * libsylph/utils.c: subst_for_filename(): 置換する文字を追加(Win32
+ のため)。
+ generate_mime_boundary(): subst_char() を subst_chars()
+ で置き換えた。
+
2005-12-25
* src/compose.c: compose_attach_parts(): message/rfc822 パートも
diff --git a/libsylph/utils.c b/libsylph/utils.c
index cfa223a7..e6703186 100644
--- a/libsylph/utils.c
+++ b/libsylph/utils.c
@@ -1077,7 +1077,7 @@ void subst_null(gchar *str, gint len, gchar subst)
void subst_for_filename(gchar *str)
{
- subst_chars(str, " \t\r\n\"'/\\", '_');
+ subst_chars(str, " \t\r\n\"'\\/:;*?<>|", '_');
}
gchar *get_alt_filename(const gchar *filename, gint count)
@@ -2973,9 +2973,7 @@ gchar *generate_mime_boundary(const gchar *prefix)
buf_uniq[i] = '\0';
get_rfc822_date(buf_date, sizeof(buf_date));
- subst_char(buf_date, ' ', '_');
- subst_char(buf_date, ',', '_');
- subst_char(buf_date, ':', '_');
+ subst_chars(buf_date, " ,:", '_');
return g_strdup_printf("%s=_%s_%s", prefix ? prefix : "Multipart",
buf_date, buf_uniq);