Elm ME+ 2.5 PLalpha44 announcement

Elm ME+ 2.5 PLalpha44

- Is available with
        <URL: http://www.elmme-mailer.org/elm-ME+2.5/src/elm-ME+2.5.PLalpha44.patch.gz >
  and   <URL: http://www.elmme-mailer.org/elm-ME+2.5/src/elm-ME+2.5.alpha44.tar.gz >
  via WWW.

- Is available on ftp.funet.fi
  via anonymous ftp
    directory  pub/mirrors/elmme-mailer.org/mirror/src/elm-ME+2.5/
           or  pub/unix/mail/elm/elm-ME+2.5/

    files      elm-ME+2.5.PLalpha44.patch.gz
    and        elm-ME+2.5.alpha44.tar.gz

  or is available with
        <URL: http://www.nic.funet.fi/pub/unix/mail/elm/elm-ME+2.5/elm-ME+2.5.PLalpha44.patch.gz >
  and   <URL: http://www.nic.funet.fi/pub/unix/mail/elm/elm-ME+2.5/elm-ME+2.5.alpha44.tar.gz >
  via WWW.

- Is available with
  message-id <elmME+2.5/PLalpha44/1-0@klovni.keh.iki.fi>
  on newsgroups alt.sources and comp.mail.elm.

SUMMARY: This command adds preview functionality
         to "Mail Pre-Send Screen" and adds 
         "weedout-without-title" option to 
         elmrc. This release no longer quits
         parsing IMAP mailbox when IMAP FETCH command
         fails to retrieve header block of mail.

