ELM ME+ 2.5 PLalpha50 announcement

Known Issues

  • frm, newmail and readmsg -commands crash on startup when prepare_read_folder() is called.

Announcement

Elm ME+ 2.5 PLalpha50

- Is available with
        <URL: http://www.elmme-mailer.org/elm-ME+2.5.PLalpha50.patch.gz >
  and   <URL: http://www.elmme-mailer.org/elm-ME+2.5.alpha50.tar.gz >

- This seems NOT to be mirrored to ftp.funet.fi
  so this is not available via anonymous ftp,
  directory pub/mirrors/elmme-mailer.org/src/elm-ME+2.5/

- Is available with
        message-id <elmME+2.5/PLalpha50/2-0@klovni.keh.iki.fi>
                   <elmME+2.5/PLalpha50/2-1@klovni.keh.iki.fi>
                   <elmME+2.5/PLalpha50/2-2@klovni.keh.iki.fi>
                   <elmME+2.5/PLalpha50/2-3@klovni.keh.iki.fi>
                   <elmME+2.5/PLalpha50/2-4@klovni.keh.iki.fi>
                   <elmME+2.5/PLalpha50/2-5@klovni.keh.iki.fi>
                   <elmME+2.5/PLalpha50/2-6@klovni.keh.iki.fi>
                   <elmME+2.5/PLalpha50/2-7@klovni.keh.iki.fi>
  on newsgroups alt.sources and comp.mail.elm

SUMMARY:  This release adds new magic numbers for
          JPG (EXIF), better reconnection handling
          for broken IMAP connections and 'Er'
          (reconnect) command. This release allows
          interrupting stalled connection with
          interrupt character (Ctrl-C) on new mail
          check and 'X' (Quick Exit) command. Other
          commands still are stuck if connection
          is stalled. Also some other changes and
          fixes are included.

