diff --git a/JSON b/JSON deleted file mode 120000 index bc90c230..00000000 --- a/JSON +++ /dev/null @@ -1 +0,0 @@ -../webadmin/JSON \ No newline at end of file diff --git a/mailbox/add_address.cgi b/mailbox/add_address.cgi index 05e28abb..3ca3277f 100755 --- a/mailbox/add_address.cgi +++ b/mailbox/add_address.cgi @@ -3,6 +3,8 @@ # Add an address from an email to the user's address book use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our %in; require './mailbox-lib.pl'; diff --git a/mailbox/address_chooser.cgi b/mailbox/address_chooser.cgi index 3396fdec..e1c35761 100755 --- a/mailbox/address_chooser.cgi +++ b/mailbox/address_chooser.cgi @@ -3,6 +3,8 @@ # Display a list of entries from the address book use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, %uconfig); our $trust_unknown_referers = 1; diff --git a/mailbox/auto.pl b/mailbox/auto.pl index d6ae2806..1a807758 100755 --- a/mailbox/auto.pl +++ b/mailbox/auto.pl @@ -2,6 +2,8 @@ # Scan through all folders, and apply the scheduled deletion policy for each use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our $no_acl_check++; $ENV{'REMOTE_USER'} = getpwuid($<); diff --git a/mailbox/copy.cgi b/mailbox/copy.cgi index 50fe8d9b..d6367f37 100755 --- a/mailbox/copy.cgi +++ b/mailbox/copy.cgi @@ -2,6 +2,8 @@ # Copy (or move) all messages from one folder to another use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, %config); require './mailbox-lib.pl'; diff --git a/mailbox/copy_form.cgi b/mailbox/copy_form.cgi index 3ed7f407..ebdde927 100755 --- a/mailbox/copy_form.cgi +++ b/mailbox/copy_form.cgi @@ -2,6 +2,8 @@ # Show a form for copying or moving all email to another folder use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, %config); require './mailbox-lib.pl'; diff --git a/mailbox/delete_folders.cgi b/mailbox/delete_folders.cgi index f2198d61..1c75b47f 100755 --- a/mailbox/delete_folders.cgi +++ b/mailbox/delete_folders.cgi @@ -2,6 +2,8 @@ # Delete a bunch of folders use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, %config); require './mailbox-lib.pl'; diff --git a/mailbox/delete_mail.cgi b/mailbox/delete_mail.cgi index b460fe2f..c2cf2420 100755 --- a/mailbox/delete_mail.cgi +++ b/mailbox/delete_mail.cgi @@ -3,6 +3,8 @@ # Delete, mark, move or copy multiple messages use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, %userconfig, %gconfig); require './mailbox-lib.pl'; diff --git a/mailbox/detach.cgi b/mailbox/detach.cgi index 952c3444..37f9dbdc 100755 --- a/mailbox/detach.cgi +++ b/mailbox/detach.cgi @@ -3,6 +3,8 @@ # View one attachment from a message use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in); use Socket; diff --git a/mailbox/detachall.cgi b/mailbox/detachall.cgi index 7c1dea6e..176d136b 100755 --- a/mailbox/detachall.cgi +++ b/mailbox/detachall.cgi @@ -2,6 +2,8 @@ # Download all attachments in a ZIP file use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in); require './mailbox-lib.pl'; diff --git a/mailbox/edit_auto.cgi b/mailbox/edit_auto.cgi index 165cd18d..223ef4c2 100755 --- a/mailbox/edit_auto.cgi +++ b/mailbox/edit_auto.cgi @@ -2,6 +2,8 @@ # Show a form for setting up scheduled folder clearing use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, %config); require './mailbox-lib.pl'; diff --git a/mailbox/edit_comp.cgi b/mailbox/edit_comp.cgi index 23510c81..3418ebc0 100755 --- a/mailbox/edit_comp.cgi +++ b/mailbox/edit_comp.cgi @@ -3,6 +3,8 @@ # Display a form for creating or editing a composite folder use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, %config); require './mailbox-lib.pl'; diff --git a/mailbox/edit_folder.cgi b/mailbox/edit_folder.cgi index 5c03832e..a8909a62 100755 --- a/mailbox/edit_folder.cgi +++ b/mailbox/edit_folder.cgi @@ -3,6 +3,8 @@ # Display a form for creating or editing a folder of some kind use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, %userconfig); our $folders_dir; our @remote_user_info; diff --git a/mailbox/edit_ifolder.cgi b/mailbox/edit_ifolder.cgi index e587e94d..7244861d 100755 --- a/mailbox/edit_ifolder.cgi +++ b/mailbox/edit_ifolder.cgi @@ -2,6 +2,8 @@ # Display a form for creating or editing an IMAP folder use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in); require './mailbox-lib.pl'; diff --git a/mailbox/edit_imap.cgi b/mailbox/edit_imap.cgi index 0ff5f2af..0a46a3e0 100755 --- a/mailbox/edit_imap.cgi +++ b/mailbox/edit_imap.cgi @@ -3,6 +3,8 @@ # Display a form for creating or editing an IMAP folder use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in); our $imap_port; diff --git a/mailbox/edit_pop3.cgi b/mailbox/edit_pop3.cgi index 97d2e097..bb6f529a 100755 --- a/mailbox/edit_pop3.cgi +++ b/mailbox/edit_pop3.cgi @@ -3,6 +3,8 @@ # Display a form for creating or editing a POP3 folder use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in); our $pop3_port; diff --git a/mailbox/edit_sig.cgi b/mailbox/edit_sig.cgi index 6b41a851..dd597da1 100755 --- a/mailbox/edit_sig.cgi +++ b/mailbox/edit_sig.cgi @@ -3,6 +3,8 @@ # Display the user's .signature file for editing use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text); require './mailbox-lib.pl'; diff --git a/mailbox/edit_virt.cgi b/mailbox/edit_virt.cgi index 8acfb448..b7ebd08e 100755 --- a/mailbox/edit_virt.cgi +++ b/mailbox/edit_virt.cgi @@ -2,6 +2,8 @@ # Display a form for creating or editing a virtual folder use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, %config); require './mailbox-lib.pl'; diff --git a/mailbox/export.cgi b/mailbox/export.cgi index d93512ae..01ecb09b 100755 --- a/mailbox/export.cgi +++ b/mailbox/export.cgi @@ -2,6 +2,8 @@ # Output the address book in some format use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, $remote_user); require './mailbox-lib.pl'; diff --git a/mailbox/import.cgi b/mailbox/import.cgi index e819cfa0..d60406c8 100755 --- a/mailbox/import.cgi +++ b/mailbox/import.cgi @@ -2,6 +2,8 @@ # Import addresses from a file use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in); require './mailbox-lib.pl'; diff --git a/mailbox/inbox_login.cgi b/mailbox/inbox_login.cgi index 862db1a2..8f8e2393 100755 --- a/mailbox/inbox_login.cgi +++ b/mailbox/inbox_login.cgi @@ -3,6 +3,8 @@ # Save inbox POP3 login and password use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, %pop3); our $user_module_config_directory; diff --git a/mailbox/inbox_login_error.cgi b/mailbox/inbox_login_error.cgi index 895f4144..cec13e9c 100755 --- a/mailbox/inbox_login_error.cgi +++ b/mailbox/inbox_login_error.cgi @@ -3,6 +3,8 @@ # Let user update IMAP/POP3 login credentials use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in); our ($remote_user, $remote_pass); diff --git a/mailbox/inbox_logout.cgi b/mailbox/inbox_logout.cgi index df4c4e9a..c0151bcf 100755 --- a/mailbox/inbox_logout.cgi +++ b/mailbox/inbox_logout.cgi @@ -3,6 +3,8 @@ # Clear inbox POP3 login and password use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our %in; our $user_module_config_directory; diff --git a/mailbox/index.cgi b/mailbox/index.cgi index 8744b447..fe3c6da4 100755 --- a/mailbox/index.cgi +++ b/mailbox/index.cgi @@ -3,6 +3,8 @@ # List the mail messages for the user use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, %userconfig, %config); our ($remote_user, $remote_pass); our $special_folder_id; diff --git a/mailbox/list_addresses.cgi b/mailbox/list_addresses.cgi index 0f18985a..e45d87f4 100755 --- a/mailbox/list_addresses.cgi +++ b/mailbox/list_addresses.cgi @@ -2,6 +2,8 @@ # Display contents of the user's address book, and allowed and denied addresses use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, %config, %userconfig); require './mailbox-lib.pl'; diff --git a/mailbox/list_folders.cgi b/mailbox/list_folders.cgi index 224c4f6c..116f3dc5 100755 --- a/mailbox/list_folders.cgi +++ b/mailbox/list_folders.cgi @@ -3,6 +3,8 @@ # Display a list of all folders and allows additional and deletion use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in); our %folder_types; our $remote_user; diff --git a/mailbox/list_ifolders.cgi b/mailbox/list_ifolders.cgi index d5ceaa07..a4a5e6de 100755 --- a/mailbox/list_ifolders.cgi +++ b/mailbox/list_ifolders.cgi @@ -2,6 +2,8 @@ # Display a list of IMAP folders, and allow addition and deletion use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in); require './mailbox-lib.pl'; diff --git a/mailbox/mail_search.cgi b/mailbox/mail_search.cgi index eeee2a86..18573cbf 100755 --- a/mailbox/mail_search.cgi +++ b/mailbox/mail_search.cgi @@ -3,6 +3,8 @@ # Find mail messages matching some pattern use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, %userconfig); our $search_folder_id; diff --git a/mailbox/mailbox-lib.pl b/mailbox/mailbox-lib.pl index c0d6ab62..d6c3ba85 100755 --- a/mailbox/mailbox-lib.pl +++ b/mailbox/mailbox-lib.pl @@ -1,6 +1,8 @@ # mailbox-lib.pl use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %config, %gconfig, %userconfig); our $remote_user; our @remote_user_info; diff --git a/mailbox/newfolder.cgi b/mailbox/newfolder.cgi index 10cbf3df..69c6ae01 100755 --- a/mailbox/newfolder.cgi +++ b/mailbox/newfolder.cgi @@ -2,6 +2,8 @@ # Just re-directs to the appropriate folder creator use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our %in; require './mailbox-lib.pl'; diff --git a/mailbox/print_mail.cgi b/mailbox/print_mail.cgi index 6e11c9c6..aa77b452 100755 --- a/mailbox/print_mail.cgi +++ b/mailbox/print_mail.cgi @@ -2,6 +2,8 @@ # Display a message for printing use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, %userconfig); our $trust_unknown_referers = 1; diff --git a/mailbox/quotacheck.pl b/mailbox/quotacheck.pl index d702ee5a..abc2058c 100755 --- a/mailbox/quotacheck.pl +++ b/mailbox/quotacheck.pl @@ -4,6 +4,8 @@ # error occurred use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; use Net::LDAP; diff --git a/mailbox/reply_mail.cgi b/mailbox/reply_mail.cgi index 1c191aac..d65bf2cd 100755 --- a/mailbox/reply_mail.cgi +++ b/mailbox/reply_mail.cgi @@ -2,6 +2,8 @@ # Display a form for replying to or composing an email use strict; use warnings; +no warnings 'redefine'; +no warnings 'uninitialized'; our (%text, %in, %config, %gconfig, %userconfig); our $module_name; our @remote_user_info; @@ -536,6 +538,7 @@ print &ui_hidden("charset", $main::force_charset); # Start tabs for from / to / cc / bcc / signing / options # Subject is separate print &ui_table_start($text{'reply_headers'}, "width=100%", 2); +print "