bobbimanners / emailler

Email and Usenet suite for the Apple //e or GS with Uthernet-II ethernet card
http://bobbi.epizy.com
Other
30 stars 5 forks source link

EMAIL: Make MIME separators more robust #36

Closed bobbimanners closed 3 years ago

bobbimanners commented 4 years ago

Right now, any line beginning "--" is considered a MIME separator.

Would be more robust if it looked at 3rd char also and only accepted the line as a separator if it is not '-'.

bobbimanners commented 4 years ago

The suggestion above it too simple-minded. Boundary can be "-----bfgewirsdhbsdki" for example.

bobbimanners commented 3 years ago

Without doing this properly and actually storing the 'boundary' header field (which I would sooner avoid, because bytes), I think we can be more robust.

A MIME header starts with "--" (at beginning of line) and then has a sequence of chars, not including space, then a carriage return.

bobbimanners commented 3 years ago

This is implemented now in the develop branch. uint8_t is_mime_boundary(char *p)

bobbimanners commented 3 years ago

Closed this by mistake.

bobbimanners commented 3 years ago

2.1.0 released.