Changes on Elm ME+ 2.5 PLalpha50 compared with Elm ME+ 2.5 PLalpha49
--------------------------------------------------------------------

        SUMMARY: This release adds new magic numbers for
                 JPG (EXIF), better reconnection handling
                 for broken IMAP connections and 'Er'
                 (reconnect) command. This release allows
                 interrupting stalled connection with
                 interrupt character (Ctrl-C) on new mail
                 check and 'X' (Quick Exit) command. Other
                 commands still are stuck if connection
                 is stalled. Also some other changes and
                 fixes are included.

        - Changed magic number of image/jpeg on
          lib/misc/mime_types.c

          RFC 2046 says: "An initial subtype is "jpeg" for the JPEG format
                          using JFIF encoding [JPEG]."

        > Also adds Digital camera JPG using
          Exchangeable Image File Format (EXIF) as
          image/jpeg.

        - Exported wday_from_year_month_day()
          from lib/addr/outheaders.c
        - Changed that lib/mbox/imap.c generates
          real weekday name to From -separator line
          (was using "XXX" as weekday name).

        - Changed mbx_copy_envelope_pop() to use
          return_path_to_env_from_1() for generating From
          -separator address as mbx_copy_envelope_imap()
          is using.

        - Changed screen update on read_headers()
        
        - Changed header allocation on read_headers()
        - Added malloc_header_rec() and free_header_rec()
          to src/messages/header_alloc.c
        
        - Fixed handling of mails which arrive to
          IMAP mailbox when mailbox is read (opened). 
        - Changed prototype of copy_envelope_end_folder(),
          mbx_copy_envelope_end_folder()
        - Changed parse_body_routine() on src/newmbox.c

        - If IMAP mailbox connection is broken,
          after reconnection different
          temp folder is used when mails
          are read from mailbox.
        * If different temp folder is used
          all mails are no longer included
          as new mails to mail listing with mails
          before connection was broken.
        - When POP connection is re$yncronized
          different temp folder is used.
          (POP mailbox also always reopen
           connection when mailbox is
           re$yncronized).               
        - If messages are EXPUNGEd from IMAP
          folder, different temp folder is used
          when mail is re$yncronized.
        - If skipped mail is later loaded
          from IMAP folder, different temp folder
          is used when mail is re$yncronized.

        - Added 'Er' command for reconnect broken
          mailbox connections.  
        - Added update_selected_counter(),
          found_disconnected(), ReconnectMailbox() and
          ReconnectMailboxPost() to src/reconnect.c

        - If IMAP / POP mailbox connection is
          broken, some hint from
             Use 'X' for Quick Exit
             XXX disconnected and failed. Use 'Er' for reconnecting or 'X' for Quick Exit
             XXX disconnected. Use 'Er' for reconnecting broken connection
             XXX failed. Use 'X' for Quick Exit      
          is given, where XXX is some from
             POP mailbox
             IMAP mailbox
             IMAP folder
             Read-only IMAP folder
        > However re$yncronize command may try reconnect
          IMAP or POP mailbox connection. 

        - Changed prototype of
          prepare_read_folder(), end_read_folder(),
          copy_envelope_folder(), sessionlock_folder(),
          open_folder_lock(), new_mail_check(),
          flush_folder()
          
        - Changed prototype of mbx_prepare_read_folder(),
          mbx_end_read_folder(), mbx_sessionlock_folder(),
          mbx_flush_folder(), mbx_flush_temp()
        - Added search_previous_header(),
          copy_previous_mail(), free_reconnect_mode(),
          malloc_reconnect_mode() to lib/mbox/mbox.c

        - Added
                unsigned int was_reconnected :1;
                unsigned int got_skipped_mail :1;
          to struct folder_info 
        - Added
                int uidvalidity;
                unsigned int got_EXPUNGE :1;
          to struct IMAP_MBX
          
        - Changed prototype of end_edit_folder()
        - Changed prototype of mbx_end_edit_folder()

        - Changed sync_mbox(), usr1_signal(), usr2_signal(),
          resync(), visit_mailbox_loop(), change_file()
        - Added reconnect_mails() to src/newmbox.c

        - Changed prototype of  newmbox_1()
        - Changed prototype of file_bytes()
        - Changed prototype of show_last_error()

        - Changed file_bytes() on lib/file_util.c

        - Fixed error message on check_mailfile_size()

        - Fixed error where re$yncronizing
          POP mailbox shows ridiculous
          large percents when loading mails.

        - Added sessionlock_create_tempfolder()
          to lib/mbox/mbox_generic.c
        - Added mbx_prepare_read_reconnect()
          to lib/mbox/remote_mbx.c
        - Changed mbx_sessionlock_pop(),
          mbx_sessionlock_spool(), mbx_sessionlock_imap()
        - Added mbx_comp_prev_hdr_folder(),
          mbx_update_prev_hdr_folder()
        - Added mbx_comp_prev_hdr_default(),
          mbx_update_prev_hdr_default () to
          lib/mbox/mbox_generic.c
        - Exported adjust_content_remaining from
          lib/mbox/localmbx.c
        - Added struct copy_previous_rs * reconnect_copy_previous
          to struct read_folder_state.
        - Changed copy_header_folder(),
          copy_body_folder(), copy_envelope_end_folder()
          on lib/mbox/mbox.c

        - Changed new_mail_on_folder(),  new_mail_check(),
          main_messages_loop()

        - Moved addr_is_same() from src/messages/duplicate.c
          to lib/addr/duplicate.c as addr_list_is_same()
        - Added message_id_to_string() to
          lib/addr/message-id.c
        - Added references_to_string() to
          lib/addr/references.c

        - Fix for debug_message() on src/elm.c

        - Message
             Checking new mail...
          is shown on new mail check after
          0.5 second delay when checking remote mailbox
          (IMAP mailbox). Check may be cancelable with 
          interrupt character (Ctrl-C) but remote
          mailbox connection may be disconnected.
        - Added start_imap_command_c(), imap_command_ok_c(),
          imap_clear_command_c() to lib/mbox/con_imap.c

        - Message
             Leaving mailbox ...
          is shown on eXiting main mailbox
          screen after 2 second delay if remote
          mailbox is stalled. Wait may be cancelable with 
          interrupt character (Ctrl-C).
        - Changed prototype of free_mailbox(), free_storage(),
          leave_old_folder(), close_folder(),
          close_connection(), free_connection(),
          free_mailbox(), free_all_mailboxes(),
          free_connection(), close_cached_connections()
        - Changed prototype of mbx_close_folder(),
          cache_close_connection(), mt_free_mailbox(),
          mbx_free_folder()

        - Take account artificial "From " separator line
          when estimating IMAP mailfile size (temp
          folder size). This affects percent display
          when reading mailbox.

        New files:
           lib/addr/duplicate.c
           src/reconnect.c

