Revision 919 src/main.c

main.c (revision 919)
561 561
	MainWindow *mainwin;
562 562
	gchar *filename;
563 563
	static gboolean on_exit = FALSE;
564
	GList *cur;
564 565

  
565 566
	if (on_exit)
566 567
		return;
......
597 598
		main_window_empty_trash(mainwin,
598 599
					!force && prefs_common.ask_on_clean);
599 600

  
601
	for (cur = account_get_list(); cur != NULL; cur = cur->next) {
602
		PrefsAccount *ac = (PrefsAccount *)cur->data;
603
		if (ac->protocol == A_IMAP4 && ac->imap_clear_cache_on_exit &&
604
		    ac->folder)
605
			procmsg_remove_all_cached_messages(FOLDER(ac->folder));
606
	}
607

  
600 608
	/* save all state before exiting */
601 609
	folder_write_list();
602 610
	summary_write_cache(mainwin->summaryview);

Also available in: Unified diff