projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* all:
[modest]
/
src
/
modest-tny-msg.c
diff --git
a/src/modest-tny-msg.c
b/src/modest-tny-msg.c
index
7a71ad4
..
71414f8
100644
(file)
--- a/
src/modest-tny-msg.c
+++ b/
src/modest-tny-msg.c
@@
-32,11
+32,10
@@
#include <tny-gtk-text-buffer-stream.h>
#include <tny-simple-list.h>
#include <tny-folder.h>
#include <tny-gtk-text-buffer-stream.h>
#include <tny-simple-list.h>
#include <tny-folder.h>
-#include <modest-tny-platform-factory.h>
+#include <modest-runtime.h>
#include <tny-camel-stream.h>
#include <camel/camel-stream-mem.h>
#include <tny-camel-stream.h>
#include <camel/camel-stream-mem.h>
-
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /*HAVE_CONFIG_H */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /*HAVE_CONFIG_H */
@@
-75,8
+74,7
@@
modest_tny_msg_new (const gchar* mailto, const gchar* from, const gchar *cc,
tny_header_set_subject (TNY_HEADER (header), subject);
content_type = get_content_type(body);
tny_header_set_subject (TNY_HEADER (header), subject);
content_type = get_content_type(body);
-
-
+
/* Add the body of the new mail */
add_body_part (new_msg, body, content_type, (attachments ? TRUE: FALSE));
/* Add the body of the new mail */
add_body_part (new_msg, body, content_type, (attachments ? TRUE: FALSE));
@@
-269,6
+267,8
@@
modest_tny_msg_find_body_part (TnyMsg *msg, gboolean want_html)
static gboolean
is_ascii(const gchar *s)
{
static gboolean
is_ascii(const gchar *s)
{
+ if (!s)
+ return TRUE;
while (s[0]) {
if (s[0] & 128 || s[0] < 32)
return FALSE;
while (s[0]) {
if (s[0] & 128 || s[0] < 32)
return FALSE;