Warnings
-------- 

        - 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 
          message.
                  
        - 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 
          charset.

        - 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.4.3.3.26 (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 
          mapping
                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 
                -misc-fixed-medium-r-normal--12-200-75-75-c-100-iso8859-1
          and not
                -misc-fixed-medium-r-normal--12-200-75-75-c-100-iso8859-15

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

        - 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                       |    2 
 README.ME+                     |  202 +++
 doc/elm.1                      |    2 
 doc/elmalias.1                 |    2 
 doc/elmhashmarks.1             |    2 
 doc/fastmail.1                 |    2 
 doc/frm.1                      |    2 
 doc/newalias.1                 |    2 
 doc/newmail.1                  |    2 
 doc/readmsg.1                  |    2 
 hdrs/addrlib.h                 |   18 
 hdrs/connection_imp.h          |   21 
 hdrs/elm_defs.h                |   17 
 hdrs/elmlib.h                  |    8 
 hdrs/mboxlib.h                 |  158 !!
 hdrs/mbx_imp.h                 |  109 !
 hdrs/mbximap_imp.h             |   30 
 hdrs/me.h                      |   69 !
 hdrs/patchlevel.h              |   10 
 hdrs/readmsg.h                 |    4 
 hdrs/s_command.h               |    1 
 hdrs/s_elm.h                   |   34 
 hdrs/s_from.h                  |    1 
 hdrs/s_me.h                    |    4 
 lib/MAGIC                      |    2 
 lib/addr/Makefile.SH           |    5 
 lib/addr/def_addr.h            |   10 
 lib/addr/duplicate.c           |   91 +
 lib/addr/message-id.c          |   49 
 lib/addr/outheaders.c          |    7 
 lib/addr/parsestring.c         |    8 
 lib/addr/references.c          |   91 +
 lib/cancel.c                   |    5 
 lib/file_util.c                |   71 
 lib/mbox/common_local.c        |    9 
 lib/mbox/con_imap.c            |  712 ++++++!!!!
 lib/mbox/connection.c          |   55 
 lib/mbox/def_mbox.h            |   42 
 lib/mbox/hashmark_remote.c     |   70 
 lib/mbox/headers.c             |   11 
 lib/mbox/imap.c                | 1353 ++++++++++-!!!!!!!!!!!
 lib/mbox/localmbx.c            | 1502 ++++-!!!!!!!!!!!!!!!!!!
 lib/mbox/mbox.c                | 2461 +++++++++-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 lib/mbox/mbox_generic.c        |  148 ++
 lib/mbox/pop.c                 | 1233 ++++++++++-!!!!!!!!
 lib/mbox/remote_mbx.c          |  144 ++
 lib/misc/mime_types.c          |   51 
 lib/schedule.c                 |  140 !!
 lib/streamsched.c              |   11 
 nls/C/C/C/s_command.m          |    2 
 nls/C/C/C/s_elm.m              |   70 !
 nls/C/C/C/s_from.m             |    2 
 nls/C/C/C/s_me.m               |    8 
 src/Makefile.SH                |    5 
 src/args.c                     |    8 
 src/canceled.c                 |    6 
 src/command/extendedcmd.c      |   17 
 src/digest.c                   |   32 
 src/duplicate_removal.c        |   52 
 src/edit.c                     |   26 
 src/elm.c                      |  306 +!!!!
 src/extended.c                 |   46 
 src/file_util.c                |   20 
 src/in_utils.c                 |   40 
 src/init.c                     |  198 !!!
 src/leavembox.c                |  409 ++!!!
 src/list/info.c                |   61 !
 src/list/visit_mailbox.c       |  255 +!!!
 src/mailbox.c                  |  264 !!!!
 src/messages/canceled_mail.c   |   62 
 src/messages/def_messages.h    |    9 
 src/messages/digest.c          |   17 
 src/messages/duplicate.c       |   94 -
 src/messages/header_alloc.c    |   39 
 src/messages/mailfile.c        |   18 
 src/messages/messages.c        |   59 
 src/messages/partial.c         |   36 
 src/messages/status_common.c   |   14 
 src/messages/storage.c         |   45 
 src/messages/thread_messages.c |   17 
 src/newmbox.c                  | 1409 ++++-!!!!!!!!!!!!!!!!
 src/openmailbox.c              |   75 
 src/out_utils.c                |   36 
 src/partial.c                  |   54 
 src/quit.c                     |  290 +!!!
 src/reconnect.c                |  150 ++
 src/savecopy.c                 |   57 
 src/showmsg_1.c                |   11 
 src/signals.c                  |  108 !
 src/thread.c                   |    6 
 src/utils.c                    |  183 !!!
 src/view_folder.c              |    6 
 src/view_one_thread.c          |   29 
 utils/from.c                   |  138 !!
 utils/newmail.c                |  397 !!!!!
 utils/readmsg/folder.c         |  132 !!
 96 files changed, 4774 insertions(+), 333 deletions(-), 9196 modifications(!)
Advertisements