summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando J. Pereda <ferdy@gentoo.org>2005-05-30 17:36:43 +0000
committerFernando J. Pereda <ferdy@gentoo.org>2005-05-30 17:36:43 +0000
commit2fd0082eb73b11369c2481ba83ff6d98349f99e8 (patch)
treea6cb5036a0c4e19b4421605648b25f1daf8c0767 /mail-mta/nbsmtp/files
parentStable on x86 (diff)
downloadgentoo-2-2fd0082eb73b11369c2481ba83ff6d98349f99e8.tar.gz
gentoo-2-2fd0082eb73b11369c2481ba83ff6d98349f99e8.tar.bz2
gentoo-2-2fd0082eb73b11369c2481ba83ff6d98349f99e8.zip
cleanup old files
(Portage version: 2.0.51.19)
Diffstat (limited to 'mail-mta/nbsmtp/files')
-rw-r--r--mail-mta/nbsmtp/files/digest-nbsmtp-0.981
-rwxr-xr-xmail-mta/nbsmtp/files/nbqueue91
-rwxr-xr-xmail-mta/nbsmtp/files/wrapper-nbsmtp27
3 files changed, 0 insertions, 119 deletions
diff --git a/mail-mta/nbsmtp/files/digest-nbsmtp-0.98 b/mail-mta/nbsmtp/files/digest-nbsmtp-0.98
deleted file mode 100644
index bc7567ad5158..000000000000
--- a/mail-mta/nbsmtp/files/digest-nbsmtp-0.98
+++ /dev/null
@@ -1 +0,0 @@
-MD5 a3e650aae097d41e326978112918d03e nbsmtp-0.98.tar.bz2 95678
diff --git a/mail-mta/nbsmtp/files/nbqueue b/mail-mta/nbsmtp/files/nbqueue
deleted file mode 100755
index 6eeee7e83d18..000000000000
--- a/mail-mta/nbsmtp/files/nbqueue
+++ /dev/null
@@ -1,91 +0,0 @@
-#!/usr/bin/env bash
-
-##
-# nbQUEUE adds queue support for nbsmtp
-#
-# To use nbQUEUE just create ${QUEUEDIR} and then set
-# nbqueue as your sendmail program. To flush the queue
-# (i.e. send all queued mails) just run nbqueue --flush.
-##
-
-shopt -s nullglob
-
-QUEUEDIR=${QUEUEDIR:-~/.nbsmtp/.queue}
-
-messageid() {
- sed -n -e '1,/^$/ {
- /^Message-[iI][dD]: *<\([^>]*\)>.*$/s//\1/p
- }' $1
-}
-
-messageinfo() {
- sed -n -e '1,/^$/ {
- /^From: .*$/p
- /^To: .*$/p
- /^[Bb]\?[cC]\{2\}: .*$/p
- /^Subject: .*$/p
- }' $1
-}
-
-[[ -d "${QUEUEDIR}" ]] || mkdir -p "${QUEUEDIR}" || {
- echo "${0}: ${QUEUEDIR} does not exist and I cannot create it"
- exit 1
-}
-
-case "$1" in
- --flush|-f)
- for i in ${QUEUEDIR}/* ; do
- echo -n "Sending ${i}... "
- nbsmtp < "${i}"
-
- if [[ $? -eq 0 ]] ; then
- rm "${i}"
- echo "ok."
- else
- echo "failed, keeping message in queue."
- fi
- done
- ;;
- --list|-l)
- echo "Showing queued mails in ${QUEUEDIR}:"
- echo
- for i in ${QUEUEDIR}/* ; do
- echo "* <${i##*/}>"
- echo
- messageinfo "${i}"
- echo
- done
- ;;
- --wipe|-w)
- echo "Removing mails in ${QUEUEDIR}:"
- for i in ${QUEUEDIR}/* ; do
- echo -e "\t${i##*/}"
- rm "${i}"
- done
- ;;
- --help|-h)
- cat << EOH
-nbQUEUE Copyright (C) 2005 Fernando J. Pereda
-nbQUEUE is supplied with nbSMTP [ http://nbsmtp.ferdyx.org ]
-nbQUEUE and nbSMTP are released under the GPLv2
-
-${0##*/} [ action ]
-
-Possible actions are:
- --flush | -f - Send all mails in the queue
- --wipe | -w - Remove all mail in the queue
- --list | -l - List all messages in the queue
- --help | -h - Print this help message
-EOH
- exit 0
- ;;
- --)
- # Asume queue mode
- tmpfile=$(tempfile)
- cat - > ${tmpfile}
- newname=$(messageid ${tmpfile})
- mv "${tmpfile}" "${QUEUEDIR}/${newname}"
- ;;
-esac
-
-exit 0
diff --git a/mail-mta/nbsmtp/files/wrapper-nbsmtp b/mail-mta/nbsmtp/files/wrapper-nbsmtp
deleted file mode 100755
index cd0abdf2ed41..000000000000
--- a/mail-mta/nbsmtp/files/wrapper-nbsmtp
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/env bash
-
-_newaliases() {
- echo "newaliases: nbSMTP does not support aliases"
-}
-
-case "${0##*/}" in
- sendmail|sendmail.nbsmtp)
- if [[ "${1}" = "-I" ]] ; then
- _newaliases
- else
- nbsmtp
- fi
- ;;
- mailq|mailq.nbsmtp)
- if [[ "${1}" = "-q" ]] ; then
- nbqueue --flush
- else
- nbqueue --list
- fi
- ;;
- newaliases|newaliases.nbsmtp)
- _newaliases
- ;;
-esac
-
-exit $?