return isn't a function FFS Signed-off-by: Pierre Habouzit <madcoder@debian.org>
mutt_enter_string is only used for _mutt_get_field for real. Hide it. Note: I'd like to get rid of that poo and replace with a proper readline-like ncurses-aware widget that comes with all the vi/emacs bindings ready :/ 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>
Have a lib-ui/lib-ui.h Signed-off-by: Pierre Habouzit <madcoder@debian.org>
rename a bunch of modules Signed-off-by: Pierre Habouzit <madcoder@debian.org>
fix warnings. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
merge crypt back into $top_builddir :) Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Even remove more code. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
push username, homedir and tmpdir in lua too. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
some simplifications. 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>
Remove unused code Signed-off-by: Julien Danjou <julien@danjou.info> Signed-off-by: Pierre Habouzit <madcoder@debian.org>
fclose -> m_fclose Signed-off-by: Pierre Habouzit <madcoder@debian.org>
remove some mutt_mktemp Signed-off-by: Pierre Habouzit <madcoder@debian.org>
put old m_snsubst into file.c as m_file_fmt. implement m_temp{fd,file} functions to replace mutt_(adv_)mktemp, that work like that: m_tempFOO(dst, dstlen, tmpdir, fmt). it returns either a fd or a FILE* (check it's properly >= 0 or !NULL !!!) and put the chose name in the buffer dst of size dstlen. tmpdir is the directory where to create files. fmp is a file format, where we strip any directory part, then use the remains like that: - if there is a %s specifier, fmt is used as a simple file format specifier, and %s is substituted with a temporary file name. - if there is no %s specifier, fmt is supposed to be a file name we want to take as model, meaning we just want to copy its extension. So if you pass "foo.jpg" as a fmt, the resulting file name will end in .jpg mark mutt_(adv_)?mktemp functions as obsolete, and currently reimplement them with m_temp* functions as a proof of concept. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
move functions around. replace mutt_expand_fmt with m_snsubst that has a more coherent API now. Signed-off-by: Pierre Habouzit <madcoder@madism.org>
create the lib-mx now Signed-off-by: Pierre Habouzit <madcoder@madism.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>