Changes on Elm ME+ 2.5 PLalpha44 compared with Elm ME+ 2.5 PLalpha43

        SUMMARY: This command adds preview functionality
                 to "Mail Pre-Send Screen" and adds 
                 "weedout-without-title" option to 
                 elmrc. This release no longer quits
                 parsing IMAP mailbox when IMAP FETCH command
                 fails to retrieve header block of mail.

        - Space -key on "Mail Pre-Send Screen" previews
          message for sending.  This is not exactly same
          message than what will be mailed. PreV)iew menu 
          -command "Mail Pre-Send Screen" goes to "Mail 
          Preview Screen". Prev)iew parts command
          displays mime structure of prepared message.
          Effectively 'V' command toggles between
          "Mail Pre-Send Screen" and "Mail Preview Screen".
        - Added elmrc option "weedout-without-title".
          That is used instead of "weedout" when mail
          is viewed on  "Mail Preview Screen"
        - 'H' -command on "Mail Pre-Send Screen" previews
          message with all headers (ignore 
          weedout-without-title list).
        - Added function have_ispell() to mailmsg2.c
        - Added elm_append_message() to
        - Changed menu text on "Mail Pre-Send Screen".

        - Microsoft Exchange Server 2013 IMAP4 server sametimes
          returns no data for 
          command. Elm ME+ no longer abort reading
          rest of mailbox on that situation.

        New file:

        New elmrc option:


        - Not compiled with MMDF support defined, so probably it doesn't 
          work (or even compile).

        - This has not been tested much so there can be bad bugs. 

          Bug reports to: Kari E. Hurtta <elm@elmme-mailer.org>
                                     (was hurtta+elm@posti.FMI.FI)

        - Internationalized (ie. non-ASCII) domain names are not supported.

        - Support for multipart/signed and multipart/encrypted (specially: 
          support for PGP/MIME) only in reading side. There is no support 
          for attachments with multipart/encrypted.

        - HP's shoftkeys are no longer supported

        - DECNET addresses like host::user may be interpreted as phrase
          of group syntax or as route of source routed address.

        - Header editing screen now uses addresses in form phrase <address>, 
          but because it does not require using of comma (,), multiword 
          phrases must be entered in quotes. 

          For example:  "Kari Hurtta" <hurtta>

        - If address includes <> or comments (), they are not aliased 
          expanded. So aliases must be entered as bare words.

        - Addresses given as arguments to elm command should be given
          as one address per argument. Giving of sevaral addresses per 
          one argument causes that address is misparsed if header is 
          edited on header editing screen.

          That is:

                Use:    elm  '"Kari Hurtta" <hurtta>' 'Admin <root>'

          Don't use:    elm  'Kari Hurtta <hurtta>, Admin <root>'

        - p)rint command acts as P)rint text -command. So it
          is currently quite useless.
          p)rint command does that via readmsg -command. However
          P)rint text does actually same (without readmsg).

        - Some Linux libraries does not follow $LC_CTYPE when program is 
          setgid. Net result is that your locale is always C. That is 
          visible that $LC_CTYPE does not effect to locale printed by 
          'elm -vvvvv':

                Locale (LC_CTYPE):         C
                Display character-set:     US-ASCII
                Sending character-set:     US-ASCII

        - All refrences iso2022 maps are parsed and read to memory. 
          This may cause quite big memory consumption specially because 
          eastern (multibyte) sets tend to be lot of characters. That 
          mapping information should be shared between processes to 
          reduce memory consuption.

        - If display charset is produced by using mapping from locale 
          to charset where charset definition is later invalidated 
          ("removed") by setting explicit compatcharsets on user's 
          .elm/elmrc, that may  cause PANIC on elm's internal pager 
          or other problems. Invalidation happens if display charset 
          is on implicit compatcharsets list (because of charset 
          definition), but does not have explicit compatcharsets list 
          given by user. 

        - Neither Unicode didirectional algorithm nor Right-Left scripts 
          are supported.

        - In some situations two Status headers may be generated two 
          Status headers -- one by IMAP deamon and one from APPENDed 
        - When APPENDing message to IMAP folder (which is normal UNIX 
          mailbox format) original "From " separator line can not be 
          preserved -- specially it is not possible to pass envelope 
          sender address.
        - For UTF-8 charset Elm only knows printable characters from 
          Latin/1 range, if unicode database (see elmrc option "unidata")
          is not loaded.

        - For using of ISO2022 character sets it is required that mapping 
          them to unicode is know -- otherwise Elm ME+ does not know which 
          characters are printable.

        - UTF-16 surrogate pairs (D800-DFFF) are not supported on UTF-7 

        - Mixing of names using IMAP naming convention 
          (imap-naming-convention = yes)
          and names using imap-charset does not work very well...

        - "  Regarding my message (8 Aug 2000) regarding 'newmail' on 
           AIX 4.3.3 in an 'aixterm' window and the 'aixterm' did not 
          close, indeed the problem was NOT related to 'newmail' but an 
          AIX bug.

          IBM has release a patch, and the 'aixterm' in AIX 4.3.3 must
          be update with fileset X11.apps.aixterm. (PTF
          U473920) is solved to problem."
         From: Noam G. Nudelman  <noam@mail.biu.ac.il>

        - File /usr/share/locale/fi/charset gives charset name utf-8 on 
          Linux Mandrake 7.2. This causes that Configure generates 
                fi      utf-8
          to elm.mimecharsets. However that seems to have
          incorrect mapping. You may want change this to
                fi      ISO-8859-1

          ( however nl_langinfo(CODESET) gives charset ISO-8859-15
            but look following entry. )

        - Locale 'fi' seems to have charset ISO-8859-15 according
          of nl_langinfo(CODESET)  on Mandrake Linux 7.2 (and probaly 
          others with same glibc version). However for example gnome 
          terminal uses font 
          and not

          Also KDE's konsole program seems use iso8859-1 character set
          although locale is 'fi' which should have ISO-8859-15 according
          of nl_langinfo (selecting "unicode" from menu seems fix that.)
          Because of mismatch more correct locale is fi_FI.88591, which gives
          ISO-8859-1 character set according of nl_langinfo(CODESET).

          ( Locale seems come from /etc/sysconfig/i18n or $HOME/.i18n )

        > To enable handling of ISO-8859-1 and ISO-8859-15 character sets
          on linux console, read comments from doc/terminal.info file.

        - Mandrake Linux 7.2 seems set LD_PRELOAD to load 
          /usr/lib/libxalflaunch.so.0. That (xalf-0.4-2mdk) causes that 
          elm to crash on startup (actually before main() is reached.)

        - kterm on Mandrake Linux 7.2 seems have (at least on my test
          environment) seems get bad fontlist (*VT100*fontList) which 
          gives bad font for iso8859-1 -- therefore ISO-8859-1 characters 
          do not work.
          ("xrdb -query" seems report resource with name "*fontList"
           -- that probably overrides "*VT100*fontList" which comes
           from /usr/lib/X11/app-defaults/KTerm )

        - Also note that initially kterm does NOT default to
          ISO-8859-1 -- therefore ISO-8859-1 works only when
          elm explicity switch to ISO-8859-1 (for example
          with 'elm -D ISO-8859-1')

        - When assembling message/partial MIME (RFC 2046) 
          requires that all headers except Content-*, Subject, 
          MIME-Version, Message-ID and Encrypted are copied from
          initial enclosing message to assembled message. It also 
          requires that headers except Content-*, Subject,
          MIME-Version,  Message-ID and Encrypted  are ignored and
          dropped from enclosed  message.

          For now we copy only Received: -headers. Dropping extra
          headers from enclosed message makes assembly more 
          complicated  (and dropping of Received: -headers
          from enclosed message do not make sense.)

        - EXIF files are sometimes labeled with content-type
          image/jpeg. They also use .jpg filename extension. They are
          not accepted by Elm ME+ as image/jpeg because magic number 
          (and format) is different. It is unclear what is correct
          treatment. According of specification EXIF files may
          wrap also other file types than jpeg (JFIF).

        - mailer=sendmail; verify=yes works only when sendmail 
          is installed as setuid root. Use mailer=submission instead.
        * Starting from sendmail 8.12 sendmail is normally
          installed as setgid smmsp and not as setuid root.
        - However error message is printed only if 
          verify-local-address=yes is also set

        - IMAP connection is stalled some times. Reason is unknown.

        - From name option (-f) on fastmail is currently broken.

Collector of these patches

        Kari Hurtta <elm@elmme-mailer.org>
        Kari Hurtta <hurtta+elm@siilo.FMI.FI>


 MANIFEST                         |    1 
 README.ME+                       |   47 ++
 doc/elmrc-info                   |   11 
 hdrs/elm_defs.h                  |    8 
 hdrs/elmlib.h                    |   11 
 hdrs/mboxlib.h                   |   13 
 hdrs/me.h                        |   26 !
 hdrs/melib.h                     |   17 
 hdrs/patchlevel.h                |   10 
 hdrs/s_command.h                 |   13 
 hdrs/s_elm.h                     |   27 +
 hdrs/save_opts.h                 |    5 
 lib/hdrdecode.c                  |   10 
 lib/mbox/imap.c                  |   96 ++-
 lib/mbox/localmbx.c              |   68 !!!
 lib/mbox/mbox.c                  |   64 -
 lib/mbox/pop.c                   |   28 !
 lib/output.c                     |   42 +!
 lib/read_rc.c                    |   83 !!!!
 melib/mime_decode.c              |   22 !
 melib/mime_parse.c               |   32 
 melib/parse_util.c               |   18 
 nls/C/C/C/s_command.m            |   30 +
 nls/C/C/C/s_elm.m                |   61 ++!
 src/Makefile.SH                  |    5 
 src/attach_menu.c                |   14 
 src/builtin++.c                  |   83 +++!
 src/command/builtincmd.c         |   82 ++!!
 src/command/sendcmd.c            |  115 +++++
 src/def_sndmail.h                |   34 +
 src/elm.c                        |   11 
 src/file_util.c                  |   14 
 src/help.c                       |    7 
 src/mailmsg2.c                   |  760 +++++++++++++++-!!!!!!!!!!!!!!!!!!!!!
 src/menu_common/message_screen.c |   24 +
 src/messages/status_common.c     |   14 
 src/messages/storage.c           |   13 
 src/metapager.c                  |   61 !!!
 src/mime.c                       |    6 
 src/newmbox.c                    |  119 !!!!!
 src/pgp.c                        |   14 
 src/savecopy.c                   |    8 
 src/showmsg.c                    |    6 
 src/snd_preview.c                |  618 +++++++++++++++++++++++++++++++
 utils/from.c                     |  238 !!!!!!!!!!
 utils/newmail.c                  |   47 !
 utils/readmsg/folder.c           |   32 
 utils/readmsg/readmsg.c          |   15 
 48 files changed, 1582 insertions(+), 69 deletions(-), 1432 modifications(!)