X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=config%2Fconf.pl;h=487d3c2e3a34f4634f701cf6fcd7158282cdc6d8;hb=98468fbac5463f240ced5101bb475d57b7f1fb1b;hp=f1fb4e4bf6ca30c0afa20b38198df60c228dfcfd;hpb=f8c17cdde0a3c82af86526423f07a8b0eb3fd39d;p=squirrelmail.git diff --git a/config/conf.pl b/config/conf.pl index f1fb4e4b..487d3c2e 100755 --- a/config/conf.pl +++ b/config/conf.pl @@ -1764,13 +1764,13 @@ sub command214 { # Automatically delete folders sub command215 { - print "Should folders selected for deletion bypass the Trash folder?\n\n"; - if ( $imap_server_type == "courier" ) { print "Courier(or Courier-IMAP) IMAP servers do not support "; print "subfolders of Trash. \n"; print "Deleting folders will bypass the trash folder and "; print "be immediately deleted.\n\n"; + print "If this is not the correct value for your server,\n"; + print "please use option D on the Main Menu to configure your server correctly.\n\n"; print "Press any key to continue...\n"; $new_delete = ; $delete_folder = "true"; @@ -1779,10 +1779,13 @@ sub command215 { print "mail to also contain folders.\n"; print "Deleting folders will bypass the trash folder and"; print "be immediately deleted\n\n"; + print "If this is not the correct value for your server,\n"; + print "please use option D on the Main Menu to configure your server correctly.\n\n"; print "Press any key to continue...\n"; $new_delete = ; $delete_folder = "true"; } else { + print "Should folders selected for deletion bypass the Trash folder?\n\n"; if ( lc($delete_folder) eq "true" ) { $default_value = "y"; } else { @@ -3008,6 +3011,7 @@ sub set_defaults { # prepended to the path, if not, then the path will be # converted to an absolute path, e.g. # '../images/logo.gif' --> SM_PATH . 'images/logo.gif' +# '../../someplace/data' --> '/absolute/path/someplace/data' # 'images/logo.gif' --> SM_PATH . 'config/images/logo.gif' # '/absolute/path/logo.gif' --> '/absolute/path/logo.gif' # 'http://whatever/' --> 'http://whatever' @@ -3034,6 +3038,14 @@ sub change_to_SM_path() { if ( $#rel_path > 1 ) { # more than two levels away. Make it absolute. + @abs_path = split(/\//, $dir); + + # Lop off the relative pieces of the absolute path.. + for ( $i = 0; $i <= $#rel_path; $i++ ) { + pop @abs_path; + shift @rel_path; + } + push @abs_path, @rel_path; $new_path = "\'" . join('/', @abs_path) . "\'"; } elsif ( $#rel_path > 0 ) { # it's within the SM tree, prepend SM_PATH