Re: [Announce] mutt-1.4 is out.

2002-05-30 Thread Edmund GRIMLEY EVANS

Dave Pearson:

> >  - Mutt now uses the iconv interface for character set conversions.
> >This means that you need either a very modern libc, or Bruno
> >Haible's libiconv, which is available from
> >.
> 
> What sort of version numbers count as "very modern"?

I think glibc >= 2.1.3 should work, while glibc-2.1.2 has a bug which
is detected by mutt's configure, so you shouldn't have any subtle
problems when using glibc. The remark about "very modern libc" is more
aimed at users of other C libraries.

The problem you describe is more likely caused by a bad locale or
charset setting.

Still, installing libiconv shouldn't hurt. Do you really need
--with-iconv=/usr/local? Most systems don't need to be told specially
to look in /usr/local.

The problem with ICONV_CONST might be solved by Lars Hecking's noiconv
patch.

Edmund




Re: [Announce] mutt-1.4 is out.

2002-05-30 Thread Dave Pearson

* Edmund GRIMLEY EVANS <[EMAIL PROTECTED]> [2002-05-30 10:27:39 +0100]:

> The problem you describe is more likely caused by a bad locale or charset
> setting.

That's it. On this box I've not got anything "special" set regarding locale:

,
| davep@hagbard:/usr/local/src/mutt-1.4$ locale
| LANG=POSIX
| LC_CTYPE="POSIX"
| LC_NUMERIC="POSIX"
| LC_TIME="POSIX"
| LC_COLLATE="POSIX"
| LC_MONETARY="POSIX"
| LC_MESSAGES="POSIX"
| LC_ALL=
`

if I prefix the call to mutt with something like "LANG=en_GB" mutt correctly
displays the GBP signs.

Thanks for the pointer.

> The problem with ICONV_CONST might be solved by Lars Hecking's noiconv
> patch.

It did.

-- 
Dave Pearson:  | mutt.octet.filter - autoview octet-streams
http://www.davep.org/  | mutt.vcard.filter - autoview simple vcards
Mutt:  | muttrc2html   - muttrc -> HTML utility
http://www.davep.org/mutt/ | muttrc.sl - Jed muttrc mode



Re: [Announce] mutt-1.4 is out.

2002-05-29 Thread Dave Pearson

* Thomas Roessler <[EMAIL PROTECTED]> [2002-05-29 11:49:46 +0200]:

>  - Mutt now uses the iconv interface for character set conversions.
>This means that you need either a very modern libc, or Bruno
>Haible's libiconv, which is available from
>.

What sort of version numbers count as "very modern"?

I tried building mutt on my system "as is" (RedHat 6.2, lots of updates,
glibc 2.1.3 (-23 is the rpm), I'm assuming that this isn't "very modern")
and it built without incident but I was unable to get it to correctly
display any non-ASCII messages. For example, I sent myself a test email with
a handful of GBP signs in it and, instead of displaying them (as 1.2.5i
does), it displayed \.

Reading up on iconv and charset oriented stuff in the manual didn't seem to
offer any suggestions on what I was doing wrong.

I then downloaded libiconv, built it and installed it (in /usr/local/...). I
then started again, from scratch, with mutt, this time ensuring that I'd
added "--with-iconv=/usr/local" on the configure command line. Building mutt
now dies instead:

,
| gcc -DPKGDATADIR=\"/usr/local/share/mutt\" -DSYSCONFDIR=\"/usr/local/etc\"
| -DBINDIR=\"/usr/local/bin\" -DMUTTLOCALEDIR=\"/usr/local/share/locale\"
| -DHAVE_CONFIG_H=1 -I. -I. -Iintl -I/usr/include/slang -I/usr/local/include
| -I./intl -I/usr/local/include -Wall -pedantic -g -O2 -c patchlist.c
|
| In file included from mutt.h:51,
|  from patchlist.c:5:
| charset.h:39: parse error before `ICONV_CONST'
`

Any pointers on what I'm missing here?

-- 
Dave Pearson:  | mutt.octet.filter - autoview octet-streams
http://www.davep.org/  | mutt.vcard.filter - autoview simple vcards
Mutt:  | muttrc2html   - muttrc -> HTML utility
http://www.davep.org/mutt/ | muttrc.sl - Jed muttrc mode



Re: [Announce] mutt-1.4 is out.

2002-05-29 Thread Lars Hecking

Thomas Roessler writes:
> Mutt-1.4 has been released.  You can download it from the following
> location: .
 
> - Mutt now uses the iconv interface for character set conversions.
>   This means that you need either a very modern libc, or Bruno
>   Haible's libiconv, which is available from
>   .
 
 Here is my patch for configuring mutt without iconv, which unfortunately
 didn't make it into 1.4. It features

 o --disable-iconv configure option
 o correction of INSTALL instructions

 The patch does not include auto* generated files. To use it, you will
 have to have GNU autoconf and GNU automake installed.

 I am not subscribed to mutt-users. If you have any problems with this
 patch, search the mutt-dev list archives, and post to mutt-dev (in this
 order).



diff -ur mutt-1.4.orig/INSTALL mutt-1.4/INSTALL
--- mutt-1.4.orig/INSTALL   2002-04-20 22:40:52.0 +0100
+++ mutt-1.4/INSTALL2002-05-29 14:01:17.509294748 +0100
@@ -237,7 +237,7 @@
 /usr/local/etc.
 
 
-If you really want to, you can configure Mutt --without-iconv, but
+If you really want to, you can configure Mutt --disable-iconv, but
 there will then be no character set conversion.
 
 
diff -ur mutt-1.4.orig/PATCHES mutt-1.4/PATCHES
--- mutt-1.4.orig/PATCHES   2002-04-02 19:48:57.0 +0100
+++ mutt-1.4/PATCHES2002-05-29 14:11:36.235171096 +0100
@@ -0,0 +1 @@
+patch-1.4.lh.noiconv.1
diff -ur mutt-1.4.orig/charset.h mutt-1.4/charset.h
--- mutt-1.4.orig/charset.h 2002-04-20 08:25:49.0 +0100
+++ mutt-1.4/charset.h  2002-05-29 14:01:17.509294748 +0100
@@ -28,8 +28,9 @@
 #endif
 
 #ifndef HAVE_ICONV
+#define ICONV_CONST /**/
 iconv_t iconv_open (const char *, const char *);
-size_t iconv (iconv_t, const char **, size_t *, char **, size_t *);
+size_t iconv (iconv_t, ICONV_CONST char **, size_t *, char **, size_t *);
 int iconv_close (iconv_t);
 #endif
 
diff -ur mutt-1.4.orig/configure.in mutt-1.4/configure.in
--- mutt-1.4.orig/configure.in  2002-05-29 10:29:26.0 +0100
+++ mutt-1.4/configure.in   2002-05-29 14:01:17.519297335 +0100
@@ -665,7 +665,19 @@
 
 dnl -- iconv/gettext --
 
+AC_ARG_ENABLE(iconv, [  --disable-iconv   Disable iconv support],
+[   if test x$enableval = xno ; then
+am_cv_func_iconv=no
+fi
+])
+
 MUTT_AM_GNU_GETTEXT
+
+if test "$am_cv_func_iconv" != "yes"
+then
+  AC_MSG_WARN([Configuring without iconv support. See INSTALL for details])
+else
+
 AC_CHECK_HEADERS(iconv.h,
 [AC_MSG_CHECKING(whether iconv.h defines iconv_t)
  AC_EGREP_HEADER([typedef.*iconv_t],iconv.h,
@@ -674,12 +686,6 @@
 [Define if  defines iconv_t.])],
  AC_MSG_RESULT(no))])
 
-if test "$am_cv_func_iconv" != "yes"
-then
-#  AC_MSG_ERROR([Unable to find an iconv function. See INSTALL for help])
-  AC_MSG_WARN([Unable to find an iconv function. See INSTALL for help])
-else
-
 dnl (1) Some implementations of iconv won't convert from UTF-8 to UTF-8.
 dnl (2) In glibc-2.1.2 and earlier there is a bug that messes up ob and
 dnl obl when args 2 and 3 are 0 (fixed in glibc-2.1.3).
diff -ur mutt-1.4.orig/m4/iconv.m4 mutt-1.4/m4/iconv.m4
--- mutt-1.4.orig/m4/iconv.m4   2002-04-20 22:40:52.0 +0100
+++ mutt-1.4/m4/iconv.m42002-05-29 14:01:23.299261521 +0100
@@ -7,19 +7,14 @@
   dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
   dnl those with the standalone portable GNU libiconv installed).
 
-  AC_ARG_WITH([iconv],
-[  --with-iconv[=DIR]  search for libiconv in DIR/include and DIR/lib], [
-if test "$withval" != no ; then
+  AC_ARG_WITH([libiconv-prefix],
+[  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib], [
 for dir in `echo "$withval" | tr : ' '`; do
   if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
   if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
 done
-else
-  use_iconv=no
-fi
-   ],use_iconv=yes)
+   ])
 
-  if test "$use_iconv" = yes ; then
   AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
 am_cv_func_iconv="no, consider installing GNU libiconv"
 am_cv_lib_iconv=no
@@ -71,6 +66,4 @@
 LIBICONV="-liconv"
   fi
   AC_SUBST(LIBICONV)
-
-  fi # use_iconv
 ])



msg28368/pgp0.pgp
Description: PGP signature


[Announce] mutt-1.4 is out.

2002-05-29 Thread Thomas Roessler

 Mutt-1.4 has been released.  You can download it from the following
 location: .

 Distribution files' MD5 checksums:

 d7a462497c0f17f7e65d42617bc2cc17  diff-1.3.99i-1.4i.gz
 a67bcdf1a1cd53d61ccd3ebf3993ba59  mutt-1.4i.tar.gz

 A completely incomplete list of some people to whom credit is due  
 for the new features in this version follows:

 - Brendan Cully worked on the IMAP support.
 - Daniel E. Eisenbud contributed new threading code.
 - Edmund Grimley Evans contributed utf-8 support.
 - Vsevolod Volkov contributed POP mailbox support.



 Visible changes since 1.2
 -

 Folder formats and folder access

 - Better mh support: Mutt now supports .mh_sequences files.
   Currently, the "unseen", "flagged", and "replied" sequences are
   used to store mutt flags (the names are configurable using the
   $mh_seq_unseen, $mh_seq_flagged, and $mh_seq_replied configuration
   variables). As a side effect, messages in MH folders are no longer
   rewritten upon status changes.

 - The "trashed" flag is supported for maildir folders.  See
   $maildir_trash.

 - POP folder support.  You can now access a POP mailbox just like an
   IMAP folder (with obvious restrictions due to the protocol).

 - URL syntax for remote folders.  You can pass things like
   pop://account@host and imap://account@host/folder as arguments for
   the -f command line flag.

 - STARTTLS support.  If $ssl_starttls is set (the default), mutt
   will attempt to use STARTTLS on servers advertising that
   capability.

 - $preconnect.  If set, a shell command to be executed if mutt fails
   to establish a connection to the server.  This is useful for
   setting up secure connections; see the muttrc(5) for details.

 - $tunnel.  Use a pipe to a command instead of a raw socket.  See
   muttrc(5) for details.  (Basically, it's another way for setting
   up secure connections.)

 - More new IMAP/POP-related variables (see muttrc(5) for details):
   $connect_timeout, $imap_authenticators, $imap_delim_chars,
   $imap_peek, $pop_authenticators, $pop_auth_try_all,
   $pop_checkinterval, $pop_delete, $pop_reconnect, $use_ipv6.

 - The following IMAP/POP-related variables are gone:
   $imap_checkinterval, $imap_cramkey, $pop_port.

 - There's a new imap-fetch-mail function, which forces a check for
   new messages on an IMAP server.

 - The new-mailbox function was renamed to create-mailbox, and is
   bound to C instead of n by default.

 Character set support

 - Mutt now uses the iconv interface for character set conversions.
   This means that you need either a very modern libc, or Bruno
   Haible's libiconv, which is available from
   .

 - With sufficiently recent versions of ncurses and slang, mutt works
   properly in utf-8 locales.

 - On sufficiently modern systems, the $charset variable's value is
   automatically derived from the locale you use.  (Note, however,
   that manually setting it to a value which is compatible with your
   locale doesn't do any harm.)

 - $send_charset is a colon-separated list of character sets now,
   defaulting to us-ascii:iso-8859-1:utf-8.

 - charset-hook defines aliases for character sets encountered in
   messages (say, someone tags his messages with latin15 when he
   means iso-8859-15), iconv-hook defines local names for character
   sets (for systems which don't know about MIME names; see
   contrib/iconv for sample configuration snippets).

 - The change-charset function is gone.  Use edit-type (C-e on the
   compose menu) instead.

 - The recode-attachment function is gone.

 Other changes

 - There's a new variable $compose_format for the compose screen's
   status line.  You can now include the message's approximate
   on-the-wire size.

 - The attachment menu knows about collapsing now: Using
   collapse-parts (bound to "v" by default), you can collapse and
   uncollapse parts of the attachment tree.  This function is also
   available from the pager when invoked from the attachment tree.

   Normally, the recvattach menu will start uncollapsed.  However,
   with the new $digest_collapse option (which is set by default),
   the individual messages contained in digests will be displayed
   collapsed.  (That is, there's one line per message.)

 - Using $display_filter, you can specify a command which filters
   messages before they are displayed.

 - Using message-hook, you can execute mutt configuration commands
   before a message is displayed (or formatted before replying).

 - If you don't want that mutt moves flagged messages to your mbox,
   set $keep_flagged.

 - Setting the $pgp_ignore_subkeys variable will cause mutt to ignore 
   OpenPGP subkeys.  This option is set by default, and it's 
   suggested that you leave it.

 - $pgp_sign_micalg has gone.  Mutt now automatically determines what
   MIC algorithm was used for a particular signature.

 - If $pgp_good_sign is set, then a PGP signature is only cons