I know this is slightly off topic but this seems to be done frequently in
email programs so I would hope that it isn't hard.
I need to filter off username from [EMAIL PROTECTED]

This is run off another script from qmailqueue. I'm almost there. I just
need to get the < out of there. Also, can someone check the validity of the
program and make sure it looks semi stable or everything done correctly? I
plan on taking the echo's out as soon as I get it working properly.

Thanks.

Script run from qmailqueue (so far)-
#!/bin/sh
export -n QMAILQUEUE
exec /var/qmail/bin/qmail-qfilter /opt/tmda/bin/exportmail --
/var/qmail/bin/qmail-inject -n

exportmail:
#!/bin/bash

sender=$(822field from)
echo $sender > /tmp/foo
for rcpt in $sender;do
[EMAIL PROTECTED]
echo $user > /tmp/foo2
done

cat
exit 0
-----------------
/tmp/foo
"test" <[EMAIL PROTECTED]>

/tmp/foo2
<email


Well, I got the outgoing working by doing exactly what I had said. But the
script I have doesn't work because tcpremoteinfo will only work with that
patch he provided which requires smtp authentication. Well almost there,
since that won't work. Looking for a way to strip off the username part off
of an email ([EMAIL PROTECTED]) and use it as a variable(bash scripting).
If you know how, that would be great. I'm using qmailqueue.



_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to