Revert "we use glibc, and gconv. Don't need our own transcoding stuff, glibc does" This reverts commit 2c0e197ef42e4cdff1eff705c8b1b1d07336bf24.
we use glibc, and gconv. Don't need our own transcoding stuff, glibc does that. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
rename a bunch of modules Signed-off-by: Pierre Habouzit <madcoder@debian.org>
turn charset into a lua package as well. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
more documentation. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
lots of simplifications. add pattern.h always set strict_mime off, we want to do a MUA that understands other, right ? just keep the parse of that option for now, to avoid barfing hopelessly on old mutt's config files Signed-off-by: Pierre Habouzit <madcoder@debian.org>
fix completely braindead rfc2047 parsing, that choke on something as stupid as: =?UTF-8?Q?foobar??= this is totally valid, and we choke on this because of the ? in that string. it's not ambiguous, so deal with it correctly, and get "foobar?" as a result instead of =?UTF-8?....?=
rationnalize includes a lot: that's very dirty, but lib-lib/lib-lib.h has a lot of commonly used includes. that saves a lot of things from the rest of the code. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
sort out some prototypes, put them where they belong. rework lib-lib, have a public lib-lib/lib-lib.h header that will be our main library we always want to have. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
finish the "read" of charset.c Signed-off-by: Pierre Habouzit <madcoder@debian.org>
many simplifications, copyright statements. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
more charset improvements. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
generalize the idea of tokens a bit more, don't restrict it to the rfc822 headers, use it for all mime tokens we need. I suppose I'll do a mutt-tokens module at some point Signed-off-by: Pierre Habouzit <madcoder@debian.org>
move rfc822 related types into lib-mime/mime-types.h out of mutt.h. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
drop str_adjust: we don't care about a few octets unused, please do me a favour. simplify decoding functions. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
more coding rules, simplifications. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
wibble Signed-off-by: Pierre Habouzit <madcoder@debian.org>
simplify block_try function. use a lookup for qp encoding Signed-off-by: Pierre Habouzit <madcoder@debian.org>
small fixes. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
make code a bit more readable. Signed-off-by: Pierre Habouzit <madcoder@debian.org>