
pascual.gadea at dulcesol
Jun 11, 2004, 1:03 AM
Post #1 of 1
(1054 views)
Permalink
|
|
Re: Ripmime-general digest, Vol 1 #87 - 6 msgs
|
|
How to integrate ripmime with .qmail? I use in couple scripts to make mail-to-fax gateway # cat .qmail | /local/etc/mail.sh # cat /local/etc/mail.sh ( basically is ... ) #!/bin/bash # GLOBAL VARS TIPO=pdf DIRROOT=/local/etc DIRMAIL=$DIRROOT/MAILS if ! [ -s $DIRROOT/MAILS ] then mkdir $DIRROOT/MAILS fi /bin/sleep 1 QUANTS=`ls -l $DIRMAIL | grep -v total | wc -l` NOU=`/usr/bin/expr $QUANTS + 1` if ! [ $NOU -gt $QUANTS ] then NOU="$$" fi CARPETA_MAIL=$DIRMAIL/mail$NOU CARPETA_MAIL_FONT=$CARPETA_MAIL/SOURCE CARPETA_MAIL_PS=$CARPETA_MAIL/PS CARPETA_MAIL_ERR=$CARPETA_MAIL/ERR NOM_MAIL=$DIRMAIL/mail$NOU/email NUMEROFAX=${HOST//.fax} ... FUNCIONS function ripmail { /usr/local/bin/ripmime -i "$1" -d "$CARPETA_MAIL_FONT" -e HEAD --name-by-type --no-nameless -q } # SCRIPT PRINCIPAL ... mkdir $CARPETA_MAIL_ERR tai64nlocal > $NOM_MAIL ripmail $NOM_MAIL ... exit 0 _______________________________________________ Ripmime-general mailing list Ripmime-general [at] pldaniels http://www.pldaniels.com/mailman/listinfo/ripmime-general
|