Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[hylafax-users] How can i get AWK recognise an @ sign.
Hello i tried to get AWK to get the mailadress out of an fax to the
variable Mailaddr
but when it gets to the @ sign it won't continue.
Anyone know what to do.
This is from my version of sambafax it's the last part that won't work..
FAXNUM=`${PS2ASCII} ${FAXFILE} | ${AWK} '{ IGNORECASE=1 } /SendFaxTo ?: ?
[+ 0-9-]*/ \
{ $0=$0 "xxx"; \
gsub(/-/,""); \
gsub(/+46/,"0"); \
gsub(/0046/,"0"); \
anfang=match($0,/ ?: ?/); \
anfang=anfang+match(substr($0,anfang),/[0-9 +]/)-1; \
ende=match(substr($0,anfang),/[^0-9 +]/)-1; \
printf ("%s",substr($0,anfang,ende)) \
}' `
MAILADDR=`${PS2ASCII} ${FAXFILE} | ${AWK} '{ IGNORECASE=1 } /SendMailTo ?:
?[. + a-z0-9-]*/ \
{ $0=$0 "xxx"; \
anfang=match($0,/ ?: ?/); \
anfang=anfang+match(substr($0,anfang),/[a-z0-9 + .]/)-1; \
ende=match(substr($0,anfang),/[^a-z0-9 + .]/)-1; \
printf ("%s",substr($0,anfang,ende)) \
}' `
____________________ 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@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*