Index: elmME+.2.5.alpha50a-cvs/hdrs/patchlevel.h
Prereq:  1590000000
*** elmME+.2.5.alpha50/hdrs/patchlevel.h	Thu Jun  6 21:00:46 2019
--- elmME+.2.5.alpha50a-cvs/hdrs/patchlevel.h	Thu Jun 13 21:26:58 2019
***************
*** 1,8 ****
! #define PATCHLEVEL        "alpha50"
  /* Used by Configure:
! SHAREDTAG: .1.1.50
  */
! #define LAST_REPORT_TIME  1590000000
  #define BUG_REPORT_ADDR   "Kari Hurtta <elm@elmme-mailer.org>"
  #define VERS_DATE	  "Jun 2019"	/* for elm -v option */
  #define WHAT_STRING	\
--- 1,8 ----
! #define PATCHLEVEL        "alpha50a"
  /* Used by Configure:
! SHAREDTAG: .1.1.50.1
  */
! #define LAST_REPORT_TIME  1591000000
  #define BUG_REPORT_ADDR   "Kari Hurtta <elm@elmme-mailer.org>"
  #define VERS_DATE	  "Jun 2019"	/* for elm -v option */
  #define WHAT_STRING	\
Index: elmME+.2.5.alpha50a-cvs/README.ME+
*** elmME+.2.5.alpha50/README.ME+	Thu Jun  6 21:00:46 2019
--- elmME+.2.5.alpha50a-cvs/README.ME+	Thu Jun 13 21:26:58 2019
***************
*** 1,4 ****
! $Header: /home/users/hurtta/cvsroot/mail/elmme+/README.ME+,v 2.928 2019/06/03 16:21:04 hurtta Exp $
  
  Version Elm2.4ME+ PL0 (25) is based on version Elm2.4 PL24 ME8b+.
  Version Elm2.4 PL24 ME8b+ is based on version Elm2.4 PL24 ME8b.
--- 1,4 ----
! $Header: /home/users/hurtta/cvsroot/mail/elmme+/README.ME+,v 2.928.4.2 2019/06/13 18:26:58 hurtta Exp $
  
  Version Elm2.4ME+ PL0 (25) is based on version Elm2.4 PL24 ME8b+.
  Version Elm2.4 PL24 ME8b+ is based on version Elm2.4 PL24 ME8b.
***************
*** 19,24 ****
--- 19,39 ----
  ===================================================================
  * Changelog of Elm ME+ 2.5
  
+ Changes on Elm ME+ 2.5 PLalpha50a compared with Elm ME+ 2.5 PLalpha50
+ ---------------------------------------------------------------------
+ 
+         [ This patch is branch from the main line. ]
+ 
+         SUMMARY: This patch fixes "frm", "newmail" and "readmsg"
+ 	         -commands crash on startup when
+ 		 prepare_read_folder() is called.
+ 
+         - "newmail core dumps in elmME+.2.5.alpha50 on CentOS 7."
+          Reported by: Noam G. Nudelman
+         > Fixed crash on prepare_read_folder()
+ 	  when called from "frm", "newmail" or
+ 	  "readmsg".
+ 
  Changes on Elm ME+ 2.5 PLalpha50 compared with Elm ME+ 2.5 PLalpha49
  --------------------------------------------------------------------
  
Index: elmME+.2.5.alpha50a-cvs/lib/mbox/mbox.c
*** elmME+.2.5.alpha50/lib/mbox/mbox.c	Thu Jun  6 21:00:46 2019
--- elmME+.2.5.alpha50a-cvs/lib/mbox/mbox.c	Wed Jun 12 19:47:37 2019
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: mbox.c,v 2.30 2019/05/11 15:54:00 hurtta Exp $";
  
  /******************************************************************************
!  *  The Elm (ME+) Mail System  -  $Revision: 2.30 $   $State: Exp $
   *
   *  Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI> 
   *                  (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: mbox.c,v 2.30.6.1 2019/06/12 16:47:37 hurtta Exp $";
  
  /******************************************************************************
!  *  The Elm (ME+) Mail System  -  $Revision: 2.30.6.1 $   $State: Exp $
   *
   *  Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI> 
   *                  (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 1535,1541 ****
                 
      status = folder->folder_type->prepare_read_it(folder,mode,ptr,reconnect_ptr);
  
!     if (*reconnect_mode_ptr == reconnect_ptr && reconnect_ptr) {
  
  	DPRINT(Debug,10,(&Debug,
  			 "prepare_read_folder: reconnect mode *reconnect_mode_ptr=%p was set by caller\n",
--- 1535,1542 ----
                 
      status = folder->folder_type->prepare_read_it(folder,mode,ptr,reconnect_ptr);
  
!     if (reconnect_mode_ptr &&
! 	*reconnect_mode_ptr == reconnect_ptr && reconnect_ptr) {
  
  	DPRINT(Debug,10,(&Debug,
  			 "prepare_read_folder: reconnect mode *reconnect_mode_ptr=%p was set by caller\n",
