Rocco Rutte [Sat, 17 May 2008 18:08:09 +0000 (11:08 -0700)]
When necessary, convert strings to utf-8 in the header cache.
If iconv is unavailable, include the charset in effect as part of the
cache file name. Closes #3023.
Rocco Rutte [Tue, 15 Jan 2008 16:34:44 +0000 (17:34 +0100)]
Prepend './' to (some) suggested filenames when saving attachments.
Attachment filenames may start with characters that are special to
mutt_expand_path() may cause undesired expansion. Closes #1719.
Rocco Rutte [Mon, 14 Jan 2008 21:54:12 +0000 (22:54 +0100)]
hcache: Fetch data for correct message from hcache.
With $maildir_header_cache_verify set (the default), the list (and thus
the current) header change after data was fetched from hcache making
some message appear as duplicate. Now fetch data for the correct message
after possible in-place inode sorting altering file order. See debian
bug #459739.
Rocco Rutte [Tue, 11 Dec 2007 13:58:31 +0000 (14:58 +0100)]
POP: Name hcache the way IMAP does.
Place the file under $header_cache/<url>/mutt.hcache. For now ignore
that this may break if hcache == bcache and a message's uid is
"mutt.hcache" (extremely unlikely) in which case the user will loose
only the hcache file.
Rocco Rutte [Tue, 11 Dec 2007 12:08:42 +0000 (13:08 +0100)]
Do not trust history file and mutt code about history class.
This prevents crashes as result of programming errors and/or wrong history file
(e.g. negative or too high classes).
Michael Elkins [Sat, 8 Dec 2007 20:54:54 +0000 (12:54 -0800)]
Skip over messages which were previously parsed after sorting the tail of the
list. Avoids a segmentation fault when rescanning the new/ subdir of a maildir
when messages were left over from a previous scan.
Rocco Rutte [Wed, 5 Dec 2007 09:03:59 +0000 (10:03 +0100)]
Improve inode sorting, enable it by default and add MH support.
Sorting is done on-demand only before the first stat() or open()
($maildir_header_cache_verify=yes/hcache miss). Furthermore, only a
partial list of messages starting from that item is sorted reducing
sorting overhead in most cases. For a fully hcache'd folder with
$maildir_header_cache_verify=no, no sorting is needed and no sorting
will be done.
MH parsing is now two-pass, too to simplify the code and remove
duplication.
Rocco Rutte [Thu, 29 Nov 2007 14:24:38 +0000 (15:24 +0100)]
Add a really ugly hack to make sure the plain text manual is us-ascii.
The hack is filtering manual.html to another HTML file but replacing
unicode chars by their ascii equivalents. The intermediate file is used
to dump HTML to us-ascii text (and only for that).
Rocco Rutte [Mon, 19 Nov 2007 14:32:47 +0000 (15:32 +0100)]
Make f=f handler multibyte-aware by not buffering flowed content until it's finished.
We now write out content as we read it (which simplifies the code quite
a bit) and properly flow multibyte paragraphs. This should improve
DelSp=yes handling where a flowed paragraph may not have spaces at all
except trailing ones for flowable paragraphs (after concatenating lines
we didn't have access to the original break points any longer). We still
split content by ASCII space (this should be safe as f=f itself uses
ASCII space to mark flowable lines (even for languages that aren't
expected to use spaces, see DelSp). Closes #862.
Rocco Rutte [Thu, 15 Nov 2007 12:17:16 +0000 (13:17 +0100)]
Fix more documentation build issues.
Define USE_SASL (for $smtp_authenticators) in makedoc-defs.h, include it
in makedoc.c to force doc rebuild if makedoc-defs.h changes.
Rocco Rutte [Tue, 13 Nov 2007 10:50:24 +0000 (11:50 +0100)]
Document that %f in $index_format is either Return-Path: or From:
depending on which parses correctly. Also note that alternates' regex
should be as precise as possible to avoid mismatches. Closes #1894.
Michael Elkins [Fri, 9 Nov 2007 06:13:45 +0000 (22:13 -0800)]
Removed the [!] prefix from the usage from the usage string for the un/mailboxes command since it has no special meaning in this context other than referring to $spoolfile.
Brendan Cully [Thu, 8 Nov 2007 19:48:21 +0000 (11:48 -0800)]
Add $time_inc to control progress update frequency.
I found 250ms to be noticeably different from the old behaviour, and
it ruins the rounding of the other _inc variables.
Rocco Rutte [Tue, 6 Nov 2007 17:23:06 +0000 (18:23 +0100)]
Add percentages to progress bar optionally supplied by caller.
This is necessary to let the mbox driver print useful percentages. If there's no
percentage given and we have a size, calculate on it on our own. Closes #2929.