Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to parse body parts of a MIME message by using mimetic library?
    primarykey
    data
    text
    <p>I'm fighting with a problem here, and maybe you can give me a hand. I'm processing a POP3 Email account which i need for parsing the emails and getting into its information. I was using <strong>libCurl</strong> for read the mails, and i'm currently using <strong>mimetic</strong> library for dismember each part of the email inside. The fact is that i could do this easily for the "header" of the email, but i don't know how to do this for the body. This is my code right now: </p> <pre><code>void MailServer::PrintMimeStructure(MimeEntity* pMe) { Header&amp; h = pMe-&gt;header(); Body&amp; b = pMe-&gt;body(); //i don't know how to access here! ContentType ct = h.contentType(); ContentId ci = h.contentId(); ContentDisposition cd = h.contentDisposition(); if(h.hasField("subject")) cout &lt;&lt; "&lt;subject&gt;" &lt;&lt; h.field("subject").value() &lt;&lt; "&lt;/subject&gt;" &lt;&lt; endl; if(h.hasField("from")) cout &lt;&lt; "&lt;from&gt;" &lt;&lt; h.field("from").value() &lt;&lt; "&lt;/from&gt;" &lt;&lt; endl; if(h.hasField("to")) cout &lt;&lt; "&lt;to&gt;" &lt;&lt; h.field("to").value() &lt;&lt; "&lt;/to&gt;" &lt;&lt; endl; if(h.hasField("message-id")) cout &lt;&lt; "&lt;message-id&gt;" &lt;&lt; h.field("message-id").value() &lt;&lt; "&lt;/message-id&gt;" &lt;&lt; endl; if(h.hasField("date")) cout &lt;&lt; "&lt;date&gt;" &lt;&lt; h.field("date").value() &lt;&lt; "&lt;/date&gt;" &lt;&lt; endl; //WHAT ABOUT THE BODY?? } </code></pre> <p>and this is what it prints: <img src="https://i.stack.imgur.com/ZBzCy.png" alt="enter image description here"> -- as you can see, is very easy to getting into the heading by using this tool, but digging into the body object properties, i don't have any <strong>"field"</strong> method useful to get the attachments for example, which is what i need.</p> <p>Anyway, i'll appreciate any help from you guys! i'm stucked here!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload