Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | clean up header includes | Christian Neukirchen | 2016-07-18 | 1 | -8/+8 |
| | |||||
* | seq: import most parts of mseq, make blaze822_loop resolve ranges | Christian Neukirchen | 2016-07-18 | 1 | -24/+0 |
| | |||||
* | blaze822: add blaze822_headerlen | Christian Neukirchen | 2016-07-16 | 1 | -0/+6 |
| | |||||
* | blaze822: add blaze822_chdr to search for a header passed as C string | Christian Neukirchen | 2016-07-16 | 1 | -0/+9 |
| | |||||
* | blaze822: iterate over headers | Christian Neukirchen | 2016-07-14 | 1 | -0/+17 |
| | |||||
* | blaze822: add mmap-based mail reader | Christian Neukirchen | 2016-07-14 | 1 | -3/+54 |
| | |||||
* | blaze822: remaining fixes in new loop | Christian Neukirchen | 2016-07-14 | 1 | -5/+5 |
| | |||||
* | blaze822: avoid overflow in blaze822_hdr_ | Christian Neukirchen | 2016-07-14 | 1 | -1/+1 |
| | |||||
* | blaze822: rewrite inner loop | Christian Neukirchen | 2016-07-13 | 1 | -44/+58 |
| | | | | | Do nul and crlf clean up first, only when required. Replace line-detection loop with strchr. | ||||
* | blaze822: allow freeing of null pointers | Christian Neukirchen | 2016-07-13 | 1 | -0/+2 |
| | |||||
* | blaze822: blaze822_mem: use body=bodyend instead of body=0 | Christian Neukirchen | 2016-07-13 | 1 | -1/+2 |
| | | | | | Else we lose track of where we are during multipart when there is no body (really a body of length 0). | ||||
* | blaze822: detect too short/empty headers | Christian Neukirchen | 2016-07-13 | 1 | -0/+3 |
| | |||||
* | blaze822: compression fixes | Christian Neukirchen | 2016-07-13 | 1 | -2/+4 |
| | |||||
* | blaze822: give in and actually unfold the lines | Christian Neukirchen | 2016-07-13 | 1 | -10/+22 |
| | |||||
* | blaze822: free line in blaze822_loop | Christian Neukirchen | 2016-07-13 | 1 | -0/+1 |
| | |||||
* | blaze822: off by one in blaze822_mem | Christian Neukirchen | 2016-07-13 | 1 | -1/+1 |
| | |||||
* | blaze822: fix blaze822_mem body start | Christian Neukirchen | 2016-07-13 | 1 | -6/+9 |
| | |||||
* | blaze822: fix blaze822_file return value on error | Christian Neukirchen | 2016-07-13 | 1 | -1/+1 |
| | |||||
* | blaze822_priv.h: macro cleanup | Christian Neukirchen | 2016-07-13 | 1 | -6/+0 |
| | |||||
* | blaze822: api refactoring | Christian Neukirchen | 2016-07-13 | 1 | -50/+39 |
| | |||||
* | blaze822: don't prefix first header with nul bytes | Christian Neukirchen | 2016-07-13 | 1 | -111/+73 |
| | | | | | Instead, look for the first header as a special case. This allows us to parse a header as-is without shifting in memory. | ||||
* | blaze822: parsing of in-memory messages | Christian Neukirchen | 2016-07-13 | 1 | -0/+130 |
| | |||||
* | blaze822: header cleanup | Christian Neukirchen | 2016-07-13 | 1 | -6/+4 |
| | |||||
* | blaze822: hackfix | Christian Neukirchen | 2016-07-12 | 1 | -1/+1 |
| | |||||
* | blaze822: default to 0 seconds when none given | Christian Neukirchen | 2016-07-12 | 1 | -0/+2 |
| | |||||
* | blaze822: only increment end if we found the a header separator | Christian Neukirchen | 2016-07-12 | 1 | -1/+1 |
| | |||||
* | blaze822: avoid tolower | Christian Neukirchen | 2016-07-12 | 1 | -1/+4 |
| |