2004-04-26 18:06:48 +02:00
|
|
|
/*
|
|
|
|
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
|
|
|
* Copyright (C) 1999-2004 Hiroyuki Yamamoto & the Sylpheed-Claws Team
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2005-09-21 20:22:51 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2004-04-26 18:06:48 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "defs.h"
|
|
|
|
|
|
|
|
#include <glib.h>
|
2005-02-10 13:06:07 +01:00
|
|
|
#include <glib/gi18n.h>
|
2004-04-26 18:06:48 +02:00
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
2005-06-02 05:06:27 +02:00
|
|
|
#include <time.h>
|
2004-04-26 18:06:48 +02:00
|
|
|
|
|
|
|
#include "utils.h"
|
|
|
|
#include "folder.h"
|
|
|
|
#include "folderview.h"
|
|
|
|
#include "menu.h"
|
|
|
|
#include "account.h"
|
|
|
|
#include "alertpanel.h"
|
|
|
|
#include "foldersel.h"
|
|
|
|
#include "inputdialog.h"
|
|
|
|
#include "imap.h"
|
|
|
|
#include "inc.h"
|
2005-06-02 05:06:27 +02:00
|
|
|
#include "prefs_common.h"
|
2005-06-16 21:59:41 +02:00
|
|
|
#include "summaryview.h"
|
2004-04-26 18:06:48 +02:00
|
|
|
|
|
|
|
static void new_folder_cb(FolderView *folderview, guint action, GtkWidget *widget);
|
|
|
|
static void rename_folder_cb(FolderView *folderview, guint action, GtkWidget *widget);
|
|
|
|
static void move_folder_cb(FolderView *folderview, guint action, GtkWidget *widget);
|
2005-01-04 15:15:27 +01:00
|
|
|
static void imap_settings_cb(FolderView *folderview, guint action, GtkWidget *widget);
|
2004-04-26 18:06:48 +02:00
|
|
|
static void remove_server_cb(FolderView *folderview, guint action, GtkWidget *widget);
|
|
|
|
static void delete_folder_cb(FolderView *folderview, guint action, GtkWidget *widget);
|
|
|
|
static void update_tree_cb(FolderView *folderview, guint action, GtkWidget *widget);
|
|
|
|
static void download_cb(FolderView *folderview, guint action, GtkWidget *widget);
|
2005-09-08 20:28:36 +02:00
|
|
|
static void sync_cb(FolderView *folderview, guint action, GtkWidget *widget);
|
2004-04-26 18:06:48 +02:00
|
|
|
|
|
|
|
static GtkItemFactoryEntry imap_popup_entries[] =
|
|
|
|
{
|
|
|
|
{N_("/Create _new folder..."), NULL, new_folder_cb, 0, NULL},
|
|
|
|
{N_("/_Rename folder..."), NULL, rename_folder_cb, 0, NULL},
|
|
|
|
{N_("/M_ove folder..."), NULL, move_folder_cb, 0, NULL},
|
|
|
|
{N_("/_Delete folder"), NULL, delete_folder_cb, 0, NULL},
|
|
|
|
{N_("/---"), NULL, NULL, 0, "<Separator>"},
|
2005-09-08 20:28:36 +02:00
|
|
|
{N_("/Synchronise"), NULL, sync_cb, 0, NULL},
|
2004-04-26 18:06:48 +02:00
|
|
|
{N_("/Down_load messages"), NULL, download_cb, 0, NULL},
|
|
|
|
{N_("/---"), NULL, NULL, 0, "<Separator>"},
|
|
|
|
{N_("/_Check for new messages"), NULL, update_tree_cb, 0, NULL},
|
|
|
|
{N_("/R_ebuild folder tree"), NULL, update_tree_cb, 1, NULL},
|
|
|
|
{N_("/---"), NULL, NULL, 0, "<Separator>"},
|
2005-01-04 15:15:27 +01:00
|
|
|
{N_("/IMAP4 _account settings"), NULL, imap_settings_cb, 0, NULL},
|
2004-04-26 18:06:48 +02:00
|
|
|
{N_("/Remove _IMAP4 account"), NULL, remove_server_cb, 0, NULL},
|
|
|
|
{N_("/---"), NULL, NULL, 0, "<Separator>"},
|
|
|
|
};
|
|
|
|
|
|
|
|
static void set_sensitivity(GtkItemFactory *factory, FolderItem *item);
|
|
|
|
|
|
|
|
static FolderViewPopup imap_popup =
|
|
|
|
{
|
|
|
|
"imap",
|
|
|
|
"<IMAPFolder>",
|
|
|
|
NULL,
|
|
|
|
set_sensitivity
|
|
|
|
};
|
|
|
|
|
|
|
|
void imap_gtk_init(void)
|
|
|
|
{
|
|
|
|
guint i, n_entries;
|
|
|
|
|
|
|
|
n_entries = sizeof(imap_popup_entries) /
|
|
|
|
sizeof(imap_popup_entries[0]);
|
|
|
|
for (i = 0; i < n_entries; i++)
|
|
|
|
imap_popup.entries = g_slist_append(imap_popup.entries, &imap_popup_entries[i]);
|
|
|
|
|
|
|
|
folderview_register_popup(&imap_popup);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void set_sensitivity(GtkItemFactory *factory, FolderItem *item)
|
|
|
|
{
|
2005-08-10 08:20:49 +02:00
|
|
|
gboolean folder_is_normal =
|
|
|
|
item != NULL &&
|
|
|
|
item->stype == F_NORMAL &&
|
|
|
|
!folder_has_parent_of_type(item, F_OUTBOX) &&
|
|
|
|
!folder_has_parent_of_type(item, F_DRAFT) &&
|
|
|
|
!folder_has_parent_of_type(item, F_QUEUE) &&
|
|
|
|
!folder_has_parent_of_type(item, F_TRASH);
|
2004-04-26 18:06:48 +02:00
|
|
|
#define SET_SENS(name, sens) \
|
|
|
|
menu_set_sensitive(factory, name, sens)
|
|
|
|
|
|
|
|
SET_SENS("/Create new folder...", TRUE);
|
|
|
|
SET_SENS("/Rename folder...", item->stype == F_NORMAL && folder_item_parent(item) != NULL);
|
2005-08-10 08:20:49 +02:00
|
|
|
SET_SENS("/Move folder...", folder_is_normal && folder_item_parent(item) != NULL);
|
2004-04-26 18:06:48 +02:00
|
|
|
SET_SENS("/Delete folder", item->stype == F_NORMAL && folder_item_parent(item) != NULL);
|
|
|
|
|
|
|
|
SET_SENS("/Check for new messages", folder_item_parent(item) == NULL);
|
|
|
|
SET_SENS("/Rebuild folder tree", folder_item_parent(item) == NULL);
|
|
|
|
|
|
|
|
SET_SENS("/Remove IMAP4 account", folder_item_parent(item) == NULL);
|
|
|
|
|
|
|
|
#undef SET_SENS
|
|
|
|
}
|
|
|
|
|
|
|
|
static void new_folder_cb(FolderView *folderview, guint action,
|
|
|
|
GtkWidget *widget)
|
|
|
|
{
|
|
|
|
GtkCTree *ctree = GTK_CTREE(folderview->ctree);
|
|
|
|
FolderItem *item;
|
|
|
|
FolderItem *new_item;
|
|
|
|
gchar *new_folder;
|
|
|
|
gchar *name;
|
|
|
|
gchar *p;
|
|
|
|
|
|
|
|
if (!folderview->selected) return;
|
|
|
|
|
|
|
|
item = gtk_ctree_node_get_row_data(ctree, folderview->selected);
|
|
|
|
g_return_if_fail(item != NULL);
|
|
|
|
g_return_if_fail(item->folder != NULL);
|
|
|
|
g_return_if_fail(item->folder->account != NULL);
|
|
|
|
|
|
|
|
new_folder = input_dialog
|
|
|
|
(_("New folder"),
|
|
|
|
_("Input the name of new folder:\n"
|
|
|
|
"(if you want to create a folder to store subfolders,\n"
|
2005-07-17 09:30:07 +02:00
|
|
|
" append '/' at the end of the name)"),
|
2004-04-26 18:06:48 +02:00
|
|
|
_("NewFolder"));
|
|
|
|
if (!new_folder) return;
|
|
|
|
AUTORELEASE_STR(new_folder, {g_free(new_folder); return;});
|
|
|
|
|
|
|
|
p = strchr(new_folder, G_DIR_SEPARATOR);
|
|
|
|
if (p && *(p + 1) != '\0') {
|
2005-07-17 09:30:07 +02:00
|
|
|
alertpanel_error(_("'%c' can't be included in folder name."),
|
2004-04-26 18:06:48 +02:00
|
|
|
G_DIR_SEPARATOR);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
name = trim_string(new_folder, 32);
|
|
|
|
AUTORELEASE_STR(name, {g_free(name); return;});
|
|
|
|
|
|
|
|
/* find whether the directory already exists */
|
|
|
|
if (folder_find_child_item_by_name(item, new_folder)) {
|
2005-07-17 09:30:07 +02:00
|
|
|
alertpanel_error(_("The folder '%s' already exists."), name);
|
2004-04-26 18:06:48 +02:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
new_item = folder_create_folder(item, new_folder);
|
|
|
|
if (!new_item) {
|
2005-07-17 09:30:07 +02:00
|
|
|
alertpanel_error(_("Can't create the folder '%s'."), name);
|
2004-04-26 18:06:48 +02:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
folder_write_list();
|
|
|
|
}
|
|
|
|
|
|
|
|
static void rename_folder_cb(FolderView *folderview, guint action,
|
|
|
|
GtkWidget *widget)
|
|
|
|
{
|
|
|
|
FolderItem *item;
|
|
|
|
gchar *new_folder;
|
|
|
|
gchar *name;
|
|
|
|
gchar *message;
|
|
|
|
gchar *old_path;
|
|
|
|
gchar *old_id;
|
|
|
|
gchar *new_id;
|
2004-11-13 14:28:35 +01:00
|
|
|
gchar *base;
|
2004-04-26 18:06:48 +02:00
|
|
|
|
2004-11-12 07:41:50 +01:00
|
|
|
item = folderview_get_selected_item(folderview);
|
2004-04-26 18:06:48 +02:00
|
|
|
g_return_if_fail(item != NULL);
|
|
|
|
g_return_if_fail(item->path != NULL);
|
|
|
|
g_return_if_fail(item->folder != NULL);
|
|
|
|
|
|
|
|
name = trim_string(item->name, 32);
|
2005-07-17 09:30:07 +02:00
|
|
|
message = g_strdup_printf(_("Input new name for '%s':"), name);
|
2004-11-13 14:28:35 +01:00
|
|
|
base = g_path_get_basename(item->path);
|
|
|
|
new_folder = input_dialog(_("Rename folder"), message, base);
|
|
|
|
g_free(base);
|
2004-04-26 18:06:48 +02:00
|
|
|
g_free(message);
|
|
|
|
g_free(name);
|
|
|
|
if (!new_folder) return;
|
|
|
|
AUTORELEASE_STR(new_folder, {g_free(new_folder); return;});
|
|
|
|
|
|
|
|
/*
|
|
|
|
TODO: check new name for IMAP namespace separator
|
|
|
|
if (strchr(new_folder, G_DIR_SEPARATOR) != NULL) {
|
|
|
|
alertpanel_error(_("`%c' can't be included in folder name."),
|
|
|
|
G_DIR_SEPARATOR);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
if (folder_find_child_item_by_name(folder_item_parent(item), new_folder)) {
|
|
|
|
name = trim_string(new_folder, 32);
|
2005-07-17 09:30:07 +02:00
|
|
|
alertpanel_error(_("The folder '%s' already exists."), name);
|
2004-04-26 18:06:48 +02:00
|
|
|
g_free(name);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
Xstrdup_a(old_path, item->path, {g_free(new_folder); return;});
|
|
|
|
|
|
|
|
old_id = folder_item_get_identifier(item);
|
|
|
|
|
|
|
|
if (folder_item_rename(item, new_folder) < 0) {
|
|
|
|
alertpanel_error(_("The folder could not be renamed.\n"
|
|
|
|
"The new folder name is not allowed."));
|
|
|
|
g_free(old_id);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* if (FOLDER_TYPE(item->folder) == F_MH)
|
|
|
|
prefs_filtering_rename_path(old_path, item->path); */
|
|
|
|
new_id = folder_item_get_identifier(item);
|
|
|
|
prefs_filtering_rename_path(old_id, new_id);
|
|
|
|
|
|
|
|
g_free(old_id);
|
|
|
|
g_free(new_id);
|
|
|
|
|
|
|
|
folder_item_prefs_save_config(item);
|
|
|
|
folder_write_list();
|
|
|
|
}
|
|
|
|
|
|
|
|
static void move_folder_cb(FolderView *folderview, guint action, GtkWidget *widget)
|
|
|
|
{
|
|
|
|
FolderItem *from_folder = NULL, *to_folder = NULL;
|
|
|
|
|
2004-11-12 07:41:50 +01:00
|
|
|
from_folder = folderview_get_selected_item(folderview);
|
2004-04-26 18:06:48 +02:00
|
|
|
if (!from_folder || from_folder->folder->klass != imap_get_class())
|
|
|
|
return;
|
|
|
|
|
|
|
|
to_folder = foldersel_folder_sel(from_folder->folder, FOLDER_SEL_MOVE, NULL);
|
|
|
|
if (!to_folder)
|
|
|
|
return;
|
|
|
|
|
|
|
|
folderview_move_folder(folderview, from_folder, to_folder);
|
|
|
|
}
|
|
|
|
|
2005-01-04 15:15:27 +01:00
|
|
|
static void imap_settings_cb(FolderView *folderview, guint action, GtkWidget *widget)
|
|
|
|
{
|
|
|
|
FolderItem *item;
|
|
|
|
|
|
|
|
item = folderview_get_selected_item(folderview);
|
|
|
|
if (item == NULL)
|
|
|
|
return;
|
|
|
|
|
|
|
|
account_open(item->folder->account);
|
|
|
|
}
|
|
|
|
|
2004-04-26 18:06:48 +02:00
|
|
|
static void remove_server_cb(FolderView *folderview, guint action, GtkWidget *widget)
|
|
|
|
{
|
|
|
|
GtkCTree *ctree = GTK_CTREE(folderview->ctree);
|
|
|
|
FolderItem *item;
|
|
|
|
PrefsAccount *account;
|
|
|
|
gchar *name;
|
|
|
|
gchar *message;
|
|
|
|
AlertValue avalue;
|
|
|
|
|
|
|
|
if (!folderview->selected) return;
|
|
|
|
|
|
|
|
item = gtk_ctree_node_get_row_data(ctree, folderview->selected);
|
|
|
|
g_return_if_fail(item != NULL);
|
|
|
|
g_return_if_fail(item->folder != NULL);
|
|
|
|
g_return_if_fail(item->folder->account != NULL);
|
|
|
|
|
|
|
|
name = trim_string(item->folder->name, 32);
|
2005-07-17 09:30:07 +02:00
|
|
|
message = g_strdup_printf(_("Really delete IMAP4 account '%s'?"), name);
|
2005-07-17 14:14:10 +02:00
|
|
|
avalue = alertpanel_full(_("Delete IMAP4 account"), message,
|
|
|
|
GTK_STOCK_YES, GTK_STOCK_NO, NULL, FALSE,
|
|
|
|
NULL, ALERT_WARNING, G_ALERTALTERNATE);
|
2004-04-26 18:06:48 +02:00
|
|
|
g_free(message);
|
|
|
|
g_free(name);
|
|
|
|
|
|
|
|
if (avalue != G_ALERTDEFAULT) return;
|
|
|
|
|
|
|
|
if (folderview->opened == folderview->selected ||
|
|
|
|
gtk_ctree_is_ancestor(ctree,
|
|
|
|
folderview->selected,
|
|
|
|
folderview->opened)) {
|
|
|
|
summary_clear_all(folderview->summaryview);
|
|
|
|
folderview->opened = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
account = item->folder->account;
|
|
|
|
folderview_unselect(folderview);
|
|
|
|
summary_clear_all(folderview->summaryview);
|
|
|
|
folder_destroy(item->folder);
|
|
|
|
account_destroy(account);
|
|
|
|
account_set_menu();
|
|
|
|
main_window_reflect_prefs_all();
|
|
|
|
folder_write_list();
|
|
|
|
}
|
|
|
|
|
|
|
|
static void delete_folder_cb(FolderView *folderview, guint action,
|
|
|
|
GtkWidget *widget)
|
|
|
|
{
|
|
|
|
GtkCTree *ctree = GTK_CTREE(folderview->ctree);
|
|
|
|
FolderItem *item;
|
|
|
|
gchar *message, *name;
|
|
|
|
AlertValue avalue;
|
|
|
|
gchar *old_path;
|
|
|
|
gchar *old_id;
|
|
|
|
|
|
|
|
if (!folderview->selected) return;
|
|
|
|
|
|
|
|
item = gtk_ctree_node_get_row_data(ctree, folderview->selected);
|
|
|
|
g_return_if_fail(item != NULL);
|
|
|
|
g_return_if_fail(item->path != NULL);
|
|
|
|
g_return_if_fail(item->folder != NULL);
|
|
|
|
|
|
|
|
name = trim_string(item->name, 32);
|
|
|
|
AUTORELEASE_STR(name, {g_free(name); return;});
|
|
|
|
message = g_strdup_printf
|
2005-07-17 09:30:07 +02:00
|
|
|
(_("All folders and messages under '%s' will be permanently deleted. "
|
2005-07-06 02:14:46 +02:00
|
|
|
"Recovery will not be possible.\n\n"
|
2004-04-26 18:06:48 +02:00
|
|
|
"Do you really want to delete?"), name);
|
2005-07-17 14:14:10 +02:00
|
|
|
avalue = alertpanel_full(_("Delete folder"), message,
|
|
|
|
GTK_STOCK_YES, GTK_STOCK_NO, NULL, FALSE,
|
|
|
|
NULL, ALERT_WARNING, G_ALERTALTERNATE);
|
2004-04-26 18:06:48 +02:00
|
|
|
g_free(message);
|
|
|
|
if (avalue != G_ALERTDEFAULT) return;
|
|
|
|
|
|
|
|
Xstrdup_a(old_path, item->path, return);
|
|
|
|
old_id = folder_item_get_identifier(item);
|
|
|
|
|
|
|
|
if (folderview->opened == folderview->selected ||
|
|
|
|
gtk_ctree_is_ancestor(ctree,
|
|
|
|
folderview->selected,
|
|
|
|
folderview->opened)) {
|
|
|
|
summary_clear_all(folderview->summaryview);
|
|
|
|
folderview->opened = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (item->folder->klass->remove_folder(item->folder, item) < 0) {
|
2004-06-25 10:05:09 +02:00
|
|
|
folder_item_scan(item);
|
2005-07-17 09:30:07 +02:00
|
|
|
alertpanel_error(_("Can't remove the folder '%s'."), name);
|
2004-04-26 18:06:48 +02:00
|
|
|
g_free(old_id);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
folder_write_list();
|
|
|
|
|
|
|
|
prefs_filtering_delete_path(old_id);
|
|
|
|
g_free(old_id);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static void update_tree_cb(FolderView *folderview, guint action,
|
|
|
|
GtkWidget *widget)
|
|
|
|
{
|
|
|
|
FolderItem *item;
|
|
|
|
|
2004-11-12 07:41:50 +01:00
|
|
|
item = folderview_get_selected_item(folderview);
|
2004-04-26 18:06:48 +02:00
|
|
|
g_return_if_fail(item != NULL);
|
|
|
|
|
|
|
|
summary_show(folderview->summaryview, NULL);
|
|
|
|
|
|
|
|
g_return_if_fail(item->folder != NULL);
|
|
|
|
|
|
|
|
if (action == 0)
|
|
|
|
folderview_check_new(item->folder);
|
|
|
|
else
|
|
|
|
folderview_rescan_tree(item->folder);
|
|
|
|
}
|
|
|
|
|
2005-09-08 20:28:36 +02:00
|
|
|
static void sync_cb(FolderView *folderview, guint action,
|
|
|
|
GtkWidget *widget)
|
2004-04-26 18:06:48 +02:00
|
|
|
{
|
|
|
|
FolderItem *item;
|
|
|
|
|
2005-09-08 20:28:36 +02:00
|
|
|
item = folderview_get_selected_item(folderview);
|
|
|
|
g_return_if_fail(item != NULL);
|
|
|
|
folder_synchronise(item->folder);
|
|
|
|
}
|
2004-04-26 18:06:48 +02:00
|
|
|
|
2005-09-08 20:28:36 +02:00
|
|
|
void imap_gtk_synchronise(FolderItem *item)
|
|
|
|
{
|
|
|
|
MainWindow *mainwin = mainwindow_get_mainwindow();
|
|
|
|
FolderView *folderview = mainwin->folderview;
|
|
|
|
|
2004-04-26 18:06:48 +02:00
|
|
|
g_return_if_fail(item != NULL);
|
|
|
|
g_return_if_fail(item->folder != NULL);
|
2005-06-02 05:06:27 +02:00
|
|
|
|
2004-04-26 18:06:48 +02:00
|
|
|
main_window_cursor_wait(mainwin);
|
|
|
|
inc_lock();
|
|
|
|
main_window_lock(mainwin);
|
|
|
|
gtk_widget_set_sensitive(folderview->ctree, FALSE);
|
|
|
|
main_window_progress_on(mainwin);
|
|
|
|
GTK_EVENTS_FLUSH();
|
|
|
|
if (folder_item_fetch_all_msg(item) < 0) {
|
|
|
|
gchar *name;
|
|
|
|
|
|
|
|
name = trim_string(item->name, 32);
|
2005-07-17 09:30:07 +02:00
|
|
|
alertpanel_error(_("Error occurred while downloading messages in '%s'."), name);
|
2004-04-26 18:06:48 +02:00
|
|
|
g_free(name);
|
|
|
|
}
|
|
|
|
folder_set_ui_func(item->folder, NULL, NULL);
|
|
|
|
main_window_progress_off(mainwin);
|
|
|
|
gtk_widget_set_sensitive(folderview->ctree, TRUE);
|
|
|
|
main_window_unlock(mainwin);
|
|
|
|
inc_unlock();
|
|
|
|
main_window_cursor_normal(mainwin);
|
2005-09-08 20:28:36 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
static void download_cb(FolderView *folderview, guint action,
|
|
|
|
GtkWidget *widget)
|
|
|
|
{
|
|
|
|
GtkCTree *ctree = GTK_CTREE(folderview->ctree);
|
|
|
|
FolderItem *item;
|
|
|
|
|
|
|
|
if (!folderview->selected) return;
|
|
|
|
|
|
|
|
item = gtk_ctree_node_get_row_data(ctree, folderview->selected);
|
|
|
|
imap_gtk_synchronise(item);
|
2004-04-26 18:06:48 +02:00
|
|
|
}
|