Error parsing message

Issue #424 resolved
Former user created an issue

Hi, me again.. :)

I have a message that is having some issues displaying in the web ui.

The EML source code for the message:

--alt---boundary-LibPST-iamunique-1212672566_-_-
Content-Type: text/html; charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010>XXXXX</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 
xxx.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 
XXXXXXXX</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
xxxxxxxxx.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010>xxxxxxxxxxxxx</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010>xxxxxxxxxxxxxxxxxxxxxxx</SPAN></FONT></DIV><BR>
<DIV dir=ltr lang=pt-br class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>De:</B> xxxxxxx [mailto:xxxxxxxxxxx@xxxxxxxx] 
<BR><B>Enviada em:</B> quarta-feira, 2 de junho de 2010 18:12<BR><B>Para:</B> 
xxxxxx@xxxxxxxxx<BR><B>Cc:</B> 
xxxxxxxxxxxxxxxx<BR><B>Assunto:</B> XXXXXXXXXXXXX / XXXXXXXX
XXXXXXXXXX<BR></FONT><BR></DIV>
<DIV></DIV>
<P><BR>XXXXXXXXX<BR><BR>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXX 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 
XXXXXXXXXXXXXXX<BR>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 
XXXXXXXX.<BR>XXXXXXX<BR><BR><BR>XXXXXXXXXXXXXX<BR>XXXXXXXXXX 
XXXXXX<BR><BR>xxxxxxxxxxx&nbsp; <BR>xxxxxxxxxxxxx&nbsp; DIMAS<BR>xxxx 
xxxxxxxxxxxxxxxxxxx</P></BODY></HTML>

--alt---boundary-LibPST-iamunique-1212672566_-_---

The message that is retrieve by the web ui is the following:

<div id="restorebox" class="alert alert-general">
      <input type="checkbox" class="restorebox" id="xxxxxxxxxx" name="xxxxxxxxxxx" value="1" /> xxxxxxxxx<br />
      <input type="checkbox" class="restorebox" id="xxxxxxxxxx" name="xxxxxxxxxxx" value="1" /> xxxxxxxxxxxx<br />
<br />
<input type="button" id="restore_button" name="restore_button" value="Restore" class="btn btn-primary" onclick="Piler.restore_message_for_recipients(579847, 'Restored', 'Select recipients');" />
<input type="button" value="Cancel" class="btn btn-inverse" onclick="$('#restorebox').hide();" />

</div>

<div class="messageheader">

    <p>
       <a class="messagelink" href="index.php?route=message/download&amp;id=579847"><i class="icon-cloud-download"></i>&nbsp;Download (EML)</a> |
           <a class="messagelink" href="#" onclick="$('#restorebox').show();"><i class="icon-reply"></i>&nbsp;Restore to mailbox</a> |
           <a class="messagelink" href="#" onclick="Piler.view_headers(579847);"><i class="icon-envelope-alt"></i>&nbsp;View headers</a>
               | <a href="#" onclick="Piler.print_div('messageblock');"><i class="icon-print"></i>&nbsp;Print</a>

    Message is Verified <i class="verified icon-ok-sign icon-large" title="Message is Verified"></i>
    </p>
</div>

<div id="notesbox" class="input-prepend input-append">
   <span class="add-on"><i class="icon-file-alt icon-large"></i>&nbsp;Notes:</span>
   <input type="text" size="60" id="note" name="note" class="mynote" value="" />
   <input type="button" class="btn btn-info" value="Save" class="message_button" onclick="Piler.add_note_to_message(579847, 'Saved'); " />
</div>


<div id="messageblock">

<div class="messageheader">
    <strong>&lt;no subject&gt;</strong><br />
    <strong>From: xxx &lt;xxxxxxxxxxxxxx&gt;</strong><br />
    <strong>To: 'xxxxxxxxxxxxxx'; 'xxxxxxxxxxxxx'</strong><br />
    <strong>Date: Thu, 03 Jun 2010 09:49:16 +0000</strong><br />
    <br/>
</div>
<div class="messagecontents">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><META content="text/html; charset=iso-8859-1" http-equiv=Content-Type><META name=GENERATOR content="MSHTML 8.00.6001.18904"></HEAD><BODY><DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT></DIV><DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT></DIV><DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT></DIV><DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT></DIV><DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT></DIV><DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT></DIV><DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT></DIV><DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT></DIV><DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT></DIV><DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT></DIV><DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT></DIV><DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=359584709-03062010></SPAN></FONT></DIV><BR><DIV dir=ltr lang=pt-br class=OutlookMessageHeader align=left><HR tabIndex=-1><FONT size=2 face=Tahoma><B></B><BR><B></B><BR><B></B><BR><B></B><BR><B></B><BR></FONT><BR></DIV><DIV></DIV><P><BR><BR><BR><STRONG></STRONG><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR></P></BODY></HTML></div>



</div>

In the ui basically the message is blank.

In the EML message I replaced the content with "X".

Thanks.

Comments (14)

  1. Janos SUTO repo owner

    Hmm, odd. I took you previous message, replaced the html part, and I could see some blue text, then black text. Can you show me this complete email? XXXing out confidential info is ok.

  2. Former user Account Deleted

    Hi!

    I attached the EML itself. I replaced all letters([a-zA-Z]) with an x, but everything else is the same as the original message. Also I attached how I see the EML in my computer, not in the web UI.

    Thanks.

  3. Janos SUTO repo owner

    Can you check out http://piler.aaa.fu.acts.hu/ (it's my devel version of the gui). Use the same auditor@local account as for the demo site. I tweaked it to show this eml no matter where you click.

  4. Former user Account Deleted

    In this server the message is OK, it's showing the text, in my version, it is blank.

    As long as I can tell, you fixed the problem.

  5. Former user Account Deleted

    Just an info. I downloaded the EML from your server, and the returned EML has the final truncated. It's missing boundary termination:

    --alt---boundary-LibPST-iamunique-1212672566_-_---
    
  6. Log in to comment