Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
Re: [hylafax-users] faxmail, change sender?
Am Do 13.01.2005 11:26 schrieb Bodo Meissner <bodo@xxxxxxxxx>:
>Am 2005.01.13 08:19 schrieb(en) Sven Gehr:
Hi@all,
>>In the incomming faxmail was the from set to:
>>
>>+49 621 48293xx
>>
>>I need the format:
>>
>>004962148293xx@fax.[myserver].[mylocaldomain]
>>
>>How can i adjust this?
>
>MYSENDER=`echo $SENDER|sed -e 's/ //g' -e 's/^+/00/' -e 's/$/@fax.
>[myserver].[mylocaldomain]/'`
>
>This simple solution works only if $SENDER is in the format of your
>example.
>
>I think $SENDER is what the sender configured in his fax machine or fax
>server. You must expect to get different number formats, empty strings,
>something like "<unknown>" or other junk.
ok, i test following:
I define in /var/spool/fax/bin/faxrcvd
[...]
ABSENDER=`echo $SENDER|sed -e 's/ //g' -e 's/^+/00/' -e
's/$/@fax.postgirl.dreampixel/'`
[...]
if [ -n "$SENDTO" ]; then
(MIMEBOUNDARY="NextPart$$"
echo "Mime-Version: 1.0"
echo "Content-Type: Multipart/Mixed; Boundary=\"$MIMEBOUNDARY\""
echo "Content-Transfer-Encoding: 7bit"
echo "To: $SENDTO"
echo "From: $ABSENDER"
[...]
The incomming mail has:
""@fax.postgirl.dreampixel
in the from-field.
with best regards
sven
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*