mailx - Basic commandline MUA (mail user agent) ChangeLog


# mailx 12.4
# ==========
# Slackware 13.37: mailx 12.4
# Slackware 14.0, .1, .2: mailx 12.5

# This mailx used to be called nail.
# There is a SourceForge project 'nail':
# This one contains nail 11.25
# ...and there is a SourceForge project 'Heirloom' from the same developer,
# which is a collection of tools, including nail -> mailx:
# This one contains mailx 12.4
# The developer appears to have decided to stop offering releases and only
# do development via the CVS repository.  ...but then SourceForge
# discontinued CVS write access on November 30th, 2017, and the developer
# does not appear to have migrated it to Subversion or Git.  There are
# mailing list posts to the nail project's nail-devel list, and those
# recent posts are S-nail/S-mailx announcements.
# Maybe something will happen in the future, or maybe I just have not found
# it yet, but after looking around some, it looks like it stops there.
# S-nail/S-mailx is now available from a different lead developer, and
# according to the Slackware64-current ChangeLog, mailx has been replaced
# with s-nail in Slackware as of November 24, 2018.
# This mailx HOWTO will most likely no longer get any updates.

# If you want to try mailx 12.5, try the read-only CVS repository while
# it's still there, or get a tarball from one of these places:
# Slackware 14.2 source
# Debian

# ===

# If you ever want to remove mailx, or clean up an old version before
# installing a new one, skip down to the bottom for instructions

# Get it
test -f installed/mailx-12.4.tar.bz2 && mv installed/mailx-12.4.tar.bz2 .
test ! -f mailx-12.4.tar.bz2 &&

# Extract it
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "nail-*" -exec rm -r {} \;
tar xjvf ~/mailx-12.4.tar.bz2
cd mailx-12.4
test $UID = 0 && chown -R root:root .

# If you have OpenSSL 1.x.x installed, this patch may be required to get
# it to build:
wget -nc
patch -p1 < mailx-12.4-openssl_1.0.0_build_fix-1.patch

## Compile it
# If your OpenSSL is from a Slackware package, or if you installed
# it under the /usr prefix instead of the usual source-installed
# /usr/local/ssl prefix, the CPPFLAGS and LDFLAGS parts below are
# not necessary
make PREFIX=/usr MANDIR=/usr/man MAILSPOOL=/var/spool/mail CPPFLAGS=-I/usr/local/ssl/include LDFLAGS=-L/usr/local/ssl/lib

# Become root to install it

# Back up your existing nail.rc file, if you have one
test -f /etc/nail.rc &&
( mkdir -p -m 0700 ~/backup
   cp -a /etc/nail.rc ~/backup/nail.rc-$(date +%Y%m%d) )

# Remove the Slackware package(s), commonly used symlinks
test -x /sbin/removepkg && /sbin/removepkg mailx nail
( cd /bin ; rm -f Mail mail mailx nail )
( cd /usr/bin ; rm -f Mail mail mailx nail )

# Make sure /usr/lib/sendmail (usually a symlink) exists
test ! -L /usr/lib/sendmail &&
( test -x /usr/sbin/sendmail &&
    ln -sf /usr/sbin/sendmail /usr/lib/sendmail )

# Install mailx
make install PREFIX=/usr MANDIR=/usr/man MAILSPOOL=/var/spool/mail UCBINSTALL=/usr/bin/install

# Create common symlinks
ln -sf /usr/bin/mailx /bin/Mail
ln -sf /usr/bin/mailx /bin/mail
ln -sf /usr/bin/mailx /bin/mailx
ln -sf /usr/bin/mailx /bin/nail
ln -sf /usr/bin/mailx /usr/bin/mail
ln -sf /usr/bin/mailx /usr/bin/nail
ln -sf /usr/man/man1/mailx.1 /usr/man/man1/Mail.1
ln -sf /usr/man/man1/mailx.1 /usr/man/man1/mail.1
ln -sf /usr/man/man1/mailx.1 /usr/man/man1/nail.1

# If you upgraded from an older version of nail, you may want to view (and
# merge) the differences between your old /etc/nail.rc and the one that
# comes with nail:
# diff -u /etc/nail.rc nail.rc | less
# and if you didn't customize your /etc/nail.rc, you might as well just copy
# the sample over your old one:
# diff -q /etc/nail.rc nail.rc || cp nail.rc /etc/

# Become yourself again

mkdir -p -m 0700 installed
rm -f installed/nail-*.tar.* installed/mailx-*.tar.*
mv mailx-12.4.tar.bz2 installed/

# If you ever want to uninstall mailx, though I can't imagine why
# you'd want to, this should do it:
rm -f /etc/nail.rc /usr/local/etc/nail.rc
for bindir in /bin /usr/bin /usr/local/bin;
  ( cd $bindir
    rm -f mailx nail
    test -L Mail && rm -f Mail
    test -L mail && rm -f mail )
for mandir in /usr/man/man1 /usr/share/man/man1;
  ( cd $mandir
    rm -f mailx.1 nail.1
    test -L Mail.1 && rm Mail.1 )
    test -L mail.1 && rm mail.1 )
find ~/src -maxdepth 1 -type d -name "mailx-*" -exec rm -r {} \;
find ~/src -maxdepth 1 -type d -name "nail-*" -exec rm -r {} \;
rm -f ~/installed/mailx-*.tar.* ~/installed/nail-*.tar.*

List of HOWTOs

Last updated: 2022-06-09 1:35pm EDT(-0400)
Copyright © 2001-2023 Jason Englander. All Rights reserved.