Index: camel-exchange-journal.c
===================================================================
--- camel-exchange-journal.c	(revision 1485)
+++ camel-exchange-journal.c	(working copy)
@@ -302,7 +302,7 @@
 	
  done:
 	
-	camel_exchange_folder_remove_message (exchange_folder, entry->uid);
+	camel_exchange_folder_remove_message (exchange_folder, entry->uid, (CamelStore*)folder->parent_store);
 	
 	return 0;
 }
@@ -377,7 +377,7 @@
 
 	camel_message_info_free (info);
 done:
-	camel_exchange_folder_remove_message (exchange_folder, entry->uid);
+	camel_exchange_folder_remove_message (exchange_folder, entry->uid, (CamelStore*)store);
 
 	return 0;
 
@@ -562,7 +562,7 @@
 					     &real_uid, delete_original);
 	
 	if(delete_original) {
-		camel_exchange_folder_remove_message (source_folder, original_uid);
+		camel_exchange_folder_remove_message (source_folder, original_uid, (CamelStore*)((CamelFolder*)source_folder)->parent_store);
 	}
 
 	entry = g_new (CamelExchangeJournalEntry, 1);
@@ -591,7 +591,7 @@
 	CamelExchangeJournalEntry *entry;
 
 	if (set & flags & CAMEL_MESSAGE_DELETED)
-		camel_exchange_folder_remove_message (exchange_folder, uid);
+		camel_exchange_folder_remove_message (exchange_folder, uid, (CamelStore*)((CamelFolder*)exchange_folder)->parent_store);
 
 	entry = g_new0 (CamelExchangeJournalEntry, 1);
 	entry->type = CAMEL_EXCHANGE_JOURNAL_ENTRY_DELETE;
