#include <glib/gi18n.h>
#include <regex.h>
#include <modest-tny-platform-factory.h>
-#include "modest-text-utils.h"
+#include <modest-text-utils.h>
+#include <modest-runtime.h>
#ifdef HAVE_CONFIG_H
{
gchar *tmp, *retval;
+ g_return_val_if_fail (text, NULL);
+ g_return_val_if_fail (content_type, NULL);
+ g_return_val_if_fail (from, NULL);
+
tmp = cite (sent_date, from);
retval = g_strdup_printf ("%s%s\n", tmp, text);
g_free (tmp);
g_return_val_if_fail (from, NULL);
g_return_val_if_fail (text, NULL);
g_return_val_if_fail (to, NULL);
- g_return_val_if_fail (subject, NULL);
modest_text_utils_strftime (sent_str, 100, "%c", sent_date);
} else {
do {
breakpoint =
- get_breakpoint (remaining-> str,
+ get_breakpoint (remaining->str,
rem_indent,
limit);
append_quoted (q, rem_indent,
static GHashTable*
get_display_date_cache (void)
{
- TnyPlatformFactory *fakt;
- ModestCacheMgr *cache_mgr;
-
- fakt = modest_tny_platform_factory_get_instance ();
-
- cache_mgr = modest_tny_platform_factory_get_cache_mgr_instance
- (MODEST_TNY_PLATFORM_FACTORY(fakt));
-
- return modest_cache_mgr_get_cache (cache_mgr,
+ return modest_cache_mgr_get_cache (modest_runtime_get_cache_mgr (),
MODEST_CACHE_MGR_CACHE_TYPE_DATE_STRING);
}