Hallo Carsten,
Am 2008-10-09 12:28:08, schrieb Remien, Carsten:
# cat .procmailrc
MAILDIR=$HOME/Maildir/
DEFAULT=$MAILDIR
ORGMAIL=$MAILDIR
^^^^^^^^^^^^^^^^
It is NOT needed (rmove it)
LOGFILE=$HOME/.procmail_log
VERBOSE=9
^^^^^^^^^
This can be only "on" or "off"
:0
* ^Subject:(.*\<)\/[^ ].*
{
SUB=$MATCH
}
:0c
| formail -r -A "Subject:.*Anrufbeantworter" | mail -s "$SUB"
number(_at_)t-mobile-sms(_dot_)de
Warum nicht einfach:
:0
* ^Subject:(.*\<)\/[^ ].*
{
SUB=$MATCH
DUMMY_EXEC=`mail -s "${SUB:1:160}" number(_at_)t-mobile-sms(_dot_)de`
}
Note: ${SUB:1:160} mean takte the SUBject, begin
from 1st character and count only 160 Bytes.
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail