简体   繁体   中英

How can I fetch imap reply message only through PHP?

How can I fetch iMap reply message only through PHP? Also extract the signature part from that mail.

I used two methods, listed below

$message = quoted_printable_decode(imap_fetchbody($inbox,$email_number,1.1));              
$message1 = quoted_printable_decode(imap_fetchbody($inbox,$email_number,1.2));

This script gives all content of the particular mail, posted message and and its replies etc. I need to fetch recent reply of the particular message, not all conversations under the messages.

It's not possible to get a reply message, simply because. It'a a classic email and all add-ons are done on client side. Also, getting only the signature can't be done because it's added on the email body so it's not possible to distinguish

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM