return isn't a function FFS Signed-off-by: Pierre Habouzit <madcoder@debian.org>
The NNTP patch is a joke, let's drop it altogether. Reason is that I believe it's not done properly, it has tons of issues, clutters the code, and well, will be revieved, eventually (or maybe not). Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Remove the time module alltogether. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Rewrite is_from efficiently, and put it in lib-mime where it belongs. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Also support missing seconds. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Use str[pf]time. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
x-comment-to is useless in mutt, we can Cc: things as it's a *mailer*. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
rename a bunch of modules Signed-off-by: Pierre Habouzit <madcoder@debian.org>
add some lua in the mime module as well. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
turn charset into a lua package as well. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
small reorg. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
more documentation. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
simplifications around mutt_is_message_type 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>
remove a mutt-ng thing that makes no sense at all. rework OPTWEED handling a bit. 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>
Use m_strncmp instead of strncmp Signed-off-by: Julien Danjou <julien@danjou.info> Signed-off-by: Pierre Habouzit <madcoder@debian.org>
make mutt_match_spam_list a generic rx function: rx_list_match2 that does the same as rx_list_match + expand a template into the given buffer. 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>