Files
inbuxa-server/tests/resources/imap-test/search-size
T
jcoffey-dev 7dae9b29fd Import upstream v0.16.22, stripped
Upstream commit: 474dd0229cb20cf513036619781ed97bd8073c3f
Enterprise-only files removed or emptied: 63
Enterprise-only snippets removed: 117 in 50 files
Dangling module declarations removed: 5
Cargo edits turning enterprise off: 14
Verification: clean
Enterprise feature gates left for rebuilt features: 19 in 18 files

Produced by tools/fork/strip.py. The full report is in docs/fork/strip-reports/ on main.
2026-09-18 10:21:56 -07:00

23 lines
625 B
Plaintext

messages: all
# get the middle size. don't trust precalculated values in case server
# modifies the message while APPENDing it. Messages 3 and 4 have different
# RFC822.SIZE, but with servers that store linefeeds as LFs they have the
# same file size. This test catches if they search using file size.
ok fetch 1:4 rfc822.size
* 3 fetch (rfc822.size $size)
ok search smaller $size
* search 1 2
ok search larger $size
* search 4
ok search not smaller $size
* search 3 4
ok search not larger $size
* search 1 2 3
ok search not smaller $size not larger $size
* search 3
ok search or smaller $size larger $size
* search 1 2 4