[asterisk-users] Mailing a fax with mutt does not succeed
Daniel - Asterisk
earohuanca at gmail.com
Tue Jul 16 14:14:44 CDT 2013
Hello everyone, I'd changed the server and mutt started working, but I'll
test your advices and wil let you lnow ass soon as I can.
Thank you!
Elder
On Mon, Jun 24, 2013 at 7:38 AM, Larry Moore <lmoore at omninet.net.au> wrote:
> On 22/06/2013 2:17 PM, Steve Edwards wrote:
>
>> On Sat, 22 Jun 2013, Larry Moore wrote:
>>
>> echo >> "$MSGFILE"
>>> printf "%18s" "Sender: " >> "$MSGFILE"; printf "%-20s\n"
>>> "${REMOTESTATIONID}" >> "$MSGFILE"
>>> printf "%18s" "Pages: " >> "$MSGFILE"; printf "%-20s\n" "${FAXPAGES}"
>>> >> "$MSGFILE"
>>> printf "%18s" "Signal Rate: " >> "$MSGFILE"; printf "%-20s\n"
>>> "${FAXBITRATE} bit/s" >> "$MSGFILE"
>>> printf "%18s" "CallerID Number: " >> "$MSGFILE"; printf "%-20s\n"
>>> "${CIDNUMBER}" >> "$MSGFILE"
>>> printf "%18s" "CallerID Name: " >> "$MSGFILE"; printf "%-20s\n"
>>> "${CIDNAME}" >> "$MSGFILE"
>>> printf "%18s" "Call Duration: " >> "$MSGFILE"; printf "%-20s\n"
>>> "${DURATION}" >> "$MSGFILE"
>>> printf "%18s" "Status: " >> "$MSGFILE"; printf "%-20s\n" "${FAXERROR}"
>>> >> "$MSGFILE"
>>>
>>
>> How about:
>>
>> #!/bin/bash
>> FORMAT='%18s %-20s\n'
>> (
>> printf "${FORMAT}" 'Sender:' "${REMOTESTATIONID}"
>> printf "${FORMAT}" 'Pages:' "${FAXPAGES}"
>> printf "${FORMAT}" 'Signal Rate:' "${FAXBITRATE} bits/s"
>> printf "${FORMAT}" 'CallerID Number:' "${CIDNUMBER}"
>> printf "${FORMAT}" 'CallerID Name:' "${CIDNAME}"
>> printf "${FORMAT}" 'Call Duration:' "${DURATION}"
>> printf "${FORMAT}" 'Status:' "${FAXERROR}"
>> ) >>${MSGFILE}
>>
>>
> Thank Steve,
>
> That makes the section more readable and it works with /bin/ksh too.
>
> Cheers,
>
> Larry.
>
>
> --
> ______________________________**______________________________**_________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/**mailman/listinfo/asterisk-**users<http://lists.digium.com/mailman/listinfo/asterisk-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130716/357ca618/attachment.htm>
More information about the asterisk-users
mailing list