--- websieve.pl.orig Mon Sep 17 01:23:49 2001
+++ websieve.pl Fri Apr 25 19:49:30 2003
@@ -98,7 +98,7 @@
$encode_params=&encode_base64($encode_params) if $userc4;
$auth_cookie=cookie(-name => 'websieve',
-value=>$encode_params,
- -path=>"$program_url",
+ -path=>"/",
-expires => 'now');
print header(-cookie=> $auth_cookie);
param('op','');
@@ -193,7 +193,7 @@
$encode_params=&encode_base64($encode_params) if $userc4;
$auth_cookie=cookie(-name => 'websieve',
-value=>$encode_params,
- -path=>"$program_url",
+ -path=>"/",
-expires => $expires);
if ($uid ne "" && $pass ne "")
{
@@ -301,7 +301,7 @@
}
print "";
- print "NOTE: You will lose ALL changes made to a script in advanced mode if you switch back to basic mode." if ($mode eq 'advanced' && $op eq 'advanced');
+ print "NOTE: You will lose ALL changes made to a script in advanced mode if you switch back to basic mode." if ($mode eq 'advanced' && $op eq 'advanced');
}
@@ -405,7 +405,7 @@
else {
$change=1 ;
param('mbx',$mbx);
- print hidden('mbx');
+ #print hidden('mbx');
}
}
if (!$mbx || !(( $acl && $useracl) || $maxquota)) {
@@ -547,7 +547,7 @@
}
@tmpbox=@mailboxes;
print "
";
print "";
print "Rule#: [$rulecount]";
- print "  Priority: ",textfield("rules.priority.$rulecount",$spriority,2);
- print "  Status: ",popup_menu("rules.ruletype.$rulecount",[@ruletype],'ENABLED')," | | ";
+ print " Priority: ",textfield("rules.priority.$rulecount",$spriority,2);
+ print " Status: ",popup_menu("rules.ruletype.$rulecount",[@ruletype],'ENABLED'),"";
my @checked;
my @checkvalues=("copy","keep");
push @checkvalues,"regex" if $useregex;
@@ -1096,23 +1096,23 @@
param("rules.searchflg.$rulecount","$ssearchflg");
print popup_menu("rules.searchflg.$rulecount",[@flgsts],$ssearchflg,\%searchflghash);
}
- print " field(s): |   'from' contains ",
+ print " field(s): | 'from' contains ",
" | ";
param("rules.from.$rulecount","$sfrom");
print textfield("rules.from.$rulecount","$sfrom",50)," | ";
############# TO field
print "";
- print "  | ";
- print "  'to' contains ",
+ print " | | ";
+ print " 'to' contains ",
" | ";
param("rules.to.$rulecount","$sto");
print textfield("rules.to.$rulecount","$sto",50)," | ";
########### SUBJECT field
print "";
- print "  | ";
- print "  'subject' contains ",
+ print " | | ";
+ print " 'subject' contains ",
" | ";
param("rules.subject.$rulecount","$ssubject");
print textfield("rules.subject.$rulecount","$ssubject",50)," | ";
@@ -1154,26 +1154,26 @@
############## Action REDIRECT
param("rules.forward.$rulecount","$sdest1");
- print "  | Forward To | ";
+ print " | | Forward To | ";
print textfield("rules.forward.$rulecount",$sdest1,50)," (Email Address) | ";
############### Action REPLY WITH
if ($usereply) {
param("rules.reply.$rulecount","$sdest2") if (defined $sdest2);
- print "  | Reply With | ";
+ print " | | Reply With | ";
print textarea("rules.reply.$rulecount",$sdest2,2,43)," (Text Message) | ";
}
############## Action Reject
if ($usereject) {
param("rules.reject.$rulecount","$sdest3");
- print "  | Reject | ";
+ print " | | Reject | ";
print textarea("rules.reject.$rulecount",$sdest3,2,43)," (Text Message) | ";
}
############## Action Discard
if ($usediscard) {
- print "  | Discard |   | ";
+ print " | Discard | | ";
}
############### Action CustomCode
@@ -1196,7 +1196,7 @@
print hr,"";
$rulecount--;
- print hr,"",submit("Save Rule "),"  ",reset('Clear'),"";
+ print hr,"",submit("Save Rule ")," ",reset('Clear'),"";
} # if addrule
@@ -1248,7 +1248,7 @@
print "Server: $imapserver | Userid: $uid | ";
print "Used Quota: ";
if ($percent ne "") {
- print "[$quota[1] kbytes used / $quota[2] kbytes available.($percent\% usage)] | ";
+ print "[$quota[1] kbytes used / $quota[2] kbytes available. ($percent\% usage)]";
} else {
print "$quota[1] No limits | ";
};
@@ -1387,7 +1387,7 @@
print start_form(-action=>$program_url);
$gomodifyit = 'yes';
print hidden('s',$sencode_params) if $useservercookie;
- print "",submit('Save Changes'),"  ",submit("Refresh"),"  ",reset('Reset Values'),"" if $op;
+ print "",submit('Save Changes')," ",submit("Refresh")," ",reset('Reset Values'),"" if $op;
param('op',$op);
if (param('action') && param('action') eq 'deletembx') {
&deleteimapmailbox;
@@ -1407,7 +1407,7 @@
&initscripts(%scripts);
if ($op eq 'setacl') {
&viewacl if $useacl;
- print " ",submit('Save Changes'),"  ",submit("Refresh"),"  ",reset('Reset Values'),"";
+ print " ",submit('Save Changes')," ",submit("Refresh")," ",reset('Reset Values'),"";
}
if ($mode =~ /basic/i && $op ne 'setacl') {
@@ -1420,7 +1420,7 @@
# print "printing $op ";
&printscript($scripts{'script'}) ;
- print " ",submit('Save Changes'),"  ",submit("Refresh"),"  ",reset('Reset Values'),"";
+ print " ",submit('Save Changes')," ",submit("Refresh")," ",reset('Reset Values'),"";
}
|