Do ignore empty recipients when checking names
[modest] / src / modest-stream-text-to-html.c
index c99ff95..bd43e00 100644 (file)
@@ -38,8 +38,8 @@
 #define HTML_PREFIX "<html><head>" \
        "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf8\">" \
        "</head>" \
-       "<body>"
-#define HTML_SUFFIX "</body></html>"
+       "<body><p>"
+#define HTML_SUFFIX "</p></body></html>"
 
 
 /* 'private'/'protected' functions */
@@ -183,6 +183,16 @@ modest_stream_text_to_html_set_full_limit (ModestStreamTextToHtml *self, gssize
        priv->full_limit = limit;
 }
 
+gboolean
+modest_stream_text_to_html_limit_reached (ModestStreamTextToHtml *self)
+{
+       ModestStreamTextToHtmlPrivate *priv = MODEST_STREAM_TEXT_TO_HTML_GET_PRIVATE (self);
+
+       return (priv->full_limit > 0 && priv->total_output > priv->full_limit) ||
+               (priv->line_limit > 0 && priv->total_lines_output > priv->line_limit);
+       
+}
+
 /* the rest are interface functions */