Thread View: alt.sources
1 messages
1 total messages
Started by Kari Hurtta
Sat, 03 Oct 2026 16:06
Patch: Elm ME+ 2.5 PLalpha67 -> Elm ME+ 2.5 PLalpha68 [1/1]
Author: Kari Hurtta
Date: Sat, 03 Oct 2026 16:06
Date: Sat, 03 Oct 2026 16:06
3286 lines
94649 bytes
94649 bytes
Archive-name: elmME+2.5/PLalpha68.1
Part 1 includes whole patch.
Part 0 does not include patch.
This patch is agaist Elm ME+ 2.5 PLalpha67
====================================== ( part 1/1 ) =========
For applying thich patch use (on directory where Configure is)
patch -p1 < {this-file}
Then check that removed files do not exists or are empty
ls -la `cat OBSOLETE `
If that lists non-empty files, patch failed.
Then remove empty files with command
rm `cat OBSOLETE `
------------------------------------------------------------------------
Index: elmME+.2.5.alpha68-cvs/hdrs/patchlevel.h
Prereq: 1809000000
*** elmME+.2.5.alpha67/hdrs/patchlevel.h 2026-05-09 16:39:30.486375737 +0300
--- elmME+.2.5.alpha68-cvs/hdrs/patchlevel.h 2026-09-23 18:23:39.000000000 +0300
***************
*** 1,13 ****
! #define PATCHLEVEL "alpha67"
/* Used by Configure:
! SHAREDTAG: .1.1.67
*/
! #define LAST_REPORT_TIME 1809000000
#define BUG_REPORT_ADDR "Kari Hurtta <elm@elmme-mailer.org>"
! #define VERS_DATE "May 2026" /* for elm -v option */
#define WHAT_STRING \
! "@(#) Version ME+ 2.5, released May 2026"
/*
* Local Variables:
--- 1,13 ----
! #define PATCHLEVEL "alpha68"
/* Used by Configure:
! SHAREDTAG: .1.1.68
*/
! #define LAST_REPORT_TIME 1829000000
#define BUG_REPORT_ADDR "Kari Hurtta <elm@elmme-mailer.org>"
! #define VERS_DATE "Oct 2026" /* for elm -v option */
#define WHAT_STRING \
! "@(#) Version ME+ 2.5, released Oct 2026"
/*
* Local Variables:
Index: elmME+.2.5.alpha68-cvs/README.ME+
*** elmME+.2.5.alpha67/README.ME+ 2026-05-09 16:39:30.495375684 +0300
--- elmME+.2.5.alpha68-cvs/README.ME+ 2026-09-20 20:01:26.000000000 +0300
***************
*** 1,4 ****
! $Header: /home/users/hurtta/cvsroot/mail/elmme+/README.ME+,v 2.1128 2026/04/26 16:45:18 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.1131 2026/09/20 17:01:26 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,63 ----
===================================================================
* Changelog of Elm ME+ 2.5
+ Changes on Elm ME+ 2.5 PLalpha68 compared with Elm ME+ 2.5 PLalpha67
+ --------------------------------------------------------------------
+
+ SUMMARY: This release works around compilation errors
+ on Ubuntu 26.04.1 LTS. This removes index() and
+ rindex(). Also strstr.c is removed as obsolete.
+
+ - Worked around Configure/compilation warnings/errors
+ on Ubuntu 26.04.1 LTS
+
+ - Configure defined index and rindex as strchr and strrchr
+ config.h.SH had
+
+ #$d_index index strchr /* cultural */
+ #$d_index rindex strrchr /* differences? */
+
+ this produced following to config.h
+
+ #define index strchr /* cultural */
+ #define rindex strrchr /* differences? */
+
+ However this causes compilation failure on Ubuntu 26.04.1 LTS
+
+ In file included from /usr/include/features.h:539,
+ from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
+ from /usr/include/stdio.h:28,
+ from validcharset.c:8:
+ ../hdrs/../config.h:371:15: error: expected identifier or โ(โ before โ_Genericโ
+ 371 | #define index strchr /* cultural */
+ | ^~~~~~
+ ../hdrs/../config.h:372:16: error: expected identifier or โ(โ before โ_Genericโ
+ 372 | #define rindex strrchr /* differences? */
+ | ^~~~~~~
+ > This seems historical. Removed usage of index() and rindex()
+ - Removed lib/strstr.c which uses index()
+
+ Removed file:
+ lib/strstr.c
+
Changes on Elm ME+ 2.5 PLalpha67 compared with Elm ME+ 2.5 PLalpha66
--------------------------------------------------------------------
Index: elmME+.2.5.alpha68-cvs/ConfTool/validcharset.c
*** elmME+.2.5.alpha67/ConfTool/validcharset.c 2011-03-26 17:09:28.000000000 +0200
--- elmME+.2.5.alpha68-cvs/ConfTool/validcharset.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,5 ****
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.2 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI> (was hurtta+elm@posti.FMI.FI)
* or Kari Hurtta <elm@elmme-mailer.org>
--- 1,5 ----
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.3 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI> (was hurtta+elm@posti.FMI.FI)
* or Kari Hurtta <elm@elmme-mailer.org>
***************
*** 118,126 ****
--- 118,130 ----
struct setlist set_iso_ir_159;
struct setlist set_koi7_switched;
+ #if defined(__STDC__)
+ int main (int argc, char * argv[])
+ #else
int main (argc, argv)
int argc;
char *argv[];
+ #endif
{
char * munge;
Index: elmME+.2.5.alpha68-cvs/Configure
*** elmME+.2.5.alpha67/Configure 2026-05-09 16:39:30.499375660 +0300
--- elmME+.2.5.alpha68-cvs/Configure 2026-09-25 21:01:26.000000000 +0300
***************
*** 8,14 ****
# and edit it to reflect your system. Some packages may include samples
# of config.h for certain machines, so you might look for one of those.)
#
! # $Header: /home/users/hurtta/cvsroot/mail/elmme+/Configure,v 2.103 2026/04/19 14:02:33 hurtta Exp $
#
: sanity checks
--- 8,14 ----
# and edit it to reflect your system. Some packages may include samples
# of config.h for certain machines, so you might look for one of those.)
#
! # $Header: /home/users/hurtta/cvsroot/mail/elmme+/Configure,v 2.108 2026/09/25 18:01:26 hurtta Exp $
#
: sanity checks
***************
*** 538,544 ****
termlib=''
i_curses=''
i_term=''
- d_index=''
d_ispell=''
ispell_path=''
ispell_options=''
--- 538,543 ----
***************
*** 586,592 ****
d_waitpid=''
strings=''
includepath=''
- d_strstr=''
d_strtok=''
d_subshell=''
d_tempnam=''
--- 585,590 ----
***************
*** 1721,1732 ****
#include <stdio.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
return 0;
}
--- 1719,1730 ----
#include <stdio.h>
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
return 0;
}
***************
*** 1810,1821 ****
#include <stdio.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
return 0;
}
--- 1808,1819 ----
#include <stdio.h>
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
return 0;
}
***************
*** 1904,1915 ****
#include <stdio.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
return 0;
}
--- 1902,1913 ----
#include <stdio.h>
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
return 0;
}
***************
*** 2449,2460 ****
$cat > try.c <<'EOF'
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
return 0;
--- 2447,2458 ----
$cat > try.c <<'EOF'
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
return 0;
***************
*** 2566,2577 ****
extern char * myfunc();
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
char * C;
--- 2564,2575 ----
extern char * myfunc();
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
char * C;
***************
*** 2712,2718 ****
#if defined(__STDC__)
#include <stdlib.h>
- int main (int argc, char * argv[]);
#else
#ifndef const
--- 2710,2715 ----
***************
*** 2722,2730 ****
--- 2719,2731 ----
#include <dlfcn.h>
+ #if defined(__STDC__)
+ int main (int argc, char * argv[])
+ #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
char * C;
void * handle = dlopen(LIBNAME,RTLD_NOW);
***************
*** 2832,2847 ****
#endif
#include <dlfcn.h>
char * in_main = "succeed";
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
char * C;
void * handle = dlopen(LIBNAME,RTLD_NOW);
--- 2833,2849 ----
#endif
#include <dlfcn.h>
+ #include <stdio.h>
char * in_main = "succeed";
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
char * C;
void * handle = dlopen(LIBNAME,RTLD_NOW);
***************
*** 2867,2874 ****
return 1;
}
EOF
!
dynamic_opt=BAD
for A in '' '-rdynamic' ; do
case "$dynamic_opt" in
BAD)
--- 2869,2878 ----
return 1;
}
EOF
!
! echo > test.log
dynamic_opt=BAD
+
for A in '' '-rdynamic' ; do
case "$dynamic_opt" in
BAD)
***************
*** 2877,2898 ****
./dltry2 ; then
echo "Resolves ok with option ${A:-(none)}"
dynamic_opt="$A"
fi
;;
esac
done
if $test "X$dynamic_opt" != XBAD ; then
d_dynamic_main="$define"
else
echo "Unable to found how resolve mail program symbols from dynamic libary"
dynamic_opt=
d_dynamic_main="$undef"
fi
fi
! $rm -f try_sh.c try.c dltry.c ./try try.log dltry.log "$build_dir/shlib/testshared.so" "$build_dir/shlib/testshared-ab.so" dltry try_dyn.c "$build_dir/shlib/testdynshared.so" dltry2.c dltry2 failed.log
else
echo "dlfcn.h not found (no shared librariers)"
--- 2881,2908 ----
./dltry2 ; then
echo "Resolves ok with option ${A:-(none)}"
dynamic_opt="$A"
+ else
+ echo "========== Trying resolving with option ${A:-(none)}" >> test.log
+ cat dltry.log >> test.log
fi
;;
esac
done
+
+
if $test "X$dynamic_opt" != XBAD ; then
d_dynamic_main="$define"
else
echo "Unable to found how resolve mail program symbols from dynamic libary"
dynamic_opt=
d_dynamic_main="$undef"
+ cat test.log
fi
fi
! $rm -f test.log try_sh.c try.c dltry.c ./try try.log dltry.log "$build_dir/shlib/testshared.so" "$build_dir/shlib/testshared-ab.so" dltry try_dyn.c "$build_dir/shlib/testdynshared.so" dltry2.c dltry2 failed.log
else
echo "dlfcn.h not found (no shared librariers)"
***************
*** 2905,2916 ****
$cat > test_int128.c <<EOF
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
__int128 x;
--- 2915,2926 ----
$cat > test_int128.c <<EOF
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
__int128 x;
***************
*** 3041,3052 ****
#include <crypt.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
char * C;
--- 3051,3062 ----
#include <crypt.h>
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
char * C;
***************
*** 3196,3207 ****
#include <fcntl.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
struct flock lock_info;
--- 3206,3217 ----
#include <fcntl.h>
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
struct flock lock_info;
***************
*** 3259,3270 ****
#include <unistd.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
int fd = open("test-file.xx",O_RDWR);
--- 3269,3280 ----
#include <unistd.h>
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
int fd = open("test-file.xx",O_RDWR);
***************
*** 3328,3339 ****
#include <fcntl.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
struct flock lock_info;
--- 3338,3349 ----
#include <fcntl.h>
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
struct flock lock_info;
***************
*** 3786,3794 ****
--- 3796,3808 ----
$cat > try_select.c <<'EOF'
#include <sys/select.h>
+ #if defined(__STDC__)
+ int main (int argc, char * argv[])
+ #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
fd_set write_set;
int r;
***************
*** 3850,3861 ****
#endif
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
int s = getpagesize();
int fd = open("Testfile",O_RDONLY);
--- 3864,3875 ----
#endif
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
int s = getpagesize();
int fd = open("Testfile",O_RDONLY);
***************
*** 3903,3914 ****
#include <sys/un.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
int fd = socket(AF_UNIX, SOCK_STREAM, 0);
--- 3917,3928 ----
#include <sys/un.h>
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
int fd = socket(AF_UNIX, SOCK_STREAM, 0);
***************
*** 3942,3953 ****
#include <sys/un.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
int fd = socket(AF_UNIX, SOCK_STREAM, 0);
int error = 0;
--- 3956,3967 ----
#include <sys/un.h>
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
int fd = socket(AF_UNIX, SOCK_STREAM, 0);
int error = 0;
***************
*** 3987,3998 ****
#include <sys/un.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
int fd = socket(AF_UNIX, SOCK_STREAM, 0);
--- 4001,4012 ----
#include <sys/un.h>
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
int fd = socket(AF_UNIX, SOCK_STREAM, 0);
***************
*** 4072,4078 ****
#include <netinet/in.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
#else
#ifndef const
--- 4086,4092 ----
#include <netinet/in.h>
#if defined(__STDC__)
!
#else
#ifndef const
***************
*** 4080,4088 ****
--- 4094,4106 ----
#endif
#endif
+ #if defined(__STDC__)
+ int main (int argc, char * argv[])
+ #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
struct addrinfo * ai = NULL;
struct addrinfo hints;
***************
*** 4176,4182 ****
#include <netinet/in.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
#else
#ifndef const
--- 4194,4200 ----
#include <netinet/in.h>
#if defined(__STDC__)
!
#else
#ifndef const
***************
*** 4186,4194 ****
--- 4204,4216 ----
struct in6_addr zero_sin6_addr;
+ #if defined(__STDC__)
+ int main (int argc, char * argv[])
+ #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
struct sockaddr_in6 sin6;
***************
*** 4221,4236 ****
#include <netinet/in.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
#else
#ifndef const
#define const
#endif
#endif
int main (argc,argv)
int argc;
char * argv[];
{
struct sockaddr_in6 sin6;
--- 4243,4263 ----
#include <netinet/in.h>
#if defined(__STDC__)
!
#else
#ifndef const
#define const
#endif
#endif
+
+ #if defined(__STDC__)
+ int main (int argc, char * argv[])
+ #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
struct sockaddr_in6 sin6;
***************
*** 4401,4407 ****
#include <arpa/inet.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
#else
#ifndef const
--- 4428,4434 ----
#include <arpa/inet.h>
#if defined(__STDC__)
!
#else
#ifndef const
***************
*** 4410,4418 ****
--- 4437,4449 ----
#endif
+ #if defined(__STDC__)
+ int main (int argc, char * argv[])
+ #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
struct in_addr X;
char source[] = "1.2.3.4";
***************
*** 4467,4478 ****
#include <arpa/inet.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
struct in_addr X;
--- 4498,4509 ----
#include <arpa/inet.h>
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
struct in_addr X;
***************
*** 4740,4751 ****
char OPTION_LETTERS[] = "Gd:w:I:S:Mcr:";
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
int c;
--- 4771,4782 ----
char OPTION_LETTERS[] = "Gd:w:I:S:Mcr:";
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
int c;
***************
*** 4822,4885 ****
d_pwdinsys="$undef"
fi
- : index or strcpy
- echo " "
- case "$d_index" in
- "$define") dflt=n;;
- *)
- : strchr is on ANSI C
- if $contains __STDC__ Cppsym.true libc.list >/dev/null 2>&1; then
- dflt=n
- else
- dflt=y
- fi
- ;;
- esac
- if $contains '^index$' libc.list >/dev/null 2>&1 ; then
- if $contains '^strchr$' libc.list >/dev/null 2>&1 ; then
- if $contains strchr "$strings" >/dev/null 2>&1 ; then
- if $contains index "$strings" >/dev/null 2>&1 ; then
-
- : has index, strchr, and index and strchr in strings.h
-
- echo "Your system has both index() and strchr(). Shall I use"
- rp="index() rather than strchr()? [$dflt]"
- $echo $n "$rp $c"
- . myread
- case "$ans" in
- n*) d_index="$define" ;;
- *) d_index="$undef" ;;
- esac
- else
-
- : has index, strchr, and strchr in strings.h
-
- d_index="$define"
- echo "strchr() found."
- fi
- else
-
- : has index, strchr, and no strchr in strings.h
- d_index="$undef"
- echo "index() found."
- fi
- else
- : has only index, no strchr, strings.h is a moot point
- d_index="$undef"
- echo "index() found."
- fi
- else
- if $contains '^strchr$' libc.list >/dev/null 2>&1 ; then
- d_index="$define"
- echo "strchr() found."
- else
- echo "No index() or strchr() found!"
- d_index="$undef"
- fi
- fi
-
-
-
case "$d_mmdf" in
"$define") dflt=y;;
"$undef") dflt=n;;
--- 4853,4858 ----
***************
*** 5156,5167 ****
#include <langinfo.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
char * c = nl_langinfo(CODESET);
--- 5129,5140 ----
#include <langinfo.h>
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
char * c = nl_langinfo(CODESET);
***************
*** 5241,5252 ****
#include <wctype.h>
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
int i;
mbstate_t a;
--- 5214,5225 ----
#include <wctype.h>
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
int i;
mbstate_t a;
***************
*** 5371,5382 ****
int wcwidth(wchar_t c);
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
int i;
--- 5344,5355 ----
int wcwidth(wchar_t c);
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
int i;
***************
*** 5475,5486 ****
#define my_toupper(c) (islower(c) ? (c) - 'a' + 'A' : (c))
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
int i;
for (i = 1 ; i <= 0x7F ; ++i) {
--- 5448,5459 ----
#define my_toupper(c) (islower(c) ? (c) - 'a' + 'A' : (c))
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
int i;
for (i = 1 ; i <= 0x7F ; ++i) {
***************
*** 5547,5562 ****
#include <malloc.h>
#endif
#include <stdlib.h>
void *malloc();
END
! if $cc $ccflags -c usemymalloc.c >/dev/null 2>&1; then
d_mallocvoid=$define
echo "Your system wants malloc to return void *, it would seem."
else
d_mallocvoid=$undef
echo "Your system wants malloc to return char *, it would seem."
fi
;;
esac
echo " "
--- 5520,5547 ----
#include <malloc.h>
#endif
#include <stdlib.h>
+
+ #ifdef ANSI_C
+ void *malloc(size_t size);
+ #else
void *malloc();
+ #endif
END
! if $cc $ccflags -c usemymalloc.c >try.log 2>&1; then
d_mallocvoid=$define
echo "Your system wants malloc to return void *, it would seem."
else
+ echo "Failed to compile void * malloc() test"
+ echo "======================================"
+ cat try.log
+ echo "======================================"
+ echo
d_mallocvoid=$undef
echo "Your system wants malloc to return char *, it would seem."
fi
+
+ $rm -f usemymalloc.c a.out try.log
;;
esac
echo " "
***************
*** 6279,6291 ****
*)
echo "Checking to see if kill(pid, 0) works..."
$cat >try.c <<'EOCP'
! #if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
int main (argc,argv)
int argc;
char * argv[];
{
int pid, status0, status9;
--- 6264,6279 ----
*)
echo "Checking to see if kill(pid, 0) works..."
$cat >try.c <<'EOCP'
! #include <unistd.h>
! #include <signal.h>
+ #if defined(__STDC__)
+ int main (int argc, char * argv[])
+ #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
int pid, status0, status9;
***************
*** 6299,6307 ****
return(status0 == status9);
}
EOCP
! rmlist="$rmlist try.c try.o try"
! if $cc try.c -o try >/dev/null 2>&1 ; then
if try >/dev/null 2>&1 ; then
echo "Your system does not support kill(pid, 0)..."
d_pidcheck="$undef"
--- 6287,6295 ----
return(status0 == status9);
}
EOCP
! rmlist="$rmlist try.c try.o try try.log"
! if $cc try.c -o try > try.log 2>&1 ; then
if try >/dev/null 2>&1 ; then
echo "Your system does not support kill(pid, 0)..."
d_pidcheck="$undef"
***************
*** 6309,6317 ****
d_pidcheck="$define"
echo "Your system supports kill(pid, 0)..."
fi
! else
! echo "Your system does not support kill(pid, 0)..."
! d_pidcheck="$undef"
fi
;;
--- 6297,6309 ----
d_pidcheck="$define"
echo "Your system supports kill(pid, 0)..."
fi
! else
! echo "Compilation of kill(pid, 0) test failed ============="
! cat try.log
! echo "====================================================="
! echo
! echo "Your system does not support kill(pid, 0)..."
! d_pidcheck="$undef"
fi
;;
***************
*** 6558,6567 ****
set strpbrk d_strpbrk
eval $inlibc
- : see if there is a strstr
- set strstr d_strstr
- eval $inlibc
-
: see if there is a strtok
set strtok d_strtok
eval $inlibc
--- 6550,6555 ----
***************
*** 6728,6739 ****
#endif
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
struct tm foo;
#ifdef S_TIMEVAL
--- 6716,6727 ----
#endif
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
struct tm foo;
#ifdef S_TIMEVAL
***************
*** 6805,6819 ****
#include <sys/time.h>
#endif
- #if defined(__STDC__)
- int main (int argc, char * argv[]);
- #endif
struct timeval bar;
int main (argc,argv)
int argc;
char * argv[];
{
SUSECONDS xxx;
--- 6793,6808 ----
#include <sys/time.h>
#endif
struct timeval bar;
+ #if defined(__STDC__)
+ int main (int argc, char * argv[])
+ #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
SUSECONDS xxx;
***************
*** 6923,6934 ****
#endif
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
struct utimbuf test;
test.actime = 0;
--- 6912,6923 ----
#endif
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
struct utimbuf test;
test.actime = 0;
***************
*** 8308,8328 ****
#if defined(__STDC__)
- int putit(int c);
int tputs(const char *str, int affcnt, int (*putc)(int));
- int main (int argc, char * argv[]);
#endif
int putit(c)
int c;
{
return putchar(c);
}
int main (argc,argv)
int argc;
char * argv[];
{
tputs("\nTest output\n",1,putit);
--- 8297,8324 ----
#if defined(__STDC__)
int tputs(const char *str, int affcnt, int (*putc)(int));
#endif
+ #if defined(__STDC__)
+
+ int putit(int c)
+ #else
int putit(c)
int c;
+ #endif
{
return putchar(c);
}
+ #if defined(__STDC__)
+ int main (int argc, char * argv[])
+ #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
tputs("\nTest output\n",1,putit);
***************
*** 8485,8496 ****
}
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
FOUDME();
--- 8481,8492 ----
}
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
FOUDME();
***************
*** 9078,9084 ****
termlib='$termlib'
i_curses='$i_curses'
i_term='$i_term'
- d_index='$d_index'
d_ispell='$d_ispell'
ispell_path='$ispell_path'
ispell_options='$ispell_options'
--- 9074,9079 ----
***************
*** 9126,9132 ****
d_pwdinsys='$d_pwdinsys'
strings='$strings'
includepath='$includepath'
- d_strstr='$d_strstr'
d_strtok='$d_strtok'
d_subshell='$d_subshell'
d_tempnam='$d_tempnam'
--- 9121,9126 ----
Index: elmME+.2.5.alpha68-cvs/MANIFEST
*** elmME+.2.5.alpha67/MANIFEST 2026-05-09 16:39:30.499375660 +0300
--- elmME+.2.5.alpha68-cvs/MANIFEST 2026-09-20 19:42:07.000000000 +0300
***************
*** 87,93 ****
lib/strincmp.c
lib/striparens.c
lib/strmcpy.c
- lib/strstr.c
lib/safeopen.c
nls/C/C/C/s_aliases.m
nls/C/C/C/s_elm.m
--- 87,92 ----
Index: elmME+.2.5.alpha68-cvs/OBSOLETE
*** elmME+.2.5.alpha67/OBSOLETE 2018-07-08 21:01:00.000000000 +0300
--- elmME+.2.5.alpha68-cvs/OBSOLETE 2026-09-21 17:43:30.000000000 +0300
***************
*** 117,119 ****
--- 117,120 ----
doc/help-options
doc/help-fboptions
lib/mbox/getword.c
+ lib/strstr.c
Index: elmME+.2.5.alpha68-cvs/config.h.SH
*** elmME+.2.5.alpha67/config.h.SH 2020-06-19 18:20:03.000000000 +0300
--- elmME+.2.5.alpha68-cvs/config.h.SH 2026-09-21 20:41:13.000000000 +0300
***************
*** 23,29 ****
sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#undef!' -e 's!/\*\(.*\)/\*!/\*\1!'
/* config.h
*
! * $Id: config.h.SH,v 2.36 2020/06/19 15:20:03 hurtta Exp $
*
* This file was produced by running the config.h.SH script, which
* gets its values from config.sh, which is generally produced by
--- 23,29 ----
sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#undef!' -e 's!/\*\(.*\)/\*!/\*\1!'
/* config.h
*
! * $Id: config.h.SH,v 2.38 2026/09/21 17:41:13 hurtta Exp $
*
* This file was produced by running the config.h.SH script, which
* gets its values from config.sh, which is generally produced by
***************
*** 383,399 ****
*/
#$d_have_int128 HAVE_INT128 /**/
- /* index:
- * This preprocessor symbol is defined, along with rindex, if the system
- * uses the strchr and strrchr routines instead.
- */
- /* rindex:
- * This preprocessor symbol is defined, along with index, if the system
- * uses the strchr and strrchr routines instead.
- */
- #$d_index index strchr /* cultural */
- #$d_index rindex strrchr /* differences? */
-
/* ISPELL:
* This symbol, if defined, indicates that the GNU ispell
* spelling checker that is available to Elm.
--- 383,388 ----
***************
*** 633,643 ****
#$d_strings STRINGS /**/
#$d_pwdinsys PWDINSYS /**/
- /* STRSTR:
- * This symbol, if defined, indicates that strstr() exists.
- */
- #$d_strstr STRSTR /**/
-
/* STRTOK:
* This symbol, if defined, indicates that strtok() exists.
*/
--- 622,627 ----
Index: elmME+.2.5.alpha68-cvs/hdrs/connection_imp.h
*** elmME+.2.5.alpha67/hdrs/connection_imp.h 2022-12-04 10:38:37.000000000 +0200
--- elmME+.2.5.alpha68-cvs/hdrs/connection_imp.h 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! /* $Id: connection_imp.h,v 2.43 2022/11/02 16:26:29 hurtta Exp $ */
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.43 $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI> (was hurtta+elm@posti.FMI.FI)
* or Kari Hurtta <elm@elmme-mailer.org>
--- 1,7 ----
! /* $Id: connection_imp.h,v 2.44 2026/09/20 16:42:07 hurtta Exp $ */
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.44 $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI> (was hurtta+elm@posti.FMI.FI)
* or Kari Hurtta <elm@elmme-mailer.org>
***************
*** 568,574 ****
extern int split_remote_name P_((const char *name,
struct remote_account *X,
struct service_entry **se /* NULL if no lookup */,
! char **rest,
int lookup_flags,
struct cancel_data ** cancel_p /* May be NULL,
Used if dns lookup was
--- 568,574 ----
extern int split_remote_name P_((const char *name,
struct remote_account *X,
struct service_entry **se /* NULL if no lookup */,
! const char **rest,
int lookup_flags,
struct cancel_data ** cancel_p /* May be NULL,
Used if dns lookup was
Index: elmME+.2.5.alpha68-cvs/hdrs/defs_major.h
*** elmME+.2.5.alpha67/hdrs/defs_major.h 2021-08-28 14:11:45.000000000 +0300
--- elmME+.2.5.alpha68-cvs/hdrs/defs_major.h 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! /* $Id: defs_major.h,v 2.13 2021/07/13 07:58:36 hurtta Exp $ */
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.13 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
--- 1,7 ----
! /* $Id: defs_major.h,v 2.14 2026/09/20 16:42:07 hurtta Exp $ */
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.14 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 39,51 ****
#endif
#define UNUSED_VAROK __attribute__((unused))
#define UNUSED_FUNCOK __attribute__((unused))
#else
#define FORIDENT
#define UNUSED_VAROK
#define UNUSED_FUNCOK
#endif
-
#if defined(__STDC__) || defined(_AIX)
# define ANSI_C 1
#endif
--- 39,56 ----
#endif
#define UNUSED_VAROK __attribute__((unused))
#define UNUSED_FUNCOK __attribute__((unused))
+
+ #if (__GNUC__ >= 15)
+ /* pragma is work around for Ubuntu 26.04 */
+ #pragma GCC diagnostic ignored "-Wold-style-definition"
+ #endif
+
#else
#define FORIDENT
#define UNUSED_VAROK
#define UNUSED_FUNCOK
#endif
#if defined(__STDC__) || defined(_AIX)
# define ANSI_C 1
#endif
***************
*** 113,119 ****
#ifndef ANSI_C
unsigned sleep();
- char *index(), *rindex(); /* names will be traslated by define in config.h */
char *strcpy(), *strcat(), *strncpy(); /* more in string.h in ANSI */
long lseek();
int fseek();
--- 118,123 ----
Index: elmME+.2.5.alpha68-cvs/hdrs/elmlib.h
*** elmME+.2.5.alpha67/hdrs/elmlib.h 2026-05-09 16:39:30.507375612 +0300
--- elmME+.2.5.alpha68-cvs/hdrs/elmlib.h 2026-09-21 20:41:13.000000000 +0300
***************
*** 1,7 ****
! /* $Id: elmlib.h,v 2.180 2026/05/09 13:33:38 hurtta Exp $ */
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.180 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
--- 1,7 ----
! /* $Id: elmlib.h,v 2.181 2026/09/21 17:41:13 hurtta Exp $ */
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.181 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 605,620 ****
extern char *strip_parens P_((const char *s));
extern char *get_parens P_((const char *s));
- /* lib/strstr.c */
-
- /* Why there is both in_string and strstr????
- * - K E H <hurtta@ozone.FMI.FI>
- */
-
- #ifndef STRSTR
- extern char *strstr P_((char *,char *));
- #endif
-
/* lib/cs_utf.c */
extern const charset_t IMAP_ENCODING;
--- 605,610 ----
Index: elmME+.2.5.alpha68-cvs/hdrs/mbx_imp.h
*** elmME+.2.5.alpha67/hdrs/mbx_imp.h 2024-06-29 18:50:33.973690147 +0300
--- elmME+.2.5.alpha68-cvs/hdrs/mbx_imp.h 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! /* $Id: mbx_imp.h,v 2.37 2024/06/23 07:38:36 hurtta Exp $ */
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.37 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
--- 1,7 ----
! /* $Id: mbx_imp.h,v 2.38 2026/09/20 16:42:07 hurtta Exp $ */
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.38 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 747,753 ****
extern int make_remote_mbox P_((struct folder_info *fh,
struct remote_account *X,
struct service_entry *se,
! char * rest,
int rewrite,
struct browser_passhm *passhm,
struct cancel_data *main_cancel /* Used if
--- 747,753 ----
extern int make_remote_mbox P_((struct folder_info *fh,
struct remote_account *X,
struct service_entry *se,
! const char * rest,
int rewrite,
struct browser_passhm *passhm,
struct cancel_data *main_cancel /* Used if
Index: elmME+.2.5.alpha68-cvs/hdrs/sysdefs.SH
*** elmME+.2.5.alpha67/hdrs/sysdefs.SH 2024-06-29 18:50:33.977690178 +0300
--- elmME+.2.5.alpha68-cvs/hdrs/sysdefs.SH 2026-09-21 20:41:13.000000000 +0300
***************
*** 39,48 ****
echo "Extracting hdrs/sysdefs.h (with variable substitutions)"
sed <<!GROK!THIS! >sysdefs.h -e 's!^#undef!/\*#undef!'
! /* $Id: sysdefs.SH,v 2.18 2024/06/10 18:05:34 hurtta Exp $ */
/*****************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.18 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI,
--- 39,48 ----
echo "Extracting hdrs/sysdefs.h (with variable substitutions)"
sed <<!GROK!THIS! >sysdefs.h -e 's!^#undef!/\*#undef!'
! /* $Id: sysdefs.SH,v 2.19 2026/09/21 17:41:13 hurtta Exp $ */
/*****************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.19 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI,
***************
*** 164,174 ****
#define MSG_SEPARATOR "\001\001\001\001\n" /* mmdf message seperator */
-
- #ifndef STRSTR
- char *strstr();
- #endif
-
!GROK!THIS!
#
--- 164,169 ----
Index: elmME+.2.5.alpha68-cvs/lib/Makefile.SH
*** elmME+.2.5.alpha67/lib/Makefile.SH 2026-05-09 16:39:30.509375600 +0300
--- elmME+.2.5.alpha68-cvs/lib/Makefile.SH 2026-09-20 19:42:07.000000000 +0300
***************
*** 28,39 ****
;;
esac
- case "$d_strstr" in
- define) strsrc= strobj= ;;
- *) strsrc="strstr.c"
- strobj="strstr.o"
- ;;
- esac
case "$d_strftime" in
define) ftimesrc= ftimeobj= ;;
--- 28,33 ----
***************
*** 71,77 ****
cat >Makefile <<!GROK!THIS!
#!$make
#
! # $Id: Makefile.SH,v 2.35 2026/04/12 11:58:48 hurtta Exp $
#
# Makefile for the ELM (ME+) mail program.
#
--- 65,71 ----
cat >Makefile <<!GROK!THIS!
#!$make
#
! # $Id: Makefile.SH,v 2.36 2026/09/20 16:42:07 hurtta Exp $
#
# Makefile for the ELM (ME+) mail program.
#
***************
*** 339,345 ****
# Dependencies of C object files
putenv.o: $(IHDR)/defs_major.h
- strstr.o: $(IHDR)/defs_major.h
atonum.o: $(IHDR)/elm_defs.h
bindata.o: $(IHDR)/elm_defs.h $(INCLDIR)/mmaputil.h \
--- 333,338 ----
Index: elmME+.2.5.alpha68-cvs/lib/alias/oldaliases.c
*** elmME+.2.5.alpha67/lib/alias/oldaliases.c 2018-11-14 21:01:33.000000000 +0200
--- elmME+.2.5.alpha68-cvs/lib/alias/oldaliases.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: oldaliases.c,v 1.8 2018/11/14 19:01:33 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 1.8 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI)
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: oldaliases.c,v 1.9 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 1.9 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI)
***************
*** 655,661 ****
struct string * aliasname = NULL;
! if ((s = index(aliases, ',')) != NULL)
*s++ = '\0';
/*
--- 655,661 ----
struct string * aliasname = NULL;
! if ((s = strchr(aliases, ',')) != NULL)
*s++ = '\0';
/*
***************
*** 714,720 ****
aliases = buffer;
! if ((s = index(buffer, '=')) == NULL) {
lib_error(CATGETS(elm_msg_cat,
NewaliasSet, NewaliasNoFieldSep,
"Error - alias \"%.40s\" missing '=' field separator."),
--- 714,720 ----
aliases = buffer;
! if ((s = strchr(buffer, '=')) == NULL) {
lib_error(CATGETS(elm_msg_cat,
NewaliasSet, NewaliasNoFieldSep,
"Error - alias \"%.40s\" missing '=' field separator."),
Index: elmME+.2.5.alpha68-cvs/lib/debug.c
*** elmME+.2.5.alpha67/lib/debug.c 2024-01-01 21:18:53.000000000 +0200
--- elmME+.2.5.alpha68-cvs/lib/debug.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: debug.c,v 2.18 2023/12/13 16:55:32 hurtta Exp $";
/************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.18 $ $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: debug.c,v 2.19 2026/09/20 16:42:07 hurtta Exp $";
/************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.19 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 64,70 ****
A-> use_temp ?
"/tmp" : home,
A->file);
! char * pp;
int fd = -1;
int r;
--- 64,70 ----
A-> use_temp ?
"/tmp" : home,
A->file);
! const char * pp;
int fd = -1;
int r;
***************
*** 170,224 ****
DEBUG_VAR(temp,__FILE__,"");
! char * ptr;
long l;
C.class = "";
C.level = 0;
! l = strtol(arg,&ptr,10);
! if ('\0' == *ptr)
C.level = l;
! else if (NULL == (ptr = strpbrk(arg,":=#"))) {
C.class = arg;
C.level = 1;
} else {
char *ptr1;
char * tmp__1 = safe_strdup(arg);
! tmp__1[ptr-arg] = '\0';
C.class = tmp__1;
! if ('=' == *ptr) {
! match_filename = safe_strdup(ptr+1);
! ptr = strchr(match_filename,':');
! if (ptr) {
! *ptr = '\0';
! ptr++;
}
! } else if ('#' == *ptr) {
!
! match_filename = safe_strdup(ptr+1);
! use_temp = 1;
! ptr = strchr(match_filename,':');
! if (ptr) {
! *ptr = '\0';
! ptr++;
! }
!
} else
! ptr++;
! if (!ptr)
C.level = 1;
else {
! l = strtol(ptr,&ptr1,10);
if ('\0' != *ptr1) {
if (match_filename)
free(match_filename);
--- 170,229 ----
DEBUG_VAR(temp,__FILE__,"");
! char * lptr = NULL;
! const char * cptr = NULL;
long l;
C.class = "";
C.level = 0;
! l = strtol(arg,&lptr,10);
! if ('\0' == *lptr)
C.level = l;
! else if (NULL == (cptr = strpbrk(arg,":=#"))) {
C.class = arg;
C.level = 1;
} else {
char *ptr1;
char * tmp__1 = safe_strdup(arg);
! tmp__1[cptr-arg] = '\0';
C.class = tmp__1;
! if ('=' == *cptr) {
! char * mptr;
!
! match_filename = safe_strdup(cptr+1);
! mptr = strchr(match_filename,':');
! if (mptr) {
! *mptr = '\0';
! mptr++;
}
! cptr = mptr;
! } else if ('#' == *cptr) {
! char * mptr;
+ match_filename = safe_strdup(cptr+1);
+ use_temp = 1;
+ mptr = strchr(match_filename,':');
+ if (mptr) {
+ *mptr = '\0';
+ mptr++;
+ }
+ cptr = mptr;
+
} else
! cptr++;
! if (!cptr)
C.level = 1;
else {
! l = strtol(cptr,&ptr1,10);
if ('\0' != *ptr1) {
if (match_filename)
free(match_filename);
Index: elmME+.2.5.alpha68-cvs/lib/gcos_name.c
*** elmME+.2.5.alpha67/lib/gcos_name.c 2014-07-14 18:07:26.000000000 +0300
--- elmME+.2.5.alpha68-cvs/lib/gcos_name.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: gcos_name.c,v 2.4 2014/07/14 15:07:26 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.4 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: gcos_name.c,v 2.5 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.5 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 72,78 ****
* '('. If there is no '(', then the full name ends at the end of the
* gcos field.
*/
! if(lastcp = index(fullname, '('))
*lastcp = '\0';
/* The first character of the full name is the one following the
--- 72,78 ----
* '('. If there is no '(', then the full name ends at the end of the
* gcos field.
*/
! if(lastcp = strchr(fullname, '('))
*lastcp = '\0';
/* The first character of the full name is the one following the
***************
*** 81,87 ****
* If there is no '-' before the ending character, then the fullname
* begins at the beginning of the gcos field.
*/
! if(firstcp = rindex(fullname, '-'))
firstcp++;
else
firstcp = fullname;
--- 81,87 ----
* If there is no '-' before the ending character, then the fullname
* begins at the beginning of the gcos field.
*/
! if(firstcp = strrchr(fullname, '-'))
firstcp++;
else
firstcp = fullname;
Index: elmME+.2.5.alpha68-cvs/lib/mbox/last_read.c
*** elmME+.2.5.alpha67/lib/mbox/last_read.c 2026-05-09 16:39:30.511375589 +0300
--- elmME+.2.5.alpha68-cvs/lib/mbox/last_read.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: last_read.c,v 2.2 2026/04/12 11:58:48 hurtta Exp $";
/************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.2 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* or Kari Hurtta <elm@elmme-mailer.org>
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: last_read.c,v 2.3 2026/09/20 16:42:07 hurtta Exp $";
/************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.3 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* or Kari Hurtta <elm@elmme-mailer.org>
***************
*** 4443,4449 ****
if (this_last_read->sys_dir &&
in_directory(file_stat,pathname,this_last_read->sys_dir)) {
! char * x = strrchr(pathname,'/');
DPRINT(Debug,13,(&Debug,
"pathname_to_entryname: %s on directory %s",
--- 4443,4449 ----
if (this_last_read->sys_dir &&
in_directory(file_stat,pathname,this_last_read->sys_dir)) {
! const char * x = strrchr(pathname,'/');
DPRINT(Debug,13,(&Debug,
"pathname_to_entryname: %s on directory %s",
Index: elmME+.2.5.alpha68-cvs/lib/mbox/localmbx.c
*** elmME+.2.5.alpha67/lib/mbox/localmbx.c 2026-05-09 16:39:30.512375583 +0300
--- elmME+.2.5.alpha68-cvs/lib/mbox/localmbx.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: localmbx.c,v 2.80 2026/01/19 18:21:46 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.80 $ $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: localmbx.c,v 2.81 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.81 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 9799,9815 ****
* -- if message is re$ynced there may now be
* Status: -header
*/
! if (index(status, 'R') != NULL)
entry->status &= ~(NEW | UNREAD);
! else if (index(status,'O') != NULL) {
entry->status &= ~NEW;
entry->status |= UNREAD;
}
! if (index(status, 'r') != NULL)
entry->status |= REPLIED_TO;
! if (index(status, 'F') != NULL)
entry->status1 |= S1_FLAGGED;
}
--- 9799,9815 ----
* -- if message is re$ynced there may now be
* Status: -header
*/
! if (strchr(status, 'R') != NULL)
entry->status &= ~(NEW | UNREAD);
! else if (strchr(status,'O') != NULL) {
entry->status &= ~NEW;
entry->status |= UNREAD;
}
! if (strchr(status, 'r') != NULL)
entry->status |= REPLIED_TO;
! if (strchr(status, 'F') != NULL)
entry->status1 |= S1_FLAGGED;
}
Index: elmME+.2.5.alpha68-cvs/lib/mbox/mk_lockname.c
*** elmME+.2.5.alpha67/lib/mbox/mk_lockname.c 2014-11-15 13:00:24.000000000 +0200
--- elmME+.2.5.alpha68-cvs/lib/mbox/mk_lockname.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: mk_lockname.c,v 2.5 2014/11/15 11:00:24 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.5 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: mk_lockname.c,v 2.6 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.6 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 35,41 ****
#ifdef XENIX
/* lock is /tmp/[basename of file_to_lock].mlk */
elm_sfprintf(lock_name, sizeof lock_name,
! FRM("/tmp/%.10s.mlk"), rindex(file_to_lock, '/')+1);
#else
/* lock is [file_to_lock].lock */
elm_sfprintf(lock_name, sizeof lock_name,
--- 35,41 ----
#ifdef XENIX
/* lock is /tmp/[basename of file_to_lock].mlk */
elm_sfprintf(lock_name, sizeof lock_name,
! FRM("/tmp/%.10s.mlk"), strrchr(file_to_lock, '/')+1);
#else
/* lock is [file_to_lock].lock */
elm_sfprintf(lock_name, sizeof lock_name,
Index: elmME+.2.5.alpha68-cvs/lib/mbox/remote_mbx.c
*** elmME+.2.5.alpha67/lib/mbox/remote_mbx.c 2022-09-02 20:38:19.000000000 +0300
--- elmME+.2.5.alpha68-cvs/lib/mbox/remote_mbx.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: remote_mbx.c,v 2.15 2022/08/04 05:53:03 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.15 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI> (was hurtta+elm@posti.FMI.FI)
* or Kari Hurtta <elm@elmme-mailer.org>
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: remote_mbx.c,v 2.16 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.16 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI> (was hurtta+elm@posti.FMI.FI)
* or Kari Hurtta <elm@elmme-mailer.org>
***************
*** 79,85 ****
struct folder_info *fh;
struct remote_account *X;
struct service_entry *se;
! char * rest;
int rewrite;
struct browser_passhm * passhm;
struct cancel_data *main_cancel /* Used if dns lookup was
--- 79,85 ----
struct folder_info *fh;
struct remote_account *X;
struct service_entry *se;
! const char * rest;
int rewrite;
struct browser_passhm * passhm;
struct cancel_data *main_cancel /* Used if dns lookup was
***************
*** 680,686 ****
#ifdef REMOTE_MBX
struct remote_account X;
struct service_entry *se = NULL;
! char * rest;
int z;
#endif
--- 680,686 ----
#ifdef REMOTE_MBX
struct remote_account X;
struct service_entry *se = NULL;
! const char * rest;
int z;
#endif
Index: elmME+.2.5.alpha68-cvs/lib/mbox/savefolder.c
*** elmME+.2.5.alpha67/lib/mbox/savefolder.c 2024-01-01 21:18:53.000000000 +0200
--- elmME+.2.5.alpha68-cvs/lib/mbox/savefolder.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: savefolder.c,v 2.52 2023/12/13 16:55:32 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.52 $ $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: savefolder.c,v 2.53 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.53 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 447,453 ****
}
if (-1 == passhm_lookup) {
! char *rest = NULL;
int code;
/* -1 == name not found or bad syntax
--- 447,453 ----
}
if (-1 == passhm_lookup) {
! const char *rest = NULL;
int code;
/* -1 == name not found or bad syntax
***************
*** 3380,3386 ****
#ifdef REMOTE_MBX
struct remote_account X;
! char *rest = NULL;
DPRINT(Debug,15,(&Debug,
--- 3380,3386 ----
#ifdef REMOTE_MBX
struct remote_account X;
! const char *rest = NULL;
DPRINT(Debug,15,(&Debug,
***************
*** 3432,3442 ****
switch(rest[0]) {
case ':':
tempbuf = new_string2(system_charset,
! s2us(rest+1));
break;
case '/':
tempbuf = new_string2(system_charset,
! s2us(rest));
break;
default:
panic("BROWSER PANIC",__FILE__,__LINE__,
--- 3432,3442 ----
switch(rest[0]) {
case ':':
tempbuf = new_string2(system_charset,
! cs2us(rest+1));
break;
case '/':
tempbuf = new_string2(system_charset,
! cs2us(rest));
break;
default:
panic("BROWSER PANIC",__FILE__,__LINE__,
***************
*** 3559,3569 ****
switch(rest[0]) {
case ':':
tempbuf = new_string2(imap_charset,
! s2us(rest+1));
break;
case '/':
tempbuf = new_string2(imap_charset,
! s2us(rest));
break;
default:
panic("BROWSER PANIC",__FILE__,__LINE__,
--- 3559,3569 ----
switch(rest[0]) {
case ':':
tempbuf = new_string2(imap_charset,
! cs2us(rest+1));
break;
case '/':
tempbuf = new_string2(imap_charset,
! cs2us(rest));
break;
default:
panic("BROWSER PANIC",__FILE__,__LINE__,
***************
*** 4241,4247 ****
struct remote_account X;
struct service_entry * se = NULL;
struct service_entry * result_se = NULL;
! char *rest = NULL; /* Ignored -- need NOT to be free'ed
* 'rest' is pointer to area of 'str'
*/
--- 4241,4247 ----
struct remote_account X;
struct service_entry * se = NULL;
struct service_entry * result_se = NULL;
! const char *rest = NULL; /* Ignored -- need NOT to be free'ed
* 'rest' is pointer to area of 'str'
*/
Index: elmME+.2.5.alpha68-cvs/lib/opt_utils.c
*** elmME+.2.5.alpha67/lib/opt_utils.c 2017-09-30 16:28:01.000000000 +0300
--- elmME+.2.5.alpha68-cvs/lib/opt_utils.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: opt_utils.c,v 2.11 2017/09/30 13:28:01 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.11 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: opt_utils.c,v 2.12 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.12 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 57,63 ****
if (NULL != (result = getenv("LOCALDOMAIN")) &&
result[0]) {
! char * sp = strpbrk(result," \t");
DPRINT(Debug,5,(&Debug,
"gethostdomain: Readed %s from $LOCALDOMAIN environment variable%s\n",
--- 57,63 ----
if (NULL != (result = getenv("LOCALDOMAIN")) &&
result[0]) {
! const char * sp = strpbrk(result," \t");
DPRINT(Debug,5,(&Debug,
"gethostdomain: Readed %s from $LOCALDOMAIN environment variable%s\n",
***************
*** 98,104 ****
if (result) {
char *p;
! if ((p = index(buf, '\n')) != NULL) {
*p = '\0';
} else if (!feof(fp) &&
(0 != (global_mode & READ_FLAG_GLOBAL_ONLY) ||
--- 98,104 ----
if (result) {
char *p;
! if ((p = strchr(buf, '\n')) != NULL) {
*p = '\0';
} else if (!feof(fp) &&
(0 != (global_mode & READ_FLAG_GLOBAL_ONLY) ||
***************
*** 449,455 ****
return(EOF);
}
optopt = c = argv[optind][sp];
! if(c == ':' || (cp=index(opts, c)) == NULL) {
ERR(": illegal option -- ", c);
if(argv[optind][++sp] == '\0') {
optind++;
--- 449,455 ----
return(EOF);
}
optopt = c = argv[optind][sp];
! if(c == ':' || (cp=strchr(opts, c)) == NULL) {
ERR(": illegal option -- ", c);
if(argv[optind][++sp] == '\0') {
optind++;
Index: elmME+.2.5.alpha68-cvs/lib/rc_handle.c
*** elmME+.2.5.alpha67/lib/rc_handle.c 2026-05-09 16:39:30.513375577 +0300
--- elmME+.2.5.alpha68-cvs/lib/rc_handle.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: rc_handle.c,v 2.43 2026/04/12 11:58:48 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.43 $ $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: rc_handle.c,v 2.44 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.44 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 745,751 ****
if (strncmp(s, "rev-", 4) == 0 ||
strncmp(s, "reverse-", 8) == 0) {
f = -f;
! s = index(s, '-') + 1;
}
if (negate)
--- 745,751 ----
if (strncmp(s, "rev-", 4) == 0 ||
strncmp(s, "reverse-", 8) == 0) {
f = -f;
! s = strchr(s, '-') + 1;
}
if (negate)
Index: elmME+.2.5.alpha68-cvs/lib/remote_mbx.c
*** elmME+.2.5.alpha67/lib/remote_mbx.c 2022-12-04 10:38:37.000000000 +0200
--- elmME+.2.5.alpha68-cvs/lib/remote_mbx.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: remote_mbx.c,v 2.68 2022/11/02 16:26:29 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.68 $ $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: remote_mbx.c,v 2.69 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.69 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 5749,5761 ****
const char *name;
struct remote_account *X;
struct service_entry **se;
! char **rest;
int lookup_flags;
struct cancel_data ** cancel_p
/* May be NULL, Used if dns lookup was cancelable */;
{
! char *sep;
int ret = 0;
DPRINT(Debug,12,(&Debug,
--- 5749,5761 ----
const char *name;
struct remote_account *X;
struct service_entry **se;
! const char **rest;
int lookup_flags;
struct cancel_data ** cancel_p
/* May be NULL, Used if dns lookup was cancelable */;
{
! const char *sep;
int ret = 0;
DPRINT(Debug,12,(&Debug,
***************
*** 5785,5791 ****
sep = strchr(name,'@');
if (sep && (!*rest || *rest > sep)) {
! char * sep2;
if (sep == name || sep[1] == '\0' ||
*rest == sep+1) {
--- 5785,5791 ----
sep = strchr(name,'@');
if (sep && (!*rest || *rest > sep)) {
! const char * sep2;
if (sep == name || sep[1] == '\0' ||
*rest == sep+1) {
Index: elmME+.2.5.alpha68-cvs/lib/state_out.c
*** elmME+.2.5.alpha67/lib/state_out.c 2024-01-01 21:18:53.000000000 +0200
--- elmME+.2.5.alpha68-cvs/lib/state_out.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: state_out.c,v 2.18 2023/12/13 16:55:32 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.18 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI)
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: state_out.c,v 2.19 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.19 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI)
***************
*** 1195,1201 ****
int ret = 0;
va_list vl;
int t = strlen(format);
! char * t1 = strchr(format,'\n');
/* elm_vmessage uses display_charset -- if buffers
'display_charset' is different we can not use
--- 1195,1201 ----
int ret = 0;
va_list vl;
int t = strlen(format);
! const char * t1 = strchr(format,'\n');
/* elm_vmessage uses display_charset -- if buffers
'display_charset' is different we can not use
Index: elmME+.2.5.alpha68-cvs/lib/strstr.c
*** elmME+.2.5.alpha67/lib/strstr.c 2014-07-14 18:07:28.000000000 +0300
--- /tmp/203302-very-long-file-name/NULL-203302-comes-in-here--XXXXXXXXX 2026-09-26 14:27:40.081123488 +0300
***************
*** 1,72 ****
- static char rcsid[] = "@(#)$Id: strstr.c,v 2.3 2014/07/14 15:07:28 hurtta Exp $";
-
- /******************************************************************************
- * The Elm (ME+) Mail System - $Revision: 2.3 $ $State: Exp $
- *
- * Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
- * (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
- * or Kari Hurtta <elm@elmme-mailer.org>
- ******************************************************************************
- * The Elm Mail System
- *
- * Copyright (c) 1988-1992 USENET Community Trust
- * Copyright (c) 1986,1987 Dave Taylor
- *****************************************************************************/
-
- /** look for substring in string
- **/
-
- #include "defs_major.h"
-
- /*
- * strstr() -- Locates a substring.
- *
- * This is a replacement for the POSIX function which does not
- * appear on all systems.
- *
- * Synopsis:
- * #include <string.h>
- * char *strstr(const char *s1, const char *s2);
- *
- * Arguments:
- * s1 Pointer to the subject string.
- * s2 Pointer to the substring to locate.
- *
- * Returns:
- * A pointer to the located string or NULL
- *
- * Description:
- * The strstr() function locates the first occurence in s1 of
- * the string s2. The terminating null characters are not
- * compared.
- */
-
- char *strstr(s1, s2)
- char *s1, *s2;
- {
- int len;
- char *ptr;
- char *tmpptr;
-
- ptr = NULL;
- len = strlen(s2);
-
- if ( len <= strlen(s1)) {
- tmpptr = s1;
- while ((ptr = index(tmpptr, (int)*s2)) != NULL) {
- if (strncmp(ptr, s2, len) == 0) {
- break;
- }
- tmpptr = ptr+1;
- }
- }
- return (ptr);
- }
-
- /*
- * Local Variables:
- * mode:c
- * c-basic-offset:4
- * buffer-file-coding-system: iso-8859-1
- * End:
- */
--- 0 ----
Index: elmME+.2.5.alpha68-cvs/melib/mailcap.c
*** elmME+.2.5.alpha67/melib/mailcap.c 2022-09-02 20:38:19.000000000 +0300
--- elmME+.2.5.alpha68-cvs/melib/mailcap.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: mailcap.c,v 2.18 2022/08/19 16:13:04 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.18 $ $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: mailcap.c,v 2.19 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.19 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 1990,1996 ****
struct mailcap_entry *x;
{
char * new_name;
! char *y;
if (! x->extension)
return safe_strdup(file_name); /* Need not add extension */
--- 1990,1996 ----
struct mailcap_entry *x;
{
char * new_name;
! const char *y;
if (! x->extension)
return safe_strdup(file_name); /* Need not add extension */
Index: elmME+.2.5.alpha68-cvs/shared_libs/resolv/resolvertest.c
*** elmME+.2.5.alpha67/shared_libs/resolv/resolvertest.c 2017-11-11 14:37:28.000000000 +0200
--- elmME+.2.5.alpha68-cvs/shared_libs/resolv/resolvertest.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: resolvertest.c,v 1.4 2017/11/11 12:37:28 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 1.4 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* or Kari Hurtta <elm@elmme-mailer.org>
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: resolvertest.c,v 1.5 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 1.5 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* or Kari Hurtta <elm@elmme-mailer.org>
***************
*** 56,67 ****
#endif
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
int r;
--- 56,67 ----
#endif
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
int r;
Index: elmME+.2.5.alpha68-cvs/shared_libs/resolv/resolvertest2.c
*** elmME+.2.5.alpha67/shared_libs/resolv/resolvertest2.c 2022-07-28 18:49:52.000000000 +0300
--- elmME+.2.5.alpha68-cvs/shared_libs/resolv/resolvertest2.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: resolvertest2.c,v 1.5 2022/06/27 09:08:40 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 1.5 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* or Kari Hurtta <elm@elmme-mailer.org>
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: resolvertest2.c,v 1.6 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 1.6 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* or Kari Hurtta <elm@elmme-mailer.org>
***************
*** 56,68 ****
#endif
#if defined(__STDC__)
! void print_parsed(const char *name,ns_msg *parsed,char *X);
! #endif
!
void print_parsed(name,parsed,X)
const char *name;
ns_msg *parsed;
char *X;
{
ns_sect sect;
--- 56,68 ----
#endif
#if defined(__STDC__)
! void print_parsed(const char *name,ns_msg *parsed,char *X)
! #else
void print_parsed(name,parsed,X)
const char *name;
ns_msg *parsed;
char *X;
+ #endif
{
ns_sect sect;
***************
*** 418,429 ****
}
#if defined(__STDC__)
! int same_question_rr(ns_rr *rr1, ns_rr *rr2);
! #endif
!
int same_question_rr(rr1,rr2)
ns_rr *rr1;
ns_rr *rr2;
{
char *name1 = ns_rr_name((*rr1));
char *name2 = ns_rr_name((*rr2));
--- 418,429 ----
}
#if defined(__STDC__)
! int same_question_rr(ns_rr *rr1, ns_rr *rr2)
! #else
int same_question_rr(rr1,rr2)
ns_rr *rr1;
ns_rr *rr2;
+ #endif
{
char *name1 = ns_rr_name((*rr1));
char *name2 = ns_rr_name((*rr2));
***************
*** 459,470 ****
}
#if defined(__STDC__)
! int query_it (const char *name, ns_type q_type, char *domain);
! #endif
int query_it(name,q_type,domain)
const char *name;
ns_type q_type;
char *domain;
{
const char * name1 = name;
int r = 0;
--- 459,471 ----
}
#if defined(__STDC__)
! int query_it (const char *name, ns_type q_type, char *domain)
! #else
int query_it(name,q_type,domain)
const char *name;
ns_type q_type;
char *domain;
+ #endif
{
const char * name1 = name;
int r = 0;
***************
*** 730,741 ****
}
#if defined(__STDC__)
! int main (int argc, char * argv[]);
! #endif
!
int main (argc,argv)
int argc;
char * argv[];
{
int r = 0;
--- 731,742 ----
}
#if defined(__STDC__)
! int main (int argc, char * argv[])
! #else
int main (argc,argv)
int argc;
char * argv[];
+ #endif
{
int r = 0;
Index: elmME+.2.5.alpha68-cvs/shared_libs/smtp/smtp.c
*** elmME+.2.5.alpha67/shared_libs/smtp/smtp.c 2022-09-02 20:38:19.000000000 +0300
--- elmME+.2.5.alpha68-cvs/shared_libs/smtp/smtp.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: smtp.c,v 2.50 2022/08/04 05:53:03 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.50 $ $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: smtp.c,v 2.51 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.51 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 4259,4265 ****
/* If there was exactly one answer we can use it */
if (1 == idx) {
! char *x;
if (skip_enchanced && buffer[0] == '2' &&
(x = strchr(buffer,' '))) {
--- 4259,4265 ----
/* If there was exactly one answer we can use it */
if (1 == idx) {
! const char *x;
if (skip_enchanced && buffer[0] == '2' &&
(x = strchr(buffer,' '))) {
Index: elmME+.2.5.alpha68-cvs/src/command/opt_gencmd.c
*** elmME+.2.5.alpha67/src/command/opt_gencmd.c 2016-02-10 21:48:10.000000000 +0200
--- elmME+.2.5.alpha68-cvs/src/command/opt_gencmd.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: opt_gencmd.c,v 1.3 2016/02/10 19:48:10 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 1.3 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* or Kari Hurtta <elm@elmme-mailer.org>
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: opt_gencmd.c,v 1.4 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 1.4 $ $State: Exp $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* or Kari Hurtta <elm@elmme-mailer.org>
***************
*** 84,90 ****
for (i = 0; i < cfg_opts->item_count; i++) {
unsigned char c = cfg_opts->items[i].letter;
! char * x1 = index(opt_string,c);
int keys_table[3];
unsigned char upper = 0;
--- 84,90 ----
for (i = 0; i < cfg_opts->item_count; i++) {
unsigned char c = cfg_opts->items[i].letter;
! char * x1 = strchr(opt_string,c);
int keys_table[3];
unsigned char upper = 0;
Index: elmME+.2.5.alpha68-cvs/src/hdrconfg.c
*** elmME+.2.5.alpha67/src/hdrconfg.c 2026-05-09 16:39:30.521375529 +0300
--- elmME+.2.5.alpha68-cvs/src/hdrconfg.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: hdrconfg.c,v 2.40 2026/04/12 11:58:49 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.40 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: hdrconfg.c,v 2.41 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.41 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 2207,2213 ****
int r;
bp = NULL;
! if ((prio = index(prec, ':')) != NULL)
*prio++ = '\0';
/* TODO: This is ineffective
--- 2207,2213 ----
int r;
bp = NULL;
! if ((prio = strchr(prec, ':')) != NULL)
*prio++ = '\0';
/* TODO: This is ineffective
Index: elmME+.2.5.alpha68-cvs/src/opt_generic.c
*** elmME+.2.5.alpha67/src/opt_generic.c 2026-05-09 16:39:30.522375523 +0300
--- elmME+.2.5.alpha68-cvs/src/opt_generic.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: opt_generic.c,v 2.20 2026/04/12 11:58:49 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.20 $ $State: Exp $
*
* Most of code moved from src/options.c
*
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: opt_generic.c,v 2.21 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.21 $ $State: Exp $
*
* Most of code moved from src/options.c
*
***************
*** 1204,1210 ****
if (o) {
! char * x;
FOUND:
--- 1204,1210 ----
if (o) {
! const char * x;
FOUND:
***************
*** 1215,1221 ****
FlushBuffer();
! x = index(opt_string,c1);
if (x) {
int y = x-opt_string;
--- 1215,1221 ----
FlushBuffer();
! x = strchr(opt_string,c1);
if (x) {
int y = x-opt_string;
Index: elmME+.2.5.alpha68-cvs/src/pgp.c
*** elmME+.2.5.alpha67/src/pgp.c 2021-08-28 14:11:45.000000000 +0300
--- elmME+.2.5.alpha68-cvs/src/pgp.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: pgp.c,v 2.21 2021/07/07 16:28:00 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.21 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: pgp.c,v 2.22 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.22 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 149,156 ****
}
DPRINT(Debug,9,(&Debug, "GetPGPKey: name=%s,v=%d\n",name,v));
! if (index(name, '@') == NULL && index(name, '(') == NULL &&
! index(name, '<') == NULL) {
/* this is either just a username, or someone's real name. in either
case it only needs to be checked once. */
--- 149,156 ----
}
DPRINT(Debug,9,(&Debug, "GetPGPKey: name=%s,v=%d\n",name,v));
! if (strchr(name, '@') == NULL && strchr(name, '(') == NULL &&
! strchr(name, '<') == NULL) {
/* this is either just a username, or someone's real name. in either
case it only needs to be checked once. */
***************
*** 307,313 ****
retry:
while (fgets(buf, STRING, p) != NULL) {
! pc = rindex(buf, '\n');
if (!pc) /* this shouldn't happen! */
continue;
*pc = '\0';
--- 307,313 ----
retry:
while (fgets(buf, STRING, p) != NULL) {
! pc = strrchr(buf, '\n');
if (!pc) /* this shouldn't happen! */
continue;
*pc = '\0';
Index: elmME+.2.5.alpha68-cvs/utils/Makefile.SH
*** elmME+.2.5.alpha67/utils/Makefile.SH 2024-01-01 21:18:53.000000000 +0200
--- elmME+.2.5.alpha68-cvs/utils/Makefile.SH 2026-09-23 16:31:26.000000000 +0300
***************
*** 42,48 ****
echo "Extracting utils/Makefile (with variable substitutions)"
cat >Makefile <<!GROK!THIS!
#!$make
! # @(#)$Id: Makefile.SH,v 2.24 2023/12/13 16:55:32 hurtta Exp $
#
# Makefile for the Elm (ME+) system utilities
#
--- 42,48 ----
echo "Extracting utils/Makefile (with variable substitutions)"
cat >Makefile <<!GROK!THIS!
#!$make
! # @(#)$Id: Makefile.SH,v 2.25 2026/09/23 13:31:26 hurtta Exp $
#
# Makefile for the Elm (ME+) system utilities
#
***************
*** 115,125 ****
fi
- case "$d_strstr" in
- define) strobj= ;;
- *) strobj="../lib/strstr.o"
- ;;
- esac
case "$d_dlopen_libs" in
define) regshared="\$(BIN)/elmlibregister-shared"
regnoshared="\$(LIB)/elmlibregister"
--- 115,120 ----
***************
*** 451,458 ****
../lib/putenv.o:
cd ../lib; $(MAKE) putenv.o
- ../lib/strstr.o:
- cd ../lib; $(MAKE) strstr.o
../lib/convert_status.o:
cd ../lib; $(MAKE) convert_status.o
--- 446,451 ----
Index: elmME+.2.5.alpha68-cvs/utils/elmregister.c
*** elmME+.2.5.alpha67/utils/elmregister.c 2024-01-01 21:18:53.000000000 +0200
--- elmME+.2.5.alpha68-cvs/utils/elmregister.c 2026-09-21 20:41:13.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: elmregister.c,v 2.35 2023/12/13 16:55:32 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.35 $
*
* 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: elmregister.c,v 2.37 2026/09/21 17:41:13 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.37 $
*
* Author: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 69,79 ****
extern int putenv P_((char *));
#endif
- /* strstr.c */
- #ifndef STRSTR
- extern char *strstr P_((char *,char *));
- #endif
-
#ifdef PWDINSYS
# include <sys/pwd.h>
# include <sys/grp.h> /* TODO: Not necessary correct .... */
--- 69,74 ----
***************
*** 7148,7154 ****
int x = 1;
int r = 1;
! char *y;
enum register_mode {
register_master,
--- 7143,7149 ----
int x = 1;
int r = 1;
! const char *y;
enum register_mode {
register_master,
Index: elmME+.2.5.alpha68-cvs/utils/from.c
*** elmME+.2.5.alpha67/utils/from.c 2022-12-04 10:38:37.000000000 +0200
--- elmME+.2.5.alpha68-cvs/utils/from.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: from.c,v 2.29 2022/11/02 16:26:29 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.29 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: from.c,v 2.30 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.30 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 877,892 ****
hdr.status,hdr.mailx_status));
! if (index(hdr.mailx_status, 'R') != NULL) {
hdr.status &= ~(NEW | UNREAD);
DPRINT(Debug,4,(&Debug," -NEW -UNREAD"));
}
! else if (index(hdr.mailx_status,'O') != NULL) {
hdr.status &= ~NEW;
hdr.status |= UNREAD;
DPRINT(Debug,4,(&Debug," -NEW +UNREAD"));
}
! if (index(hdr.mailx_status, 'r') != NULL) {
hdr.status |= REPLIED_TO;
DPRINT(Debug,4,(&Debug," +REPLIED"));
}
--- 877,892 ----
hdr.status,hdr.mailx_status));
! if (strchr(hdr.mailx_status, 'R') != NULL) {
hdr.status &= ~(NEW | UNREAD);
DPRINT(Debug,4,(&Debug," -NEW -UNREAD"));
}
! else if (strchr(hdr.mailx_status,'O') != NULL) {
hdr.status &= ~NEW;
hdr.status |= UNREAD;
DPRINT(Debug,4,(&Debug," -NEW +UNREAD"));
}
! if (strchr(hdr.mailx_status, 'r') != NULL) {
hdr.status |= REPLIED_TO;
DPRINT(Debug,4,(&Debug," +REPLIED"));
}
Index: elmME+.2.5.alpha68-cvs/utils/newmail.c
*** elmME+.2.5.alpha67/utils/newmail.c 2022-12-04 10:38:37.000000000 +0200
--- elmME+.2.5.alpha68-cvs/utils/newmail.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: newmail.c,v 2.23 2022/11/02 16:26:29 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.23 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: newmail.c,v 2.24 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.24 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI, hurtta+elm@ozone.FMI.FI)
***************
*** 672,684 ****
if (NULL != (tmphdr = locate_header_by_name(parsed_headers,
"Status"))) {
! if (index(tmphdr->body, 'R') != NULL)
entry->status &= ~(NEW | UNREAD);
! else if (index(tmphdr->body,'O') != NULL) {
entry->status &= ~NEW;
entry->status |= UNREAD;
}
! if (index(tmphdr->body, 'r') != NULL)
entry->status |= REPLIED_TO;
}
--- 672,684 ----
if (NULL != (tmphdr = locate_header_by_name(parsed_headers,
"Status"))) {
! if (strchr(tmphdr->body, 'R') != NULL)
entry->status &= ~(NEW | UNREAD);
! else if (strchr(tmphdr->body,'O') != NULL) {
entry->status &= ~NEW;
entry->status |= UNREAD;
}
! if (strchr(tmphdr->body, 'r') != NULL)
entry->status |= REPLIED_TO;
}
Index: elmME+.2.5.alpha68-cvs/utils/readmsg/readmsg.c
*** elmME+.2.5.alpha67/utils/readmsg/readmsg.c 2024-01-01 21:18:53.000000000 +0200
--- elmME+.2.5.alpha68-cvs/utils/readmsg/readmsg.c 2026-09-20 19:42:07.000000000 +0300
***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: readmsg.c,v 2.22 2023/12/13 16:55:33 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.22 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI,
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: readmsg.c,v 2.23 2026/09/20 16:42:07 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.23 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
* (was hurtta+elm@posti.FMI.FI,
***************
*** 1011,1017 ****
/* see if we are trying to match a pattern */
! if (index("0123456789$*", argv[optind][0]) == NULL) {
char * buffer = safe_strdup(argv[optind]);
--- 1011,1017 ----
/* see if we are trying to match a pattern */
! if (strchr("0123456789$*", argv[optind][0]) == NULL) {
char * buffer = safe_strdup(argv[optind]);
--
/ Kari Hurtta
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads