TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: Alan Ianson
from: Angel Ripoll
date: 2021-06-27 16:45:00
subject: Saving inbound packets

    Hola Alan!

26 Jun 21 03:05, Alan Ianson dijo a All:

 AI> There are times I would like to look at an inbound packet after tossing
 AI> when there are unexpected errors or ???.

 AI> Is there a way to keep inbound packets after tossing to inspect later?

    I do this:

------8<------8<----Principio de copia-paquetes.sh-----8<------8<------8<
#!/bin/bash

    #####################################################################
    # Copio los paquetes que llegan para poder ver los mensajes perdidos
    #####################################################################

echo "Empiezo a copiar paquetes"
SECURE=/var/spool/ftn/secure
BACKUPDIR=/srv/fido/paquetes

pushd $BACKUPDIR

if [ ! -d "`date +%Y`" ]; then
        mkdir `date +%Y`
fi

cd `date +%Y`

if [ ! -d "`date +%m`" ]; then
        mkdir `date +%m`
fi

cd `date +%m`


if [ ! -d "`date +%d`" ]; then
        mkdir `date +%d`
fi

cd `date +%d`

find $SECURE -iname "*.pkt" -exec cp -p \{\} ./ \;

for f in mo tu we th fr sa su; do
    find $SECURE -iname "*.${f}?" -exec cp -p \{\} ./ \;
done

popd
------8<------8<----Fin de copia-paquetes.sh -----8<------8<------8<

    I want you to make the copy for days. So I do not have many packages in each directory. Of course, you can shorten the directory structure :)

    I execute it before processing the mail, of course :)

    Hope this can help you

    Un saludo,
    Angel Ripoll
    aripoll @ zruspas.org
--- GoldED+/LNX 1.1.5-b20180707 + HPT 1.9 + Binkd 1.1 en Debian
                                                                                               
* Origin: Synchronet - bbs.zruspas.org - Zruspa's BBS - (2:341/66)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.