Skip to content

Commit

Permalink
By default search email address in the whole email
Browse files Browse the repository at this point in the history
Signed-off-by: Janos SUTO <[email protected]>
  • Loading branch information
jsuto committed Nov 30, 2024
1 parent b2c06fa commit 24b657d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions webui/controller/search/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ private function fixup_post_request() {
private function naive_preprocess_post_expert_request($data = array()) {
$ndate = 0;
$from = $match = '';
$prev_token_is_email = 0;

if(!isset($data['search'])) { return; }

Expand All @@ -143,11 +142,6 @@ private function naive_preprocess_post_expert_request($data = array()) {
$ndate++;
$this->a["date$ndate"] = $v;
}
else if(strchr($v, '@')) {
$prev_token_is_email = 1;
if($from == '') { $from = FROM_TOKEN; }
$from .= " $v";
}
else {
$match .= ' ' . $v;
}
Expand Down

0 comments on commit 24b657d

Please sign in to comment.