Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | blaze822: blaze822/blaze822_mem: detect line ending before scanning end of ↵ | Leah Neukirchen | 2021-08-30 | 1 | -12/+31 |
| | | | | | | | | | | | | header A mail using CRLF which contained (for some reason) a LFLF pair would be misparsed as the header was read until the LFLF. Instead, scan for the first LF, check if it's preceded by CR, and then search for the proper header terminator only. Closes #212. | ||||
* | blaze822: remove blaze822_mmap, never used. | Leah Neukirchen | 2021-08-30 | 1 | -49/+0 |
| | |||||
* | seq: - now refers to the message on stdin, use .- for previous message | Leah Neukirchen | 2020-07-03 | 1 | -1/+5 |
| | |||||
* | blaze822: blaze822_addr: null-terminate ttok at the current position before ↵ | Leah Neukirchen | 2020-04-03 | 1 | -0/+1 |
| | | | | appending | ||||
* | blaze822: blaze822_addr: don't force add space before quoted words | Leah Neukirchen | 2020-04-03 | 1 | -2/+0 |
| | |||||
* | blaze822: blaze822_addr: ignore leading obs-route | Leah Neukirchen | 2020-04-03 | 1 | -1/+1 |
| | |||||
* | mytimegm: replace with own implementation | Leah Neukirchen | 2020-03-28 | 1 | -1/+1 |
| | |||||
* | blaze822: blaze822_addr: fix parsing of () at end of string | Leah Neukirchen | 2019-03-01 | 1 | -1/+1 |
| | | | | Found by lhynes. | ||||
* | blaze822: blaze822_addr: don't read over the trailing nul byte when resolving \ | Leah Neukirchen | 2019-02-28 | 1 | -1/+1 |
| | |||||
* | blaze822: blaze822_addr: take care of string end in comments inside < | Leah Neukirchen | 2019-02-28 | 1 | -1/+3 |
| | |||||
* | blaze822: blaze822_addr: skip remaining characters when token is full, also ↵ | Leah Neukirchen | 2019-02-27 | 1 | -0/+2 |
| | | | | with [ | ||||
* | blaze822: blaze822_addr: skip remaining characters when token is full | Leah Neukirchen | 2019-02-27 | 1 | -0/+2 |
| | |||||
* | blaze822: blaze822_addr: don't drop last char when comment is not closed | Leah Neukirchen | 2019-02-27 | 1 | -1/+2 |
| | | | | Found by duncaen with afl. | ||||
* | blaze822: blaze822_addr: fix reading over the end of address if it ends with ↵ | Leah Neukirchen | 2019-02-27 | 1 | -1/+2 |
| | | | | | | , or ; Found by duncaen with afl. | ||||
* | blaze822: safe_append: fixes for various border cases | Leah Neukirchen | 2019-02-27 | 1 | -2/+5 |
| | | | | | | This fixes dstmax == dstlen and when src is completely full. Found by duncaen with afl. | ||||
* | blaze822: blaze822_mmap: fix memleak | Leah Neukirchen | 2019-02-10 | 1 | -0/+1 |
| | | | | Found by clang 7.0.1. | ||||
* | blaze822: blaze822_mem: fix memleak | Leah Neukirchen | 2019-02-10 | 1 | -1/+3 |
| | | | | Found by clang 7.0.1. | ||||
* | blaze822: safe_append: avoid different signedness in comparison | Leah Neukirchen | 2019-02-03 | 1 | -6/+9 |
| | |||||
* | blaze822: compress_hdr: avoid stepping h too far | Leah Neukirchen | 2018-03-02 | 1 | -1/+1 |
| | | | | | This resulted in the message consisting of the empty line to contain a single header which consisted of only a space. | ||||
* | blaze822: blaze822_addr: empty ttok after using it | Leah Neukirchen | 2018-01-14 | 1 | -0/+1 |
| | |||||
* | blaze822: blaze822_addr: spaces in local-part need quoting too | Leah Neukirchen | 2018-01-14 | 1 | -1/+1 |
| | |||||
* | blaze822: blaze822_addr: make < in <> reset mail address parsing | Leah Neukirchen | 2018-01-14 | 1 | -0/+3 |
| | |||||
* | blaze822: blaze822_addr: move previous addr contents to disp | Leah Neukirchen | 2018-01-13 | 1 | -0/+6 |
| | |||||
* | blaze822: blaze822_addr: <> always resets the address | Leah Neukirchen | 2018-01-13 | 1 | -0/+1 |
| | |||||
* | blaze822: safe_append: off by one | Leah Neukirchen | 2018-01-13 | 1 | -1/+1 |
| | |||||
* | blaze822: blaze822_addr: rewrite address parsing | Leah Neukirchen | 2018-01-07 | 1 | -66/+125 |
| | | | | | This hopefully fixes many bugs and subtleties related to extracting adresses. | ||||
* | blaze822: blaze822_addr: ensure strlen is not run on null pointer | Leah Neukirchen | 2017-10-08 | 1 | -1/+1 |
| | | | | Found by Larry Hynes. | ||||
* | blaze822: blaze822_addr: quote local-part if needed | Leah Neukirchen | 2017-10-03 | 1 | -0/+26 |
| | |||||
* | style | Leah Neukirchen | 2017-08-31 | 1 | -6/+6 |
| | |||||
* | blaze822: blaze822_addr: support backslashes in atoms | Leah Neukirchen | 2017-06-13 | 1 | -1/+5 |
| | | | | This happens a lot in the real world, even if it's not RFC conforming. | ||||
* | blaze822: blaze822_addr: ensure space for terminal null | Leah Neukirchen | 2017-06-13 | 1 | -1/+1 |
| | |||||
* | blaze822: blaze822_addr: unquote quoted strings | Leah Neukirchen | 2017-06-12 | 1 | -1/+4 |
| | |||||
* | blaze822: blaze822_addr: skip spaces after > | Leah Neukirchen | 2017-06-03 | 1 | -0/+2 |
| | |||||
* | blaze822: blaze822_addr: use memcpy instead of strcpy, we know the length | Leah Neukirchen | 2017-06-03 | 1 | -2/+4 |
| | |||||
* | clean up whitespace | Leah Neukirchen | 2017-01-26 | 1 | -16/+16 |
| | |||||
* | mblaze822: blaze822_addr: add simple group parsing | Christian Neukirchen | 2016-09-07 | 1 | -1/+6 |
| | | | | Just ignores the group name, and considers ; an address separator too. | ||||
* | blaze822: blaze822_addr: add bounds check when extracting display name | Christian Neukirchen | 2016-09-01 | 1 | -1/+1 |
| | | | | | Discovered using the TREC 2005 Spam Public Corpora. http://plg.uwaterloo.ca/~gvcormac/treccorpus/README.html | ||||
* | blaze822: blaze822_addr: make a bit more robust | Christian Neukirchen | 2016-08-09 | 1 | -2/+15 |
| | | | | | | Start over when seeing another < in the address part. Support "..." in the address part. | ||||
* | import and use timegm from musl | Christian Neukirchen | 2016-08-08 | 1 | -1/+1 |
| | | | | It's ridiculous this function is not in the standards. | ||||
* | blaze822: keep a pointer to the original header, if we have it anyway | Christian Neukirchen | 2016-08-06 | 1 | -1/+9 |
| | |||||
* | blaze822: blaze822_chdr: downcase header | Christian Neukirchen | 2016-08-01 | 1 | -0/+4 |
| | |||||
* | blaze822: blaze822_hdr_: off-by-one for first header | Christian Neukirchen | 2016-07-29 | 1 | -2/+4 |
| | |||||
* | blaze822: blaze822_file: allocate enough space for read | Christian Neukirchen | 2016-07-29 | 1 | -3/+4 |
| | |||||
* | cleanups | Christian Neukirchen | 2016-07-26 | 1 | -16/+5 |
| | |||||
* | blaze822: blaze822_file: allow unknown file size (e.g. pipes) | Christian Neukirchen | 2016-07-26 | 1 | -9/+48 |
| | |||||
* | import musl memmem | Christian Neukirchen | 2016-07-26 | 1 | -10/+7 |
| | |||||
* | blaze822: blaze822_addr: return 0 when no address is found | Christian Neukirchen | 2016-07-25 | 1 | -9/+8 |
| | | | | Also return null pointers instead of empty strings. | ||||
* | blaze822: fix header finding with CRLF | Christian Neukirchen | 2016-07-21 | 1 | -3/+6 |
| | |||||
* | blaze822: forgot to free | Christian Neukirchen | 2016-07-21 | 1 | -0/+1 |
| | | | | Found by clang-analyzer. | ||||
* | blaze822: fix months. duh | Christian Neukirchen | 2016-07-18 | 1 | -2/+2 |
| |