+2001-08-01
+
+ * src/mimeview.c: mimeview_view_file(): added -x option to the
+ metamail to prevent the suspention of the main process.
+ mimeview_button_pressed(): deactivate `Open' menu item if
+ content-type is application/octet-stream.
+
+2001-07-31
+
+ * src/imap.c: imap_parse_atom(): parse escaped characters properly.
+ get_quoted(): new. It handles the escape character '\'.
+ * src/folder.c: folder_read_list(): don't output warning if
+ folderlist.xml doesn't exist.
+ * src/main.c: main(): write folder list after setup.
+ * src/textview.c: textview_create()
+ src/compose.c: compose_create(): set default tab width to 8.
+
2001-07-29
* src/prefs_common.c: date_format_select_row(): fixed a bug that
+2001-08-01 [paul]
+
+ * configure.in
+ change to 0.5.1claws4
+
+ * sync with sylpheed 0.5.1cvs7
+
2001-07-31 [alfons]
* src/prefs_common.c, src/prefs_common.h,
o FreeBSD 5.0-CURRENT
o NetBSD 1.4.2
o NetBSD 1.5 + XPG4DL
+o NetBSD 1.5.1
o OpenBSD 2.7
o OpenBSD 2.8 (i386)
o OpenBSD 2.9
o FreeBSD 5.0-CURRENT
o NetBSD 1.4.2
o NetBSD 1.5 + XPG4DL
+o NetBSD 1.5.1
o OpenBSD 2.7
o OpenBSD 2.8 (i386)
o OpenBSD 2.9
MICRO_VERSION=1
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=claws3
+EXTRA_VERSION=claws4
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl
(GTK_SCROLLED_WINDOW(scrolledwin)),
gtk_scrolled_window_get_vadjustment
(GTK_SCROLLED_WINDOW(scrolledwin)));
+ GTK_STEXT(text)->default_tab_width = 8;
gtk_stext_set_editable(GTK_STEXT(text), TRUE);
if (prefs_common.smart_wrapping) {
gtk_stext_set_word_wrap(GTK_STEXT(text), TRUE);
{
GNode *node;
XMLNode *xmlnode;
+ gchar *path;
- node = xml_parse_file(folder_get_list_path());
+ path = folder_get_list_path();
+ if (!is_file_exist(path)) return -1;
+ node = xml_parse_file(path);
if (!node) return -1;
xmlnode = node->data;
gchar ch,
gchar *dest,
gint len);
+static gchar *get_quoted (const gchar *src,
+ gchar ch,
+ gchar *dest,
+ gint len);
static gchar *search_array_contain_str (GPtrArray *array,
gchar *str);
static void imap_path_separator_subst (gchar *str,
} else if (*cur_pos == '\"') {
gchar *p;
- p = strchr_cpy(cur_pos + 1, '\"', dest, dest_len);
+ p = get_quoted(cur_pos, '\"', dest, dest_len);
cur_pos = p ? p : cur_pos + 2;
} else if (*cur_pos == '{') {
gchar buf[32];
return tmp + 1;
}
+static gchar *get_quoted(const gchar *src, gchar ch, gchar *dest, gint len)
+{
+ const gchar *p = src;
+ gint n = 0;
+
+ g_return_val_if_fail(*p == ch, NULL);
+
+ *dest = '\0';
+ p++;
+
+ while (*p != '\0' && *p != ch) {
+ if (n < len - 1) {
+ if (*p == '\\' && *(p + 1) != '\0')
+ p++;
+ *dest++ = *p++;
+ } else
+ p++;
+ n++;
+ }
+
+ *dest = '\0';
+ return (gchar *)(*p == ch ? p + 1 : p);
+}
+
static gchar *search_array_contain_str(GPtrArray *array, gchar *str)
{
gint i;
account_read_config_all();
account_save_config_all();
- if (folder_read_list() < 0) setup(mainwin);
+ if (folder_read_list() < 0) {
+ setup(mainwin);
+ folder_write_list();
+ }
account_set_missing_folder();
folderview_set(folderview);
else
menu_set_sensitive(mimeview->popupfactory,
"/Display as text", TRUE);
+ if (partinfo &&
+ partinfo->mime_type == MIME_APPLICATION_OCTET_STREAM)
+ menu_set_sensitive(mimeview->popupfactory,
+ "/Open", FALSE);
+ else
+ menu_set_sensitive(mimeview->popupfactory,
+ "/Open", TRUE);
#if USE_GPGME
menu_set_sensitive(mimeview->popupfactory,
"/Check signature",
static gchar *default_audio_cmdline = "play '%s'";
static gchar *default_html_cmdline =
"netscape -remote 'openURL(%s,raise)'";
- static gchar *mime_cmdline = "metamail -d -b -c %s '%s'";
+ static gchar *mime_cmdline = "metamail -d -b -x -c %s '%s'";
gchar buf[1024];
gchar m_buf[1024];
const gchar *cmd;
/* create GtkText widgets for single-byte and multi-byte character */
text_sb = gtk_text_new(NULL, NULL);
text_mb = gtk_text_new(NULL, NULL);
+ GTK_TEXT(text_sb)->default_tab_width = 8;
+ GTK_TEXT(text_mb)->default_tab_width = 8;
gtk_widget_show(text_sb);
gtk_widget_show(text_mb);
gtk_text_set_word_wrap(GTK_TEXT(text_sb), TRUE);