print "8. Plugins\n";
print "\n";
print "D. Set pre-defined settings for specific IMAP servers\n";
- if ($config_use_color == 1) {
- print "C. Turn color off\n";
- } else {
- print "C. Turn color on\n";
- }
print "\n";
} elsif ($menu == 1) {
print $WHT."Organization Preferences\n".$NRM;
print "\n";
print "R Return to Main Menu\n";
}
+ if ($config_use_color == 1) {
+ print "C. Turn color off\n";
+ } else {
+ print "C. Turn color on\n";
+ }
print "S Save data\n";
print "Q Quit\n";
$WHT = "\x1B[37;1m";
$NRM = "\x1B[0m";
}
- } elsif (($command eq "d") || ($command eq "D")) {
+ } elsif ((($command eq "d") || ($command eq "D")) && $menu == 0) {
set_defaults ();
} else {
$saved = 0;
print FILE "\t\$useSendmail = $useSendmail;\n";
print FILE "\t\$smtpServerAddress = \"$smtpServerAddress\";\n";
print FILE "\t\$smtpPort = $smtpPort;\n";
- print FILE "\t\$sendmailPath = \"$sendmail_path\";\n";
+ print FILE "\t\$sendmail_path = \"$sendmail_path\";\n";
print FILE "\t\$imap_server_type = \"$imap_server_type\";\n";
print FILE "\n";