diff --git a/src/misc.c b/src/misc.c
index 3228d7a..513f0b9 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -31,6 +31,7 @@
 #include <camel/camel-mime-utils.h>
 #endif
 
+#include <mail/e-mail-reader-utils.h>
 
 #include "rss.h"
 #include "parser.h"
@@ -683,3 +684,9 @@ textcb(NetStatusType status, gpointer statusdata, gpointer data)
 
 #endif
 
+gchar *
+rss_component_peek_base_directory(void)
+{
+	return g_strdup_printf("%s" G_DIR_SEPARATOR_S "rss",
+		mail_session_get_data_dir ());
+}
diff --git a/src/misc.h b/src/misc.h
index 3503513..965b6f9 100644
--- a/src/misc.h
+++ b/src/misc.h
@@ -53,5 +53,6 @@ void write_feed_status_line(gchar *file, gchar *needle);
 void dup_auth_data(gchar *origurl, gchar *url);
 void sanitize_path_separator(gchar *);
 void textcb(NetStatusType status, gpointer statusdata, gpointer data);
+gchar *rss_component_peek_base_directory(void);
 
 #endif
diff --git a/src/rss-formatter.c b/src/rss-formatter.c
index fda3488..a118ff3 100644
--- a/src/rss-formatter.c
+++ b/src/rss-formatter.c
@@ -172,11 +172,3 @@ rss_get_display(void)
 	reader = E_MAIL_READER (shell_content);
 	return e_mail_reader_get_mail_display (reader);
 }
-
-gchar *
-rss_component_peek_base_directory(void)
-{
-	return g_strdup_printf("%s" G_DIR_SEPARATOR_S "rss",
-		mail_session_get_data_dir ());
-}
-
diff --git a/src/rss-formatter.h b/src/rss-formatter.h
index 6a2fcf3..2884072 100644
--- a/src/rss-formatter.h
+++ b/src/rss-formatter.h
@@ -28,7 +28,6 @@ gchar *rss_process_feed(gchar *feed, guint len);
 gchar *rss_process_website(gchar *content, gchar *website);
 gboolean rss_get_current_view(void);
 void rss_set_current_view(gboolean value);
-gchar *rss_component_peek_base_directory(void);
 gboolean rss_get_changed_view(void);
 void rss_set_changed_view(gboolean value);
 gboolean rss_get_is_html(gchar *feedid);
