tmp 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>
Use good m_ functions, because it smell like a flower, version 2. This is a whole bunch of update for using more m_* functions. Some calculation should be checked, maybe I made some mistakes. Not good at math. There is also some _CHECKED__ comments removed because I got my head checked by a jumbot jet. Signed-off-by: Julien Danjou <julien@danjou.info> Signed-off-by: Pierre Habouzit <madcoder@debian.org>
force rfc2047_parameters to be set to yes, and non configureable. 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>
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>
move all the parameter related functions into the lib-mime. rename the type and the APIs Signed-off-by: Pierre Habouzit <madcoder@debian.org>
use more ad-hoc list handling function, and avoid to muck with ->next pointer ourselves Signed-off-by: Pierre Habouzit <madcoder@debian.org>
rework includes a bit Signed-off-by: Pierre Habouzit <madcoder@debian.org>
rationalize list handling in mutt a bit. 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>
use my own APIS for headers, parameters and so on Signed-off-by: Pierre Habouzit <madcoder@debian.org>
make code a bit more readable. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
begin to move rfc2047 into lib-mime. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
lot of restructurations. work in progress, *but* it does not seems to break anything. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
more work in the lib-mime. begin to "rewr^H^Had" the code in rfc2231.c be more clever when we use hexval, it already does isxdigit job. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
begin to work on a lib-mime that will hold most of the MIME related stuff. Signed-off-by: Pierre Habouzit <madcoder@debian.org>