mirror of
https://github.com/webmin/webmin.git
synced 2026-06-19 19:00:22 +01:00
Custom headers can't use the normal IMAP search http://virtualmin.com/node/38059
This commit is contained in:
@@ -1051,7 +1051,13 @@ elsif ($folder->{'type'} == 4) {
|
||||
$what = "\"".$what."\""
|
||||
}
|
||||
$field = "LARGER" if ($field eq "size");
|
||||
local $search = uc($field)." ".$what."";
|
||||
local $search;
|
||||
if ($field =~ /^X-/i) {
|
||||
$search = "header ".uc($field)." ".$what."";
|
||||
}
|
||||
else {
|
||||
$search = uc($field)." ".$what."";
|
||||
}
|
||||
$search = "NOT $search" if ($neg);
|
||||
push(@searches, $search);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user