#include <tny-simple-list.h>
#include <tny-folder-monitor.h>
#include <tny-folder-change.h>
+#include <tny-merge-folder.h>
#include <tny-error.h>
#include <string.h>
priv = MODEST_HEADER_VIEW_GET_PRIVATE (user_data);
- if (priv->folder) {
- TnyAccount *my_account;
+ if (priv->folder && !TNY_IS_MERGE_FOLDER (priv->folder)) {
+ TnyAccount *my_account = NULL;
my_account = tny_folder_get_account (priv->folder);
if (my_account == account)