Pierre Habouzit [Tue, 7 Nov 2006 00:27:09 +0000 (01:27 +0100)]
check for gperf
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 6 Nov 2006 23:49:08 +0000 (00:49 +0100)]
replace the pathetic mutt_parse_rfc822_line function with a really better
looking one.
that code uses gperf to generate the string -> enum function, so that we
don't have to do a thing to hash them.
we improved:
* readability (the C code is way better)
* efficiency
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 6 Nov 2006 21:46:29 +0000 (22:46 +0100)]
reorganize code so that the rfc822parse.c does not needs lib-crypt nor
mx.h
Pierre Habouzit [Mon, 6 Nov 2006 02:05:02 +0000 (03:05 +0100)]
fix regression due to too fast rewrite
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 6 Nov 2006 01:36:01 +0000 (02:36 +0100)]
simplify mutt_parse_date
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 6 Nov 2006 00:44:30 +0000 (01:44 +0100)]
typo
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 6 Nov 2006 00:43:25 +0000 (01:43 +0100)]
more simplifications and header moves
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 22:18:42 +0000 (23:18 +0100)]
simplify parse_parameters tokenizer
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 20:21:51 +0000 (21:21 +0100)]
use my own APIS for headers, parameters and so on
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 19:41:34 +0000 (20:41 +0100)]
simplify mutt_parse_references
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 16:56:39 +0000 (17:56 +0100)]
rewrite mutt_read_rfc822_header to have a more consistent API.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 15:42:18 +0000 (16:42 +0100)]
rework some includes
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 15:37:54 +0000 (16:37 +0100)]
forgotten config.h inclusion
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 15:20:53 +0000 (16:20 +0100)]
put some comments to make the header reading easier
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 15:16:47 +0000 (16:16 +0100)]
move rfc822 related types into lib-mime/mime-types.h out of mutt.h.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 15:06:54 +0000 (16:06 +0100)]
move parse.c into rfc822parse.c in the lib-mime as it's what it's about
for real :)
now we will optimize that code together :]
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 14:47:46 +0000 (15:47 +0100)]
push some date functions in the lib-lib.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 02:04:17 +0000 (03:04 +0100)]
bwahahaa, please build with -g enabled :)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 01:52:38 +0000 (02:52 +0100)]
drop the builtin so called editor and the mailx feature we really dont
care about.
remove associated settings as well.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 01:26:25 +0000 (02:26 +0100)]
small leftover
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 01:19:01 +0000 (02:19 +0100)]
fix regression. make the hook types be ints.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 01:01:24 +0000 (02:01 +0100)]
forgot to add Makefile.am
Pierre Habouzit [Sun, 5 Nov 2006 00:40:46 +0000 (01:40 +0100)]
reorganize code a lot: create a lib-crypt with everything smime or gpg
related
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 5 Nov 2006 00:11:18 +0000 (01:11 +0100)]
always build imap as well.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 23:48:34 +0000 (00:48 +0100)]
always build POP support, we do a /mail/ client, right ?
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 23:35:54 +0000 (00:35 +0100)]
less and less cruft: always compile socket support in
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 23:14:42 +0000 (00:14 +0100)]
and even less very old hacks.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 23:02:54 +0000 (00:02 +0100)]
--with-domain= is a joke
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 22:57:26 +0000 (23:57 +0100)]
and more.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 22:53:59 +0000 (23:53 +0100)]
drop oldies
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 22:50:16 +0000 (23:50 +0100)]
always use compressed mode.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 22:45:06 +0000 (23:45 +0100)]
we don't care about sun attachments, this is long dead
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 22:25:52 +0000 (23:25 +0100)]
always build mutt with pgp + smime support.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 21:45:41 +0000 (22:45 +0100)]
always build pgp support.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 17:31:39 +0000 (18:31 +0100)]
mostly reindents.
we need to simplify that :|
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 17:08:36 +0000 (18:08 +0100)]
cosmetics
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 15:30:47 +0000 (16:30 +0100)]
small leftovers
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Julien Danjou [Sat, 4 Nov 2006 14:37:46 +0000 (15:37 +0100)]
[PATCH] Fix multiple compilation warnings
Signed-off-by: Julien Danjou <julien@danjou.info>
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 15:26:20 +0000 (16:26 +0100)]
drop the old string API fully.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 14:37:53 +0000 (15:37 +0100)]
always build the dotlock program standalone, many other appplications use
it, so …
one more step toward mutt build system simplification.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 14:21:15 +0000 (15:21 +0100)]
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>
Pierre Habouzit [Sat, 4 Nov 2006 13:44:00 +0000 (14:44 +0100)]
more coding rules, simplifications.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 01:49:29 +0000 (02:49 +0100)]
make update-po and fix uk.po
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 01:46:37 +0000 (02:46 +0100)]
wibble
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Julien Cristau [Sat, 4 Nov 2006 01:10:29 +0000 (02:10 +0100)]
[PATCH] version.h doesn't depend on Makefile.am
Signed-off-by: Julien Cristau <julien@patate.is-a-geek.org>
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 01:38:31 +0000 (02:38 +0100)]
don't hide macro.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 01:35:36 +0000 (02:35 +0100)]
simplify block_try function.
use a lookup for qp encoding
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 00:52:26 +0000 (01:52 +0100)]
oops
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 00:50:31 +0000 (01:50 +0100)]
fix small bug from julien
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Julien Danjou [Sat, 4 Nov 2006 00:43:36 +0000 (01:43 +0100)]
[PATCH] Fix compilations warnings
Signed-off-by: Julien Danjou <julien@danjou.info>
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 00:45:17 +0000 (01:45 +0100)]
small fixes.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 4 Nov 2006 00:14:59 +0000 (01:14 +0100)]
make code a bit more readable.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Fri, 3 Nov 2006 23:25:04 +0000 (00:25 +0100)]
forgot to remove
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Fri, 3 Nov 2006 23:23:25 +0000 (00:23 +0100)]
fix signedness issues.
now the rewrite will begin
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Fri, 3 Nov 2006 23:12:49 +0000 (00:12 +0100)]
Patch from Julien danjou: fix a couple of compilation warnings.
Pierre Habouzit [Fri, 3 Nov 2006 23:07:39 +0000 (00:07 +0100)]
ooops, make it compile again.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Fri, 3 Nov 2006 23:04:45 +0000 (00:04 +0100)]
move rfc2047.c into lib-mime, reindent it.
replace str_replace with m_strreplace. I don't like that function at all.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Fri, 3 Nov 2006 22:13:04 +0000 (23:13 +0100)]
begin to move rfc2047 into lib-mime.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Fri, 3 Nov 2006 21:32:04 +0000 (22:32 +0100)]
wibble.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Fri, 3 Nov 2006 21:30:43 +0000 (22:30 +0100)]
rfc822 final touch
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Fri, 3 Nov 2006 15:46:24 +0000 (16:46 +0100)]
even better and simpler parser.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Fri, 3 Nov 2006 02:27:47 +0000 (03:27 +0100)]
forgotten debug
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Fri, 3 Nov 2006 02:26:43 +0000 (03:26 +0100)]
simplify rfc822 parsing *A LOT*
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Thu, 2 Nov 2006 22:11:19 +0000 (23:11 +0100)]
make address functions a lot better, and less error prone.
reuse SLIST inlines.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Thu, 2 Nov 2006 22:10:09 +0000 (23:10 +0100)]
more useful list primitives
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Thu, 2 Nov 2006 21:17:53 +0000 (22:17 +0100)]
missing include
Pierre Habouzit [Thu, 2 Nov 2006 21:15:37 +0000 (22:15 +0100)]
add some list functions.
fix compilation warnings.
add cflags.
add ssizeof
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Thu, 2 Nov 2006 21:00:43 +0000 (22:00 +0100)]
use my usual API's for allocation/deallocation right now.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Thu, 2 Nov 2006 20:44:40 +0000 (21:44 +0100)]
ADDRESS -> address_t
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Thu, 2 Nov 2006 20:41:22 +0000 (21:41 +0100)]
move rfc822.c as well
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Thu, 2 Nov 2006 19:24:33 +0000 (20:24 +0100)]
brand new flag, to spot a whole lot of new errors.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Thu, 2 Nov 2006 01:27:23 +0000 (02:27 +0100)]
forgotten add.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Thu, 2 Nov 2006 01:20:01 +0000 (02:20 +0100)]
lot of restructurations. work in progress, *but* it does not seems to
break anything.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Thu, 2 Nov 2006 00:16:41 +0000 (01:16 +0100)]
add more encoding arrays
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Wed, 1 Nov 2006 23:43:44 +0000 (00:43 +0100)]
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>
Pierre Habouzit [Wed, 1 Nov 2006 23:20:25 +0000 (00:20 +0100)]
macros to create usual functions : new/delete and init/wipe.
we will use __attribute__ so add the define so that it compiles on other
compilers well
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Wed, 1 Nov 2006 23:19:30 +0000 (00:19 +0100)]
set our own cflags, I don't care about -pedantic
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Wed, 1 Nov 2006 22:54:47 +0000 (23:54 +0100)]
begin to work on a lib-mime that will hold most of the MIME related stuff.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Wed, 1 Nov 2006 01:49:49 +0000 (02:49 +0100)]
the C gods blessed us with a preprocessor, use it.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Wed, 1 Nov 2006 00:15:49 +0000 (01:15 +0100)]
mappings as standalone module
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Tue, 31 Oct 2006 23:48:23 +0000 (00:48 +0100)]
I don't care about the release date.
remove one more uglyness
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Tue, 31 Oct 2006 23:28:28 +0000 (00:28 +0100)]
indent is a fool
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Tue, 31 Oct 2006 23:23:46 +0000 (00:23 +0100)]
push more things in the str lib.
remove many duplicated arrays :|
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Tue, 31 Oct 2006 23:01:50 +0000 (00:01 +0100)]
move some decoding functions right into the str module, with a bit more
optimized arrays.
Pierre Habouzit [Mon, 30 Oct 2006 23:41:20 +0000 (00:41 +0100)]
replace SKIPWS with a proper inline func with the right API.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 30 Oct 2006 22:57:13 +0000 (23:57 +0100)]
unused, drop
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 30 Oct 2006 22:55:24 +0000 (23:55 +0100)]
exit strfcpy, only use m_strcpy.
add m_strisempty that checks !s || !*s
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 30 Oct 2006 21:49:09 +0000 (22:49 +0100)]
remove yet anoter round of str_* functions, replaced with their inlineable
counterparts.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 30 Oct 2006 16:56:27 +0000 (17:56 +0100)]
fix sidebar counters.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 30 Oct 2006 16:48:38 +0000 (17:48 +0100)]
make m_dupstr return NULL if the string was empty.
Pierre Habouzit [Mon, 30 Oct 2006 16:19:45 +0000 (17:19 +0100)]
make code more readable.
fix a bug with uninitialized values.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 30 Oct 2006 16:04:16 +0000 (17:04 +0100)]
drop str_[n]cat.
write mutt_get_localpart more efficiently avoiding the use of a local
buffer.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 30 Oct 2006 11:50:19 +0000 (12:50 +0100)]
less horrible strncpy's
fix Makefile.am
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 30 Oct 2006 11:11:32 +0000 (12:11 +0100)]
fix regression, propably due to some changes in the string API
Pierre Habouzit [Mon, 30 Oct 2006 09:38:20 +0000 (10:38 +0100)]
missing file
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 29 Oct 2006 23:32:31 +0000 (00:32 +0100)]
revamp lib.[hc] functions into lib-lib/file.[hc].
also add some useful and safe m_str* functions
Pierre Habouzit [Sun, 29 Oct 2006 21:46:37 +0000 (22:46 +0100)]
FOREVER is of very bad taste, use for (;;)
Pierre Habouzit [Sun, 29 Oct 2006 20:13:50 +0000 (21:13 +0100)]
create a lib-hash.a with sha1 and md5.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 29 Oct 2006 19:38:59 +0000 (20:38 +0100)]
move list.[hc] into lib-lib.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 29 Oct 2006 19:20:02 +0000 (20:20 +0100)]
exit str_cmp enters m_strcmp
Signed-off-by: Pierre Habouzit <madcoder@debian.org>