Ignoring headers
Hello, i'm using asterisk and want to sending voicemail to email by mailx.
The mail server in our company - postfix wirh smtp auth (sasl)
I created account in /etc/nail.rc.
That it's work fine, for example:
echo asd | nail -s asd -r kirill <at> domain.com alex-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org
But Asterisk genererated email with header:
Date: Tue, 25 Jan 2011 09:58:20 +0300
From: Asterisk PBX <asterisk <at> domain.com>
To: "Kirill-test" <kirill-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org>
Subject: [PBX]: New message 19 in mailbox 444
Message-ID: <Asterisk-19-1701477988-444-23140 <at> asterisk>
X-Asterisk-CallerID: 201
X-Asterisk-CallerIDName: Kirill
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----voicemail_19444231401475206805"
This is a multi-part message in MIME format.
------voicemail_19444231401475206805
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Dear Kirill-test:
Just wanted to let you know you were just left a 0:02 long message (number 19)
in mailbox 444 from Kirill, on Tuesday, January 25, 2011 at 09:58:20 AM so you might
want to check it when you get a chance. Thanks!
--Asterisk
------voicemail_19444231401475206805
Content-Type: audio/x-wav; name="msg0018.wav"
Content-Transfer-Encoding: base64
Content-Description: Voicemail sound attachment.
Content-Disposition: attachment; filename="msg0018.wav"
UklGRiSMAABXQVZFZm10IBAAAAABAAEAQB8AAIA+AAACABAAZGF0YQCMAAAAAAAAAAAAAAAA
AAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
------voicemail_19444231401475206805--
Important headers are
From: Asterisk PBX <asterisk <at> domain.com>
To: "Kirill-test" <kirill <at> domain.com>
MIME-Version: 1.0 and
Content-Type: multipart/mixed; boundary="----voicemail_19444231401475206805"
but mailx ignored these.
For test, create file MESSAGE with content email generated by asterisk.
And emulating sending email:
#cat MESSAGE | mailx -A account_name -t
Ignoring header field "Date: Tue, 25 Jan 2011 09:58:20 +0300"
Ignoring header field "Message-ID: <Asterisk-19-1701477988-444-23140 <at> asterisk>"
Ignoring header field "X-Asterisk-CallerID: 201"
Ignoring header field "X-Asterisk-CallerIDName: Kirill"
Ignoring header field "MIME-Version: 1.0"
Ignoring header field "Content-Type: multipart/mixed; boundary="----voicemail_19444231401475206805""
Can I do that mailx does not ignore these headers?
------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________ nail-devel mailing list nail-devel@... https://lists.sourceforge.net/lists/listinfo/nail-devel
RSS Feed