Index: camel-exchange-folder.c
===================================================================
--- camel-exchange-folder.c	(revision 1485)
+++ camel-exchange-folder.c	(working copy)
@@ -159,6 +159,7 @@
 static void
 folder_sync (CamelFolder *folder, gboolean expunge, CamelException *ex)
 {
+	printf("*************CALLING EXCHANGE FOLDER SYNC ***************\n");
 	CamelExchangeFolder *exch = CAMEL_EXCHANGE_FOLDER (folder);
 	GPtrArray *summary, *uids;
 	CamelMessageInfo *info;
@@ -197,6 +198,7 @@
 static void
 refresh_info (CamelFolder *folder, CamelException *ex)
 {
+	printf ("********************REFRESHING EXCHANGE********************  folder=%s \n", folder->name);
 	CamelExchangeFolder *exch = CAMEL_EXCHANGE_FOLDER (folder);
 	CamelExchangeStore *store = CAMEL_EXCHANGE_STORE (folder->parent_store);
 
@@ -212,6 +214,7 @@
 static void
 exchange_expunge (CamelFolder *folder, CamelException *ex)
 {
+	printf ("********************Expunging EXCHANGE******************** \n");
 	CamelExchangeFolder *exch = CAMEL_EXCHANGE_FOLDER (folder);
 	CamelFolder *trash;
 	GPtrArray *uids;
@@ -243,6 +246,7 @@
 		     const char *subject, const CamelMessageInfo *info,
 		     char **appended_uid, CamelException *ex)
 {
+	printf( "********* APPEND MESSAGES DATA to folder=%s******\n", folder->name);
 	CamelExchangeFolder *exch = CAMEL_EXCHANGE_FOLDER (folder);
 	CamelStream *stream_cache;
 	char *new_uid;
@@ -282,6 +286,7 @@
 		const CamelMessageInfo *info, char **appended_uid,
 		CamelException *ex)
 {
+	printf( "********* APPEND MESSAGES to folder=%s******\n", folder->name);
 	CamelStream *stream_mem;
 	CamelExchangeStore *store = CAMEL_EXCHANGE_STORE (folder->parent_store);
 
@@ -837,21 +842,212 @@
  **/
 void
 camel_exchange_folder_remove_message (CamelExchangeFolder *exch,
-				      const char *uid)
+				      const char *uid, CamelStore * store)
 {
 	CamelFolderSummary *summary = CAMEL_FOLDER (exch)->summary;
 	CamelFolderChangeInfo *changes;
 	CamelMessageInfo *info;
 	CamelExchangeMessageInfo *einfo;
+	GPtrArray *uids;
+	/* CamelStore *store  = (storep);   */
+	/* CamelStore *store  = CAMEL_STORE (((CamelFolder*)exch)->parent_store);  */
 
 	info = camel_folder_summary_uid (summary, uid);
 	if (!info)
 		return;
 
 	einfo = (CamelExchangeMessageInfo *)info;
+
+	/* The message which is deleted is archived message */
+/* 	if(einfo->info.flags & CAMEL_MESSAGE_ARCHIVED){ */
+/* 		printf("Archived messages moving to archived folder \n"); */
+/* 		CamelException * ex; */
+
+/* 		char * archived_folder_name = g_malloc(sizeof(char)*1000); */
+/* 		sprintf(archived_folder_name, ".Archived/%s", summary->folder->full_name);   */
+/* 		/\* 		/\\* CamelFolder *new_folder = (CamelFolder *)camel_object_new (CAMEL_EXCHANGE_FOLDER_TYPE); *\\/ *\/ */
+		
+		
+/* 		/\* sprintf(dest_folder_uri, "exchange://expert.com\\kharish@164.99.168.137/.Archived/%s", summary->folder->full_name); *\/ */
+/* 		/\* printf(" FOLDER ARCHIVED PATH for exchange URI =%s\n", summary->folder->full_name);  *\/ */
+		
+/* 		/\* CamelExchangeFolder *exch = CAMEL_EXCHANGE_FOLDER (exch); *\/  */
+/* 		/\* 		char * folder_dir = exchange_path_to_physical (((CamelExchangeStore *)summary->folder->parent_store)->storage_path, archived_folder_name); *\/ */
+/* 		printf(" FOLDER ARCHIVED PATH for exchange = %s\n", archived_folder_name);     */
+		
+/* 		CamelFolder * folder; */
+/* 		char * folder_dir; */
+/* 		if(store){ */
+/* 			folder_dir = exchange_path_to_physical (((CamelExchangeStore*)store)->storage_path, archived_folder_name); */
+/* 			printf(" STORE FOUND FOLDER DIR for exchange = %s\n", folder_dir);     */
+/* 		} */
+		
+/* 		if (exch->stub) { */
+/* 			const char *short_name; */
+/* 			char *summary_file, *journal_file, *path; */
+/* 			GPtrArray *summary_loc, *uids, *hrefs; */
+/* 			GByteArray *flags; */
+/* 			guint32 folder_flags; */
+/* 			CamelMessageInfo *info; */
+/* 			CamelExchangeMessageInfo *einfo; */
+/* 			int i, len = 0; */
+			
+/* 			folder = (CamelFolder *)camel_object_new (CAMEL_EXCHANGE_FOLDER_TYPE); */
+/* 			if(folder) */
+/* 				printf(" GOT DEST FOLDER ARCHIVED PATH for exchange = %s\n", archived_folder_name);     */
+			
+/* 			short_name = strrchr (archived_folder_name, '/'); */
+/* 			if (!short_name++) */
+/* 				short_name = archived_folder_name; */
+/* 			camel_folder_construct (folder, store, archived_folder_name, short_name); */
+			
+/* 			if (g_mkdir_with_parents (folder_dir, S_IRWXU) != 0) { */
+/* 				camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, */
+/* 						      _("Could not create directory %s: %s"), */
+/* 						      folder_dir, g_strerror (errno)); */
+				
+/* 			} */
+			
+/* 			summary_file = g_strdup_printf ("%s/summary", folder_dir); */
+/* 			folder->summary = camel_exchange_summary_new (folder, summary_file); */
+/* 			g_free (summary_file); */
+/* 			if (!folder->summary) { */
+/* 				camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, */
+/* 						      _("Could not load summary for %s"), */
+/* 						      archived_folder_name); */
+				
+/* 			} */
+			
+/* 			exch->cache = camel_data_cache_new (folder_dir, 0, ex); */
+/* 			if (!exch->cache) { */
+/* 				camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, */
+/* 						      _("Could not create cache for %s"), */
+/* 						      archived_folder_name); */
+				
+/* 			} */
+			
+/* 			journal_file = g_strdup_printf ("%s/journal", folder_dir); */
+/* 			exch->journal = camel_exchange_journal_new (exch, journal_file); */
+/* 			g_free (journal_file); */
+/* 			if (!exch->journal) { */
+/* 				camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, */
+/* 						      _("Could not create journal for %s"), */
+/* 						      archived_folder_name); */
+/* 			} */
+			
+/* 			path = g_build_filename (folder_dir, "cmeta", NULL); */
+/* 			camel_object_set (folder, NULL, CAMEL_OBJECT_STATE_FILE, path, NULL); */
+/* 			g_free (path); */
+/* 			camel_object_state_read (folder); */
+			
+/* 			exch->thread_index_to_message_id = */
+/* 				g_hash_table_new (g_str_hash, g_str_equal); */
+			
+/* 			len = camel_folder_summary_count (folder->summary); */
+/* 			for (i = 0; i < len; i++) { */
+/* 				info = camel_folder_summary_index (folder->summary, i); */
+/* 				einfo = (CamelExchangeMessageInfo *)info; */
+				
+/* 				if (einfo->thread_index && einfo->info.message_id.id.id) { */
+/* 					g_hash_table_insert (exch->thread_index_to_message_id, */
+/* 							     g_strdup (einfo->thread_index), */
+/* 							     g_memdup (&einfo->info.message_id, sizeof (CamelSummaryMessageID))); */
+/* 				} */
+				
+/* 				camel_message_info_free(info); */
+/* 			} */
+			
+/* 			/\* 			GPtrArray *summary, *uids, *hrefs; *\/ */
+/* 			/\* 			GByteArray *flags; *\/ */
+/* 			/\* 			guint32 folder_flags; *\/ */
+/* 			gboolean ok, create = CAMEL_STORE_FOLDER_CREATE;  */
+/* 			/\* 			int i, len; *\/ */
+			
+			
+/* 			/\* 			char * summary_file = g_strdup_printf ("%s/summary", folder_dir); *\/ */
+/* 			/\* 			dest_folder->summary = camel_exchange_summary_new (dest_folder, summary_file); *\/ */
+/* 			/\* 			g_free (summary_file); *\/ */
+			
+/* 			summary_loc = camel_folder_get_summary (folder); */
+/* 			uids = g_ptr_array_new (); */
+/* 			g_ptr_array_set_size (uids, summary_loc->len); */
+/* 			flags = g_byte_array_new (); */
+/* 			g_byte_array_set_size (flags, summary_loc->len); */
+/* 			hrefs = g_ptr_array_new (); */
+/* 			g_ptr_array_set_size (hrefs, summary_loc->len); */
+			
+/* 			for (i = 0; i < summary_loc->len; i++) { */
+/* 				info = summary_loc->pdata[i]; */
+/* 				uids->pdata[i] = (char *)camel_message_info_uid (info); */
+/* 				flags->data[i] = ((CamelMessageInfoBase *)info)->flags & CAMEL_EXCHANGE_SERVER_FLAGS; */
+/* 				hrefs->pdata[i] = ((CamelExchangeMessageInfo *)info)->href; */
+/* 				//camel_tag_list_free (&((CamelMessageInfoBase *)info)->user_tags); */
+/* 			} */
+			
+/* 			camel_operation_start (NULL, _("Getting the folder from exhange.")); */
+/* 			ok = camel_stub_send (((CamelExchangeFolder*)store)->stub, ex, CAMEL_STUB_CMD_GET_FOLDER, */
+/* 					      CAMEL_STUB_ARG_FOLDER, archived_folder_name, */
+/* 					      CAMEL_STUB_ARG_UINT32, create, */
+/* 					      CAMEL_STUB_ARG_STRINGARRAY, uids, */
+/* 					      CAMEL_STUB_ARG_BYTEARRAY, flags, */
+/* 					      CAMEL_STUB_ARG_STRINGARRAY, hrefs, */
+/* 					      CAMEL_STUB_ARG_UINT32, CAMEL_EXCHANGE_SUMMARY(folder->summary)->high_article_num, */
+/* 					      CAMEL_STUB_ARG_RETURN, */
+/* 					      CAMEL_STUB_ARG_UINT32, &folder_flags, */
+/* 					      CAMEL_STUB_ARG_STRING, &exch->source, */
+/* 					      CAMEL_STUB_ARG_END); */
+/* 			camel_operation_end (NULL); */
+/* 			g_ptr_array_free (uids, TRUE); */
+/* 			g_byte_array_free (flags, TRUE); */
+/* 			g_ptr_array_free (hrefs, TRUE); */
+/* 			camel_folder_free_summary (folder, summary_loc); */
+			
+/* 			if (folder_flags & CAMEL_STUB_FOLDER_FILTER) */
+/* 				folder->folder_flags |= CAMEL_FOLDER_FILTER_RECENT; */
+/* 			if (folder_flags & CAMEL_STUB_FOLDER_FILTER_JUNK) */
+/* 				folder->folder_flags |= CAMEL_FOLDER_FILTER_JUNK; */
+			
+/* 			/\* camel_exchange_summary_set_readonly (new_folder->summary, folder_flags & CAMEL_STUB_FOLDER_READONLY); *\/ */
+			
+/* 			/\* if (offline_state == CAMEL_OFFLINE_STORE_NETWORK_UNAVAIL ) *\/ */
+/* 			/\*return TRUE; *\/ */
+/* 			camel_operation_start (NULL, _("Fetching summary information for new messages")); */
+/* 			ok = camel_stub_send (((CamelExchangeFolder*)store)->stub, ex, CAMEL_STUB_CMD_REFRESH_FOLDER, */
+/* 					      CAMEL_STUB_ARG_FOLDER, folder->full_name, */
+/* 					      CAMEL_STUB_ARG_END); */
+/* 			camel_operation_end (NULL); */
+/* 			/\* 			if (!ok) *\/ */
+/* 			/\* 				return FALSE; *\/ */
+/* 			camel_folder_summary_save (folder->summary); */
+/* 			printf(" *********** GOT IT **********\n"); */
+/* 		} */
+
+/* 		/\* 		char * dest_folder_uri = g_malloc(sizeof(char)*1000); *\/ */
+/* 		uids = g_ptr_array_new (); */
+/* 		g_ptr_array_add (uids, (void*)uid); */
+
+/* 		/\* Moveing message to the archived folder now.. *\/ */
+/* 		transfer_messages_the_hard_way (exch, uids, folder, NULL, 0, ex);      */
+		
+/* 		/\* 			 if(camel_exchange_folder_construct (dest_folder, store, *\/ */
+/* 		/\* 							     archived_folder_name, 0, *\/ */
+/* 		/\* 							     folder_dir, 0, *\/ */
+/* 		/\* 							     exch->stub, ex)){ *\/ */
+/* 		/\* 				 printf("\n\n***************GOT FOLDER FROM EXAHAGE************* = %s\n\n", archived_folder_name);     *\/ */
+/* 		/\* 				 g_mutex_lock (((CamelExchangeStore*)store)->folders_lock); *\/ */
+/* 		/\* 				 g_hash_table_insert (((CamelExchangeStore*)store)->folders, g_strdup (archived_folder_name), dest_folder); *\/ */
+/* 		/\* 				 g_mutex_unlock (((CamelExchangeStore*)store)->folders_lock); *\/ */
+/* 		/\* 		dest = exchange_get_folder (store, dest_folder_uri, ex) ; *\/ */
+		
+/* 		/\* 		/\\* Transfering archived messages for exchange *\\/ *\/ */
+/* 		/\* 		/\\* Note that no need to delete originals as *\/ */
+/* 		/\* 		   the following code is deleting those messages *\\/ *\/ */
+/* 		/\* 	} *\/ */
+/* 	} */
+	
 	if (einfo->thread_index) {
 		gpointer key, value;
-
+		
 		if (g_hash_table_lookup_extended (exch->thread_index_to_message_id,
 						  einfo->thread_index,
 						  &key, &value)) {
@@ -860,11 +1056,11 @@
 			g_free (value);
 		}
 	}
-
+	
 	camel_folder_summary_remove (summary, info);
 	camel_message_info_free (info);
 	camel_data_cache_remove (exch->cache, "cache", uid, NULL);
-
+	
 	changes = camel_folder_change_info_new ();
 	camel_folder_change_info_remove_uid (changes, uid);
 	camel_object_trigger_event (CAMEL_OBJECT (exch), "folder_changed",
@@ -1164,8 +1360,10 @@
 static void 
 exchange_sync (CamelFolder *folder, gboolean expunge, CamelException *ex)
 {
-	if (expunge)
+	printf ("***********************Calling EXCHANGE SYNC******************* folder=%s\n", folder->name);
+	if (expunge){
 		exchange_expunge (folder, ex);
-	
-	camel_folder_summary_save (folder->summary);
+		
+		camel_folder_summary_save (folder->summary);
+	}
 }
Index: camel-exchange-folder.h
===================================================================
--- camel-exchange-folder.h	(revision 1485)
+++ camel-exchange-folder.h	(working copy)
@@ -62,7 +62,8 @@
 						     const char *href);
 
 void     camel_exchange_folder_remove_message       (CamelExchangeFolder *exch,
-						     const char *uid);
+						     const char *uid,
+						     CamelStore *store);
 
 void     camel_exchange_folder_uncache_message      (CamelExchangeFolder *exch,
 						     const char *uid);
Index: camel-exchange-store.c
===================================================================
--- camel-exchange-store.c	(revision 1485)
+++ camel-exchange-store.c	(working copy)
@@ -51,7 +51,11 @@
 static char  *get_name         (CamelService *service, gboolean brief);
 static CamelFolder     *get_trash       (CamelStore *store,
 					 CamelException *ex);
+/* For archiving */
+static CamelFolder *exchange_get_archived(CamelStore *store,CamelException *ex);
+static CamelFolder *exchange_get_archived_real_folder(CamelStore *store, char * archived_folder_name, CamelException *ex);
 
+
 char * exchange_path_to_physical (const char *prefix, const char *vpath);
 static gboolean exchange_connect (CamelService *service, CamelException *ex);
 static gboolean exchange_disconnect (CamelService *service, gboolean clean, CamelException *ex);
@@ -102,6 +106,8 @@
 	camel_service_class->disconnect = exchange_disconnect;
 	
 	camel_store_class->get_trash = get_trash;
+	camel_store_class->get_archived = exchange_get_archived;
+	camel_store_class->get_archived_real_folder = exchange_get_archived_real_folder;
 	camel_store_class->free_folder_info = camel_store_free_folder_info_full;
 	camel_store_class->get_folder = exchange_get_folder;
 	camel_store_class->get_folder_info = exchange_get_folder_info;
@@ -124,6 +130,8 @@
 
 	store->flags |= CAMEL_STORE_SUBSCRIPTIONS;
 	store->flags &= ~(CAMEL_STORE_VTRASH | CAMEL_STORE_VJUNK);
+	/* Setting it for archiving */
+	store->flags |= CAMEL_STORE_VARCHIVED;
 
 	exch->connect_lock = g_mutex_new ();
 }
@@ -291,6 +299,25 @@
 		CAMEL_STORE (service)->flags |= CAMEL_STORE_VJUNK;
 	
 	exch->stub = NULL;
+
+	/* Lucky : Setting Exchange for showing virtual archived folder */
+	CAMEL_STORE (service)->flags |= CAMEL_STORE_VARCHIVED;
+
+	/* Setting up the physical archived folder */
+	char * archived_folder_name = ".Archived";
+	char * folder_dir = exchange_path_to_physical (exch->storage_path, archived_folder_name);
+	CamelFolder *new_folder = (CamelFolder *)camel_object_new (CAMEL_EXCHANGE_FOLDER_TYPE);
+
+	if(camel_exchange_folder_construct (new_folder, exch, archived_folder_name, 0, folder_dir, ((CamelOfflineStore *) exch)->state, exch->stub, ex))
+		printf(" EXCHAGE CREATED .ARCHIVED FOLDER \n");
+	if(new_folder)
+		printf(" EXCHAGE CREATED .ARCHIVED FOLDER New \n");
+	/* CamelFolder *new_inbox_folder = (CamelFolder *)camel_object_new (CAMEL_EXCHANGE_FOLDER_TYPE); */
+	/* Creating inbox folder by default */
+	/* 	archived_folder_name = g_strdup(".Archived/Inbox"); */
+	/* 	folder_dir = exchange_path_to_physical (exch->storage_path, archived_folder_name); */
+	/* 	if(camel_exchange_folder_construct (new_inbox_folder, exch, archived_folder_name, 0, folder_dir, ((CamelOfflineStore *) exch)->state, exch->stub, ex)) */
+	/* 		printf(" EXCHAGE CREATED .ARCHIVED INBOX FOLDER. \n"); */
 }
 
 extern CamelServiceAuthType camel_exchange_password_authtype;
@@ -477,6 +504,8 @@
 	CamelFolder *folder;
 	char *folder_dir;
 	
+	printf(" ******************* EXCHANGE FOLDER NAME=%s\n", folder_name);
+ 
 	RETURN_VAL_IF_NOT_CONNECTED (exch, ex, NULL);
 
 	folder_dir = exchange_path_to_physical (exch->storage_path, folder_name);
@@ -607,6 +636,48 @@
 	return camel_store_get_folder (store, exch->trash_name, 0, ex);
 }
 
+/* Lucky : Implementing get_archived  (for virtual archived folder ) */
+static CamelFolder *
+exchange_get_archived (CamelStore *store, CamelException *ex)
+{
+	CamelFolder *folder = CAMEL_STORE_CLASS(parent_class)->get_archived(store, ex);
+
+	if (folder) {
+		char *state = g_build_filename(((CamelExchangeStore *)store)->storage_path, "system", "Archived.cmeta", NULL);
+
+		camel_object_set(folder, NULL, CAMEL_OBJECT_STATE_FILE, state, NULL);
+		g_free(state);
+		/* no defaults? */
+		camel_object_state_read(folder);
+	}
+
+	return folder;
+}
+
+/* Lucky: Implementing get_real_archived  (for real/physical archived folder ) */
+static CamelFolder *
+exchange_get_archived_real_folder (CamelStore *store, char * archived_folder_name, CamelException *ex)
+{
+	CamelExchangeStore *exchange_store = CAMEL_EXCHANGE_STORE (store);
+	CamelFolder *folder = (CamelFolder *)camel_object_new (CAMEL_EXCHANGE_FOLDER_TYPE);
+	int i=0;
+
+	if(exchange_store->stub)
+		printf("***************STUB present here in**************\n");
+	
+	char * folder_dir = exchange_path_to_physical (exchange_store->storage_path, archived_folder_name);
+	printf(" ARCHIVED FOLDER Name %s in dir=%s\n", archived_folder_name, folder_dir);
+	if(camel_exchange_folder_construct (folder, exchange_store, archived_folder_name, 0, folder_dir, ((CamelOfflineStore *) store)->state, exchange_store->stub, ex)){
+		if(folder) 
+			printf("Archived real Folder created in EXCHANGE .... \n");
+		g_free (folder_dir);
+		return folder;
+	}
+	
+	g_free (folder_dir);
+	return NULL;
+}
+
 /* Note: steals @name and @uri */
 static CamelFolderInfo *
 make_folder_info (CamelExchangeStore *exch, char *name, char *uri,
@@ -889,7 +960,9 @@
 		g_mutex_unlock (exch->folders_lock);
 		if (folder && (info = camel_folder_summary_uid (((CamelFolder *)folder)->summary, uid))) {
 			camel_message_info_free (info);
-			camel_exchange_folder_remove_message (folder, uid);
+			/* ((CamelFolder *) folder)->parent_store = exch; */
+			printf(" REMOVING MESSAGES UID=%s from FOLDER =%s\n", uid, folder_name);
+			camel_exchange_folder_remove_message (folder, (CamelStore *) exch, uid);
 		}
 
 		g_free (folder_name);
@@ -1131,6 +1204,7 @@
 		g_mutex_unlock (exch->folders_lock);
 		if (folder) {
 			camel_exchange_summary_set_article_num (folder->summary, high_article_num);
+			/* printf ("SETTING ARTICLE NUMBNER = %s %d\n",folder->name, high_article_num ); */
 		}
 
 		g_free (folder_name);
Index: camel-exchange-summary.c
===================================================================
--- camel-exchange-summary.c	(revision 1485)
+++ camel-exchange-summary.c	(working copy)
@@ -303,6 +303,8 @@
 static gboolean
 info_set_flags(CamelMessageInfo *info, guint32 flags, guint32 set)
 {
+	if( flags & CAMEL_MESSAGE_ARCHIVED)
+		printf("\n\n\n************SETTINGS ARCHIVED FLAGS**************\n\n\n\n");
 	CamelFolder *folder = (CamelFolder *) info->summary->folder;
 	CamelOfflineStore *store = (CamelOfflineStore *) folder->parent_store;
 
