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>
Pierre Habouzit [Sun, 29 Oct 2006 18:42:37 +0000 (19:42 +0100)]
move hash.[hc] into lib-lib/
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 29 Oct 2006 15:36:11 +0000 (16:36 +0100)]
move buffer.[hc] into lib-lib/
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 29 Oct 2006 15:19:40 +0000 (16:19 +0100)]
reindent and optimizations in BUFFER* struct.
put the BUFFER type decl in buffer.h where it belongs.
Pierre Habouzit [Sun, 29 Oct 2006 14:48:45 +0000 (15:48 +0100)]
use safer p_clear when possible.
Pierre Habouzit [Sun, 29 Oct 2006 14:07:39 +0000 (15:07 +0100)]
xterm.c was absurd, no need to put trivial functions like this in a
separate C module.
Pierre Habouzit [Sun, 29 Oct 2006 14:01:48 +0000 (15:01 +0100)]
license statements.
Pierre Habouzit [Sun, 29 Oct 2006 13:57:36 +0000 (14:57 +0100)]
move ascii.* into the lib-lib.
inline some functions.
Pierre Habouzit [Sun, 29 Oct 2006 13:40:43 +0000 (14:40 +0100)]
use m_strdup and m_strlen that are inlined for efficiency
Pierre Habouzit [Sun, 29 Oct 2006 12:48:08 +0000 (13:48 +0100)]
small fix
Pierre Habouzit [Sun, 29 Oct 2006 12:36:41 +0000 (13:36 +0100)]
more updates in the build system, gettext related.
Pierre Habouzit [Sun, 29 Oct 2006 11:53:22 +0000 (12:53 +0100)]
update gettext
Pierre Habouzit [Sun, 29 Oct 2006 11:40:01 +0000 (12:40 +0100)]
move intl.h into lib-lib/macros.h
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 29 Oct 2006 01:45:56 +0000 (02:45 +0100)]
oops, makedoc is used in the build process.
Pierre Habouzit [Sun, 29 Oct 2006 01:42:08 +0000 (02:42 +0100)]
we don't use strdup in mutt sources anymore, remove that compat file
Pierre Habouzit [Sun, 29 Oct 2006 01:37:30 +0000 (02:37 +0100)]
update gettext copy.
we don't care about OSes that do not have a snprintf
Pierre Habouzit [Sun, 29 Oct 2006 01:09:23 +0000 (02:09 +0100)]
exit mem_realloc, enters p_realloc/xrealloc.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 29 Oct 2006 00:17:43 +0000 (02:17 +0200)]
fix regressions
Pierre Habouzit [Sat, 28 Oct 2006 23:03:25 +0000 (01:03 +0200)]
fix segfault
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 28 Oct 2006 22:55:24 +0000 (00:55 +0200)]
mem_calloc -> p_new
Pierre Habouzit [Sat, 28 Oct 2006 21:56:10 +0000 (23:56 +0200)]
drop mem_alloc and mem_free, use my own hand crafted optmized macros that
are *WAY* better to find allocation bugs.
found 5 or 6 of'em (mostly will generate crashes)
Pierre Habouzit [Sat, 28 Oct 2006 19:22:45 +0000 (21:22 +0200)]
missing includes, intializers, consts
Pierre Habouzit [Sat, 28 Oct 2006 18:54:04 +0000 (20:54 +0200)]
force our cflags in subdirs as well.
more consts, less warnings.
Pierre Habouzit [Sat, 28 Oct 2006 14:23:53 +0000 (16:23 +0200)]
less warnings
Pierre Habouzit [Sat, 28 Oct 2006 01:40:04 +0000 (03:40 +0200)]
fix a segfault introduced by some nasty const /o\
rewrites.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 28 Oct 2006 01:20:13 +0000 (03:20 +0200)]
more constness.
simplifications.
Pierre Habouzit [Sat, 28 Oct 2006 00:54:12 +0000 (02:54 +0200)]
missing 'WHERE' aka missing extern.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 28 Oct 2006 00:49:38 +0000 (02:49 +0200)]
more fixes
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 28 Oct 2006 00:37:25 +0000 (02:37 +0200)]
we're grownups now. don't care about stupid OS'es that don't know what an
off_t is. we're in 2006 not 1980
also use %zd instead of ugly %lld
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sat, 28 Oct 2006 00:25:32 +0000 (02:25 +0200)]
use a proper "hack" for iconv functions:
- use macros instead of empty functions (WTF?) when we don't have iconv
enabled.
- use my_iconv (static inline) responsible of unconstifying some
argument, so that we can work with constness correctly.
various fixes.
Pierre Habouzit [Fri, 27 Oct 2006 23:39:39 +0000 (01:39 +0200)]
the “I found my first real bug” commit.
yes, compiler warning flags are useful you know ?
also remove the very bad ICONV_CONST idea. if your compiler is stupid
enough not to know about const, then compile with -Dconst and stop the
bullshit.
Pierre Habouzit [Fri, 27 Oct 2006 23:13:16 +0000 (01:13 +0200)]
warning fixes
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Fri, 27 Oct 2006 22:44:00 +0000 (00:44 +0200)]
updates, use compiler warnings, we have a good one, do that.
Pierre Habouzit [Fri, 27 Oct 2006 22:18:55 +0000 (00:18 +0200)]
more and more cleansing
Pierre Habouzit [Fri, 27 Oct 2006 22:04:14 +0000 (00:04 +0200)]
remove patchlist things, and more generated and commited things.
Pierre Habouzit [Fri, 27 Oct 2006 21:52:45 +0000 (23:52 +0200)]
configure with almost all options set
Pierre Habouzit [Fri, 27 Oct 2006 21:44:15 +0000 (23:44 +0200)]
remove cruft from the repo.
don't use acconfig.h anymore.
Pierre Habouzit [Fri, 27 Oct 2006 21:08:57 +0000 (23:08 +0200)]
clean repo
nion [Sat, 29 Apr 2006 11:26:43 +0000 (11:26 +0000)]
Nico Golde:
- corrected missing tag
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@804
e385b8ad-14ed-0310-8656-
cc95a2468c6d
nion [Thu, 27 Apr 2006 18:36:02 +0000 (18:36 +0000)]
Nico Golde:
- fixed Error: no ID for constraint linkend: smtp-envelope. caused by missing xml link
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@803
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Wed, 5 Apr 2006 19:01:06 +0000 (19:01 +0000)]
Rocco Rutte:
- fix build on cygwin if struct dirent doesn't define d_ino
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@802
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Tue, 4 Apr 2006 07:53:49 +0000 (07:53 +0000)]
From: Arnaud Lacombe <al@sigfpe.info>
Rocco Rutte:
- remove useless debug printing of user/password in IMAP code since we're logging full socket traffic at $debug_level==5 already
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@801
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Tue, 4 Apr 2006 07:51:11 +0000 (07:51 +0000)]
From: Arnaud Lacombe <al@sigfpe.info>
Rocco Rutte:
- fix the underlying problem of the str_dup()-issue for IMAP
- fix imap_login overwriting imap_user as documented
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@800
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Tue, 4 Apr 2006 07:44:47 +0000 (07:44 +0000)]
From: Arnaud Lacombe <al@sigfpe.info>
Rocco Rutte:
- don't remove libgnuintl.h.in of included gettext but libgnuintl.h instead
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@799
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Mon, 3 Apr 2006 10:57:24 +0000 (10:57 +0000)]
Rocco Rutte:
- back out last str_dup() change as it breaks IMAP logins (and likely more places where '!s' tests are done but not '!*s') (reported on IRC and by Trey Sizemore <trey@fastmail.fm>); for the f=f crash, fix f=f handler instead
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@798
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Fri, 31 Mar 2006 20:24:18 +0000 (20:24 +0000)]
From: Olivier Fredj <olivier@fredj.org>
Rocco Rutte:
- make our own str_dup() return copy of "" (=="\0") if called with "" (fixes at least one crash in f=f handler which assumes that a copy of "" returns !=NULL)
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@797
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Thu, 23 Mar 2006 10:22:45 +0000 (10:22 +0000)]
Rocco Rutte:
- include patch #938 to fix bug #6459
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@796
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Thu, 23 Mar 2006 10:21:28 +0000 (10:21 +0000)]
Rocco Rutte:
- Argh! Revert commit of auto-generated files
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@795
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Thu, 23 Mar 2006 10:16:22 +0000 (10:16 +0000)]
Rocco Rutte:
- include patch #936 to fix bug #6770
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@794
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Thu, 23 Mar 2006 10:14:02 +0000 (10:14 +0000)]
Rocco Rutte:
- include patch #937 to fix bug #6771
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@793
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Thu, 23 Mar 2006 10:01:00 +0000 (10:01 +0000)]
From: Konstantin Sobolev <kos@supportwizard.com>
Rocco Rutte:
- don't ignore ANSI colors with $allow_ansi under some circumstances
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@792
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Tue, 14 Mar 2006 10:36:31 +0000 (10:36 +0000)]
From: Lars Noschinski <cebewee@gmx.de>
Rocco Rutte:
- fix manual building if srcdir!=builddir
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@791
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Mon, 27 Feb 2006 12:39:19 +0000 (12:39 +0000)]
Rocco Rutte:
- align (hopefully ;-) all status and help lines to start next to sidebar (if visible)
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@790
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Sun, 26 Feb 2006 16:59:34 +0000 (16:59 +0000)]
Rocco Rutte:
- don't force buffy check when entering compose menu after edit; let it decide checks based on regular timeouts
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@789
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Sat, 25 Feb 2006 10:20:23 +0000 (10:20 +0000)]
Rocco Rutte:
- include bug fix for #5589
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@788
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Fri, 24 Feb 2006 13:08:17 +0000 (13:08 +0000)]
Rocco Rutte:
- fix a crash when calc_boundaries() is called too early (no info about terminal height yet)
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@787
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Thu, 23 Feb 2006 08:05:37 +0000 (08:05 +0000)]
Rocco Rutte:
- re-calculate sidebar boundaries upon non-interactive change of current folder
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@786
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Mon, 20 Feb 2006 16:38:10 +0000 (16:38 +0000)]
Rocco Rutte:
- yet another sidebar scrolling fix
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@785
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Mon, 20 Feb 2006 15:28:02 +0000 (15:28 +0000)]
Rocco Rutte:
- dirty fix compose screen's attachment where lines are too long (due to mutt_FormatString() ignoring sidebar) (reported by Michael Kjorling <michael@kjorling.com>)
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@784
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Mon, 20 Feb 2006 15:26:45 +0000 (15:26 +0000)]
From: Lars Ellenberg <l.g.e@web.de>
Rocco Rutte:
- fix sidebar scrolling/offset issue where pointer gets hidden by status line
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@783
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Sun, 12 Feb 2006 23:15:56 +0000 (23:15 +0000)]
From: Konstantin Sobolev <kos@supportwizard.com>
Rocco Rutte:
- respect terminal's colors instead of b/w for $allow_ansi
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@782
e385b8ad-14ed-0310-8656-
cc95a2468c6d
pdmef [Sat, 11 Feb 2006 23:36:46 +0000 (23:36 +0000)]
- decrease file size when truncating it for editing so detecting changes works again (fixes bug #6000)
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@781
e385b8ad-14ed-0310-8656-
cc95a2468c6d