Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
lazzab Offline
New Member
 
Posts: 10
Join Date: Nov 2003
HTML Emails not parsed by POP3 or IMAP - 24-01-2006, 02:15 PM

My setup is PHP5.1.1, V3.0.32

Using POP3
========
Any incoming email with a Header saying
Content-Type: multipart/alternative; boundary = "==_NextPart_xx"

results in the email being ignored and the Parser Log reporting a failure as:
(No Subject)
Result: No Recipients Found

despite the full email displaying in the parser log MIME Data section.

USING IMAP
========
The same emails via IMAP reports:
(No Subject)
Result: No Recipients Found
and simply have their entire data stripped with a message
-- Mime Data Cleared due to Size Limit under Settings > Parser --
in the MIME Data section.

If I change the Content-Type: header to be a text rather than multipart type or if I remove the Content-Type header, all is OK.

Any idea why the parser freaks out with Multipart emails? Anyone else have a similar issue?

Larry


lazzab
   
Reply With Quote
  (#2) Old
mmay Offline
Member
 
Posts: 52
Join Date: Oct 2005
30-01-2006, 11:12 PM

Are you using WIndows and IIS? This is a known bug in all current versions, Kayako has not yet fixed the problem.

Please add your details to the 1092 bug report (link below). You can open a support ticket too I guess, but it hasn't helped much yet.

http://bugs.kayako.net/index.php?do=details&id=1092
   
Reply With Quote
  (#3) Old
lazzab Offline
New Member
 
Posts: 10
Join Date: Nov 2003
31-01-2006, 02:36 AM

Hi,

I should have responded to my ticket days ago - apologies. I resolved the issue by fiddling with the formatting of the MIME boundary part text. It seems the Mail Parser is very sensitive to slight variations in MIME descriptor formatting - formatting generally accepted by almost all mail clients.

In this case, I had emails that had a string "boundary = " whcih when changed to "boundary=" resolved the problem.

BTW, this is V3.0.32 on Linux, PHP 4.4.2


lazzab
   
Reply With Quote
  (#4) Old
ellarr Offline
New Member
 
Posts: 9
Join Date: Feb 2006
Fix - 25-02-2006, 02:29 PM

I was having this problem on IMAP as well. Here's how I fixed it.

Open cron_parser.php (My file version is 1.12)
Line 88 has the string for ($i=1;$i<=$totalmsg; ++$i) {
Replace that line with for ($i=$totalmsg;$i>=1; --$i) {

The main problem is that imap_uid returns the message id of the Nth message. eSupport asks imap_uid for message 1 then deletes it. Then eSupport asks imap_uid for message 2, but there is no message 2. This is because imap_uid indices change the moment the first one is deleted.

Normally, when using imap_uid to traverse messages, I use a loop like...

Code:
while (imap_num_msg($mbox) > 0) {
  $_msguid = imap_uid($mbox,1);
}
Hope this fixes your problem
   
Reply With Quote
  (#5) Old
noslzzp Offline
New Member
 
Posts: 14
Join Date: Nov 2005
multipart/voice-message doesn't work either.. - 05-03-2006, 02:28 AM

I am having the same problem.. Environment is PHP 4.3.11, Linux, SupportSuite 3.0.32. We have a centralized support voice mail box and we are trying to get the voicemail pulled into SupportSuite as an attachment. The problem is that our phone system delivers the email as:

Mime-Version: 1.0
Content-Type: multipart/voice-message;
boundary="----=_Part_339_25931574.1141525219997"

So the "boundry=" is ok, and I tried ellarr's reverse iteration modification but still get the same message. Unfortunately, I have no control over setting the mime type as our phone system is hosted.

The bad part in all this is that SupportSuite has deleted all the "retrieved" voice mail messages but they fail to show up in the help desk. So be careful with this, it's not friendly.

Any other ideas?

Last edited by noslzzp; 05-03-2006 at 02:40 AM.
   
Reply With Quote
  (#6) Old
Varun Shoor Offline
Chief Executive Officer
 
Varun Shoor's Avatar
 
Posts: 2,829
Join Date: May 2003
06-03-2006, 11:00 PM

Try the latest CVS please.

Regards,

Varun Shoor


Varun Shoor (varun.shoor ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#7) Old
noslzzp Offline
New Member
 
Posts: 14
Join Date: Nov 2005
07-03-2006, 03:04 AM

Replacing the "mimeDecode.php" with the one from the CVS build fixed the problem! No more corrupted attachments, sweet!

Off to try importing voicemail!

THANKS!
   
Reply With Quote
  (#8) Old
Varun Shoor Offline
Chief Executive Officer
 
Varun Shoor's Avatar
 
Posts: 2,829
Join Date: May 2003
13-03-2006, 03:06 PM

Quote:
Originally Posted by noslzzp
Replacing the "mimeDecode.php" with the one from the CVS build fixed the problem! No more corrupted attachments, sweet!

Off to try importing voicemail!

THANKS!
No Problem.

Regards,

Varun Shoor


Varun Shoor (varun.shoor ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
Reply

Tags
html, imap, parsed, pop3

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outgoing HTML Emails Need Staff To Code HTML in Tickets? Elite SupportSuite, eSupport and LiveResponse 7 08-01-2008 07:51 PM
Parsing HTML emails shows STYLE tag code in post brygrant SupportSuite, eSupport and LiveResponse 3 11-09-2007 12:27 AM
URLs Not Coneverted to Links in HTML Emails littlegrasshoppa How do I? 1 08-06-2007 07:43 AM
Pop3 fetching working in a strange way Deepak SupportSuite, eSupport and LiveResponse 0 01-05-2006 05:19 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46