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 303d3378869699c64ac4e8989e43cf6d58e0afea..db4189ae14659e0bccc8737a7d19e80fc88f53db 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 9545b7104d0d631727fbfda0284cf92e64fdfa21..96127c90ffe4545258e87b39cdfa23bc2e11983a 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 dd2e568b62db017b042aa6ebf9c6dbd833be30c3..39cbb39c75ec20e483346240ffbc7554481a19c0 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 */