+2005-06-16 [colin] 1.9.11cvs78
+
+ * src/imap_gtk.c
+ Lock summaryview while downloading messages
+ on user demand
+ * src/procheader.c
+ * src/unmime.c
+ * src/common/utils.c
+ * src/common/utils.h
+ Replace \r and \n with spaces in From and
+ Subject headers
+
2005-06-16 [paul] 1.9.11cvs77
* src/procmime.c
( cvs diff -u -r 1.382.2.131 -r 1.382.2.132 src/compose.c; cvs diff -u -r 1.395.2.81 -r 1.395.2.82 src/summaryview.c; cvs diff -u -r 1.8.2.6 -r 1.8.2.7 src/headerview.c; ) > 1.9.11cvs75.patchset
( cvs diff -u -r 1.4.2.10 -r 1.4.2.11 src/gtk/about.c; ) > 1.9.11cvs76.patchset
( cvs diff -u -r 1.49.2.47 -r 1.49.2.48 src/procmime.c; cvs diff -u -r 1.4.2.11 -r 1.4.2.12 src/gtk/about.c; ) > 1.9.11cvs77.patchset
+( cvs diff -u -r 1.1.2.9 -r 1.1.2.10 src/imap_gtk.c; cvs diff -u -r 1.47.2.20 -r 1.47.2.21 src/procheader.c; cvs diff -u -r 1.8.2.4 -r 1.8.2.5 src/unmime.c; cvs diff -u -r 1.36.2.32 -r 1.36.2.33 src/common/utils.c; cvs diff -u -r 1.20.2.15 -r 1.20.2.16 src/common/utils.h; ) > 1.9.11cvs78.patchset
MICRO_VERSION=11
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=77
+EXTRA_VERSION=78
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
g_free(ptr);
}
+void replace_returns(gchar *str)
+{
+ if (!str)
+ return;
+
+ while (strstr(str, "\n")) {
+ *strstr(str, "\n") = ' ';
+ }
+ while (strstr(str, "\r")) {
+ *strstr(str, "\r") = ' ';
+ }
+}
gpointer g_auto_pointer_get_ptr (GAuto *auto_ptr);
GAuto *g_auto_pointer_copy (GAuto *auto_ptr);
void g_auto_pointer_free (GAuto *auto_ptr);
-
+void replace_returns (gchar *str);
#ifdef __cplusplus
}
#endif
#include "imap.h"
#include "inc.h"
#include "prefs_common.h"
+#include "summaryview.h"
static void new_folder_cb(FolderView *folderview, guint action, GtkWidget *widget);
static void rename_folder_cb(FolderView *folderview, guint action, GtkWidget *widget);
main_window_lock(mainwin);
gtk_widget_set_sensitive(folderview->ctree, FALSE);
main_window_progress_on(mainwin);
+ summaryview_lock(folderview->summaryview, item);
GTK_EVENTS_FLUSH();
if (folder_item_fetch_all_msg(item) < 0) {
gchar *name;
}
folder_set_ui_func(item->folder, NULL, NULL);
main_window_progress_off(mainwin);
+ summaryview_unlock(folderview->summaryview, item);
gtk_widget_set_sensitive(folderview->ctree, TRUE);
main_window_unlock(mainwin);
inc_unlock();
if (msginfo->from) break;
msginfo->from = conv_unmime_header(hp, NULL);
msginfo->fromname = procheader_get_fromname(msginfo->from);
+ replace_returns(msginfo->from);
+ replace_returns(msginfo->fromname);
break;
case H_TO:
tmp = conv_unmime_header(hp, NULL);
case H_SUBJECT:
if (msginfo->subject) break;
msginfo->subject = conv_unmime_header(hp, NULL);
+ replace_returns(msginfo->subject);
break;
case H_MSG_ID:
if (msginfo->msgid) break;
p = eword_end_p + 2;
}
-
+
out_str = outbuf->str;
out_len = outbuf->len;
g_string_free(outbuf, FALSE);