What is the value of "charset" in voicemail.conf? Have you tried a different Email client? jg
Rafael dos Santos Saraiva
2013-Aug-05 13:07 UTC
[asterisk-users] Voicemail variables on email subject
Hi I have a problem w/ voicemail, the subject message is corruption when used voicemail variables, e.g. : voicemail.conf emailsubject=${VM_MAILBOX}|${VM_MSGNUM}|${VM_CALLERID}|${VM_DUR} Return: Subject: =?utf-8?Q?1504|12|=22Teste_-_Rafael=22_=3C1570=3E|0=3A16? Expected: Subject: 1504|12|"Teste - Rafael" <1570>|16 Thank's Att, *Rafael dos Santos Saraiva* Tel: (51) 8174-7956 *Digium Certified Asterisk Administrator (dCCA)* http://www.astdocs.com | <http://br.linkedin.com/pub/rafael-saraiva/52/aab/230> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130805/85c8bd56/attachment.htm>
On Monday 05 August 2013, Rafael dos Santos Saraiva wrote:> Hi > > I have a problem w/ voicemail, the subject message is corruption when used > voicemail variables, e.g. : > voicemail.conf > emailsubject=${VM_MAILBOX}|${VM_MSGNUM}|${VM_CALLERID}|${VM_DUR} > > Return: > Subject: =?utf-8?Q?1504|12|=22Teste_-_Rafael=22_=3C1570=3E|0=3A16?> > Expected: > Subject: 1504|12|"Teste - Rafael" <1570>|16That looks about sane for a subject line in UTF-8 encoding (I haven't studied it too closely). What mail client have you been using to retrieve the e-mail? Is it UTF-8 aware? -- AJS Answers come *after* questions.
>>>>> "RdSS" == Rafael dos Santos Saraiva <rafaelsnsa at gmail.com> writes:RdSS> emailsubject=${VM_MAILBOX}|${VM_MSGNUM}|${VM_CALLERID}|${VM_DUR} RdSS> Return: RdSS> Subject: =?utf-8?Q?1504|12|=22Teste_-_Rafael=22_=3C1570=3E|0=3A16? That is a proper encoding for an SMTP mail header which is in utf8. RdSS> Expected: RdSS> Subject: 1504|12|"Teste - Rafael" <1570>|16 The sent header decodes to this string: Subect: 1504|12|"Teste_-_Rafael"_<1570>|0:16 Note the colon from $VM_DUR (minutes:seconds). MUAs are supposed to decode that. -JimC -- James Cloos <cloos at jhcloos.com> OpenPGP: 1024D/ED7DAEA6