ELM ME+ 2.5 PLalpha42 announcement

Elm ME+ 2.5 PLalpha42

- Is available with
        <URL: http://www.elmme-mailer.org/elm-ME+2.5/src/elm-ME+2.5.PLalpha42.patch.gz >
  and   <URL: http://www.elmme-mailer.org/elm-ME+2.5/src/elm-ME+2.5.alpha42.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.PLalpha42.patch.gz
    and        elm-ME+2.5.alpha42.tar.gz

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

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

SUMMARY: Enabled some compiler warnings and fixed them.
         Waiting of smtp/submission server is now
         cancellable with interrupt character (Ctrl-C).
         Added \ -command to builtin++ pager. Also
         some bug fixes are included.

Changes on Elm ME+ 2.5 PLalpha42 compared with Elm ME+ 2.5 PLalpha41

        SUMMARY: Enabled some compiler warnings and fixed them.
                 Waiting of smtp/submission server is now
                 cancellable with interrupt character (Ctrl-C).
                 Added \ -command to builtin++ pager. Also
                 some bug fixes are included.

        - Fixed warning
                read_rc.c:2832:5: warning: ISO C90 forbids mixed 
                declarations and code [-Wdeclaration-after-statement]

        - Fixed warning
                mailmsg2.c:2069:6: warning: logical 'and' applied to 
                non-boolean constant [-Wlogical-op]

        - Removed bogus condition from browser_descend_local()

        - Fixed warning
                from.c:940:4: warning: string length '607' is 
                greater than the length '509' ISO C90 compilers 
                are required to support [-Woverlength-strings]

        - Fixed warning
                args.c:499:2: warning: string length '567' is 
                greater than the length '509' ISO C90 compilers 
                are required to support [-Woverlength-strings]     

        - Fixed warning
                mbox.c:34:1: warning: 'static' is not at beginning 
                of declaration [-Wold-style-declaration]
        - Fixed warning
                parsestring.c:29:1: warning: 'static' is not at 
                beginning of declaration [-Wold-style-declaration]
        - Fixed warning
                okay_addr.c:27:1: warning: 'static' is not at beginning 
                of declaration [-Wold-style-declaration]
        - Fixed warning
                ../../hdrs/me.h:75:1: warning: 'extern' is not at 
                beginning of declaration [-Wold-style-declaration]
        - Fixed warning
                curses.c:741:1: warning: 'static' is not at beginning 
                of declaration [-Wold-style-declaration]
        - Fixed warning
                termbuffer.c:19:1: warning: 'static' is not at 
                beginning of declaration [-Wold-style-declaration]
        - Fixed warning
                def_url.h:188:1: warning: 'extern' is not at beginning 
                of declaration [-Wold-style-declaration]

        - Fixed warning
                service_list.c:2075:30: warning: type of 'silent' 
                defaults to 'int' [-Wmissing-parameter-type]

        - Fixed search on builtin++ pager.

        - Added  wait_for_action_c(), wait_for_any_action_c(),
          wait_for_timeout_c(), wait_for_action_or_timeout_c(),
          wait_for_any_action_or_timeout_c() to lib/cancel.c
        - Added WaitStreamFor_c() to lib/streamsched.c

        - When 
               mailer = submission
          waits submission or smtp server greeting
          it is now possible to cancel with Ctrl-C 
          (interrupt character). 
        * Also waiting of EHLO response after
          server greeting is now possible to cancel 
          with Ctrl-C (interrupt character). 
        * Other waits still are not possible to cancel.
        * However waiting on
              mailer = sendmail-bs
          is not possible to cancel. Also actual
          mail submission and other waits which are
          common for  
              mailer = submission 
              mailer = sendmail-bs
          are not possible to cancel.

        - Changed malloc() on shared_libs/smtp/smtp.c

        - Possible fix for smtp_push_data() on

        - Added cancellable versions of some functions
          on shared_libs/smtp/smtp.c (all these are not
          used yet).

        - Some fixes for lib/schedule.c when poll()
          is used.

        - Changed error handling of smtp_run_ehlo()

        - Added time_t maximum value (aka time_MAX)
          checks to lib/schedule.c

        - Added new_schedule_cancel(), is_schedule_cancel()
          and schedule_cancel_timeout() to lib/cancel.c

        - Added \ -command to builtin++ pager. This
          hides (or shows) wrap indicator (\).
	- Fixed warning 
	  ../shared_libs/smtp/smtp.c:3566: varoitus: the use of 
	  `tempnam' is dangerous, better use `mkstemp'
	> tempnam() is not needed. Actual checks for attacks
          are done safeopen_rdwr(). 


        - 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>


 README.ME+                        |  124 ++
 doc/elm.1                         |   23 
 hdrs/connection_imp.h             |   13 
 hdrs/elmlib.h                     |   37 
 hdrs/me.h                         |    6 
 hdrs/pager.h                      |   14 
 hdrs/patchlevel.h                 |   10 
 hdrs/s_command.h                  |    1 
 hdrs/s_elm.h                      |    8 
 hdrs/s_from.h                     |    3 
 hdrs/s_smtp.h                     |    4 
 hdrs/ss_imp.h                     |    7 
 lib/addr/parsestring.c            |    8 
 lib/cancel.c                      |  192 ++
 lib/mbox/localmbx.c               |    8 
 lib/mbox/mbox.c                   |    8 
 lib/okay_addr.c                   |    8 
 lib/posixsig.c                    |    6 
 lib/read_rc.c                     |    8 
 lib/schedule.c                    |  462 +++++!!!!
 lib/service_list.c                |    5 
 lib/streamsched.c                 |  149 +!!
 nls/C/C/C/s_command.m             |    2 
 nls/C/C/C/s_elm.m                 |   40 
 nls/C/C/C/s_from.m                |   27 
 nls/C/C/C/s_smtp.m                |    8 
 shared_libs/include/shared_smtp.h |    6 
 shared_libs/smtp/smtp.c           | 1841 ++++++++++++++++-!!!!!!!!!!!!!!!!!!!
 shared_libs/tls/smtp.c            |    6 
 src/args.c                        |   13 
 src/browser_help.c                |    9 
 src/builtin++.c                   |  101 !!
 src/command/builtincmd.c          |   10 
 src/mailmsg2.c                    |    6 
 src/pager/helper.c                |    7 
 src/pager/span_line.c             |   14 
 src/pager/span_range.c            |   32 
 src/screen/curses.c               |    6 
 src/screen/termbuffer.c           |    6 
 src/url/def_url.h                 |    6 
 utils/elmregister.c               |    4 
 utils/from.c                      |   12 
 42 files changed, 1521 insertions(+), 109 deletions(-), 1630 modifications(!)

/ Kari Hurtta

ELM ME+ 2.5 PLalpha42 builtin++ pager
ELM ME+ 2.5 PLalpha42 builtin++ pager