I'm hating the new 14.9.23 version of mailx shipped with Slackware 15.0. I used to be able to search for from, to, subject, body ... as:
Now, that gives the error:
Code:
mailx: Missing )
mailx: P.S.: message specifications are now shell tokens, making it necessary
mailx: to escape/shell quote parenthesis, e.g., '(from "me")'
mailx: Please read the manual section "Shell-style argument quoting"
and I have to search as:
I'll refrain from ranting about solving something that was never a problem. My issue is that I have lots of scripts which manipulate MBOX files using the version 12.5 and (ad infinitum) earlier version syntax. I could change all these scripts, or I could build the 12.5 version. And BTW, changing the scripts doesn't seem to work either as my bash scripts are of the form:
Code:
for s in <list of email addresses>
do
mail -f "$1" <<EOF
'(from "$s")'
d ()
q
EOF
done
and the $s inside the '("")' syntax doesn't expand.
I'd like to try the build of the 12.5 solution as mailx 14.9 has even more issues. For example, my .mailrc file has:
Code:
set pipe-text/html="lynx -dump -force_html /dev/stdin"
This would render content-type="text/html" email messages readable by running the message through lynx. This does not work in 14.9 making it all but useless for actually reading email.
So I downloaded the heirloom-mailx-12.5 source files and tried to build. I get the error:
Code:
/usr/bin/ld: openssl.o: in function `ssl_rand_init':
openssl.c:(.text+0x124): undefined reference to `RAND_egd'
/usr/bin/ld: openssl.o: in function `ssl_select_method':
openssl.c:(.text+0x449): undefined reference to `SSLv2_client_method'
collect2: error: ld returned 1 exit status
make: *** [Makefile:92: mailx] Error 1
I've search for a solution and the only site that actually offered an idea was to rename RAND_egd to RAND_add_egd, but that didn't work.
Does anyone have any ideas on how I could resolve this undefined reference issue?