don't allow cloning of accounts with remote folders
authorPaul Mangan <paul@claws-mail.org>
Wed, 3 Dec 2003 14:20:34 +0000 (14:20 +0000)
committerPaul Mangan <paul@claws-mail.org>
Wed, 3 Dec 2003 14:20:34 +0000 (14:20 +0000)
ChangeLog.claws
configure.ac
src/account.c

index 303d337..db4189a 100644 (file)
@@ -1,3 +1,9 @@
+2003-12-03 [paul]      0.9.7claws12
+
+       * src/account.c
+               don't allow cloning of accounts with remote folders,
+               patch submitted by Ricardo Mones Lastra
+
 2003-12-03 [christoph] 0.9.7claws11
 
        * src/folder.[ch]
index 9545b71..96127c9 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=7
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=11
+EXTRA_VERSION=12
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index dd2e568..39cbb39 100644 (file)
@@ -753,6 +753,11 @@ static void account_clone(void)
 
        row = GPOINTER_TO_INT(clist->selection->data);
        ac_prefs = gtk_clist_get_row_data(clist, row);
+
+       if (ac_prefs->protocol == A_IMAP4 || ac_prefs->protocol == A_NNTP) {
+               alertpanel_error(_("Accounts with remote folders cannot be cloned"));
+               return;
+       }
        
        ac_clon = prefs_account_new();
        /* copy fields */