projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebae9ff
)
Fix search results folders
author
Jamie Cameron
<jcameron@webmin.com>
Tue, 23 Dec 2008 06:50:53 +0000
(06:50 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Tue, 23 Dec 2008 06:50:53 +0000
(06:50 +0000)
mailboxes/folders-lib.pl
patch
|
blob
|
history
diff --git
a/mailboxes/folders-lib.pl
b/mailboxes/folders-lib.pl
index
30d88f2
..
29993d3
100644
(file)
--- a/
mailboxes/folders-lib.pl
+++ b/
mailboxes/folders-lib.pl
@@
-280,6
+280,7
@@
elsif ($_[2]->{'type'} == 6) {
$mems = [ grep { $_->[0] ne $sf ||
$_->[1] ne $wantids[$i] } @$mems ];
$changed = 1;
+ $mail[$wantidxs[$i]] = 'GONE';
}
}
}
@@
-290,7
+291,7
@@
elsif ($_[2]->{'type'} == 6) {
}
# Filter out messages that don't exist anymore
- @mail = grep {
defined($_)
} @mail;
+ @mail = grep {
$_ ne 'GONE'
} @mail;
return @mail;
}
}
@@
-667,6
+668,7
@@
elsif ($end < 0) {
local $rstart = $count+$_[1]-1;
local $rend = $count+$_[0]-1;
$rstart = $rstart < 0 ? 0 : $rstart;
+ $rend = $count - 1 if ($rend >= $count);
return ($rstart, $rend);
}
else {