-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xapian_wrap.cpp: support phrase search for email addresses
Quotes signify phrase search in free text queries but were not supported in email queries since we supported querying for sub-parts of an email address. This reintroduces phrase search for email queries.
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -180,6 +180,21 @@ EOF | |
}, { | ||
to => decode('utf-8', 'Dømi <*@*dømi.fo>'), | ||
wantIds => [$ids[4]], | ||
}, { | ||
to => '[email protected]', | ||
wantIds => [$ids[0]], | ||
}, { | ||
to => 'Jon Doe <[email protected]>', | ||
wantIds => [$ids[0]], | ||
}, { | ||
to => '"[email protected]"', | ||
wantIds => [$ids[0]], | ||
}, { | ||
to => '"Jon Doe <[email protected]>"', | ||
wantIds => [$ids[0]], | ||
}, { | ||
to => '"foo*@*example.com"', | ||
wantIds => [], | ||
}); | ||
|
||
foreach (@tests) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters