/* note: match MARK_AMP_URI_STR as well, because after txt->html, a '&' will look like $(MARK_AMP_URI_STR)"amp;" */
#define MAIL_VIEWER_URL_MATCH_PATTERNS { \
- { "(file|rtsp|http|ftp|https|mms|mmsh|webcal|feed|rtsp|rdp|lastfm)://[-a-z0-9_$.+!*(),;:@%=?/~#" MARK_AMP_URI_STR \
+ { "(feed:|)(file|rtsp|http|ftp|https|mms|mmsh|webcal|feed|rtsp|rdp|lastfm|sip)://[-a-z0-9_$.+!*(),;:@%=?/~#" MARK_AMP_URI_STR \
"]+[-a-z0-9_$%" MARK_AMP_URI_STR "=?/~#]", \
NULL, NULL },\
{ "www\\.[-a-z0-9_$.+!*(),;:@%=?/~#" MARK_AMP_URI_STR "]+[-a-z0-9_$%" MARK_AMP_URI_STR "=?/~#]",\
garbage in the s variable */
if (s)
s[0] = '\0';
+ else
+ return 0;
/* does not work on old maemo glib:
* g_date_set_time_t (&date, timet);
}
quote_html_add_to_gstring (result_string, cite);
quoted_text = g_string_new ("");
- quoted_text = modest_text_utils_quote_body (quoted_text, text, ">", limit);
+ quoted_text = modest_text_utils_quote_body (quoted_text, (text) ? text : "", ">", limit);
quote_html_add_to_gstring (result_string, quoted_text->str);
g_string_free (quoted_text, TRUE);
if (attachments) {