The heuristics for headers in body simply does not work. - rohrpost - A commandline mail client to change the world as we see it.
 (HTM) git clone git://r-36.net/rohrpost
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b251494a79fa791fa8076398554740fd65fa5d27
 (DIR) parent b08d2e8426b3b8dbe1020b926ce748ea60fe6bcd
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Sat,  4 Oct 2025 21:50:52 +0200
       
       The heuristics for headers in body simply does not work.
       
       Diffstat:
         M mime.c                              |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/mime.c b/mime.c
       @@ -975,7 +975,7 @@ mime_parsebufintern(mime_t *mime, char *str, int len)
                                         * Does the line have some "header: value\n"
                                         * form? Go on parsing headers.
                                         */
       -                                for (key = p; key[0] != '\n'; key++) {
       +                                /*for (key = p; key[0] != '\n'; key++) {
                                                //printf("key[0] = '%c'\n", key[0]);
                                                if (key[0] == ':' && key[1] == ' ')
                                                        break;
       @@ -984,7 +984,7 @@ mime_parsebufintern(mime_t *mime, char *str, int len)
                                                        mime->rawhdrslen = p - str;
                                                        goto mimeparsebufbodyparse;
                                                }
       -                                }
       +                                }*/
                                        /*
                                         * A line simply ended with no header.
                                         * That is suspicious.