Files
inbuxa-server/crates/nlp
jcoffey-dev e028a0c091 Spam filter: stop looking for the end of an IPv6 literal after 47 characters
The tokenizer that finds URLs and email addresses in a message looked
for the closing bracket of an IPv6 host with no limit, buffering every
token after an unclosed "[", and then took those tokens off the front
of a Vec one at a time. A long "a@[1:1:1:..." run in inbound mail took
time quadratic in its length: 7.4 s for 200,000 characters, hours for
a full-size message. No IPv6 literal is longer than 47 characters with
its brackets, so the search stops there, and the buffer is a VecDeque.
2026-10-27 23:59:12 -07:00
..
2026-10-18 13:51:24 -07:00