I'm testing out the email function in Vicidial as a client is interested in doing an email campaign.
I am getting stuck at a point where I believe Perl is complaining about how the email is encoded, but I don't know what to do to fix it.
When I run AST_inbound_email_parser.pl, it fetches most of the mail, but seem to leave some behind that it cannot decode. This is what I get from debug:
- Code: Select all
./AST_inbound_email_parser.pl --debugX
Attempting to connect to POP3 server (x.x.x.x)
Email message is multipart. Need to select the best format type and parse it.
Part content disposition is
Part content type is Content-Type: text/plain; charset="us-ascii".
Part content size is 182
First acceptable content-type match is text/plain. Stripping headers to get text...
Part content disposition is
Part content type is Content-Type: text/html; charset="us-ascii".
Part content size is 2157
Unknown encoding 'Type: text/html' at ./AST_inbound_email_parser.pl line 729
I edited the file to allow it to fetch mail in plain text, so line numbers might not correspond to the original.
I followed the Email handling doc and installed all the requirements in cpan successfully. What can I do so it fetches these emails as well?
My setup:
Vicidial: 2.6b0.5
Asterisk: 1.4.41
SUSE Linux Enterprise Server 11 SP1 x86_64