瀏覽代碼

perl compilation error was caused by curly brackets.
tested 5.8, 5.6 and 5.004

tokul 19 年之前
父節點
當前提交
452ba0449e
共有 1 個文件被更改,包括 2 次插入8 次删除
  1. 2 8
      config/conf.pl

+ 2 - 8
config/conf.pl

@@ -4607,15 +4607,9 @@ sub clear_screen() {
 # checks IMAP mailbox name. Refuses to accept 8bit folders
 # returns 0 (folder name is not correct) or 1 (folder name is correct)
 sub check_imap_folder($) {
-    # Unicode support was added in Perl 5.6, use simple 8bit range in earlier versions
-    if($] >= 5.6) {
-        # Using iso-10646 range, because x80-xFF range does not match unicode chars
-        my $reg = '[\x{80}-\x{FFFF}]';
-    } else {
-        my $reg = '[\x80-\xFF]';
-    }
     my $folder_name = shift(@_);
-    if ($folder_name =~ /$reg/) {
+
+    if ($folder_name =~ /[\x80-\xFFFF]/) {
         print "Folder name contains 8bit characters. Configuration utility requires\n";
         print "UTF7-IMAP encoded folder names.\n";
         print "Press any key to continue...";