son.of.the.morning Posted September 11, 2012 Share Posted September 11, 2012 I am using Imap to get emails and store them localy, it's all working fine so far, however i dont want to drag out the footer of the email body (previous emails and whjat not!) Quote Link to comment https://forums.phpfreaks.com/topic/268258-get-the-email-body-without-the-email-footer/ Share on other sites More sharing options...
trq Posted September 11, 2012 Share Posted September 11, 2012 Do you have a question? Quote Link to comment https://forums.phpfreaks.com/topic/268258-get-the-email-body-without-the-email-footer/#findComment-1376992 Share on other sites More sharing options...
Iluvatar+ Posted September 11, 2012 Share Posted September 11, 2012 I am guessing he is asking if there is a way you can get the email main body of an email without extracting/storing in appending data (reply?s and what not). It seems we have the same issue as i am trying to do something similar. Quote Link to comment https://forums.phpfreaks.com/topic/268258-get-the-email-body-without-the-email-footer/#findComment-1376994 Share on other sites More sharing options...
Jessica Posted September 11, 2012 Share Posted September 11, 2012 Post the content that you get, if there is some marker that signifies when the email ends and the replies start, you can do it. Quote Link to comment https://forums.phpfreaks.com/topic/268258-get-the-email-body-without-the-email-footer/#findComment-1377015 Share on other sites More sharing options...
ManiacDan Posted September 11, 2012 Share Posted September 11, 2012 What you guys consider the email "body" is only the top part of the body. All the reply information is still part of the body. It's up to you to parse it and hide it properly. son.of.moroning, please actually form a coherent question with maybe some example data or something other than "a problem exists." Quote Link to comment https://forums.phpfreaks.com/topic/268258-get-the-email-body-without-the-email-footer/#findComment-1377035 Share on other sites More sharing options...
Philip Posted September 11, 2012 Share Posted September 11, 2012 It seems we have the same issue as i am trying to do something similar. Multiple personalities ftl. Quote Link to comment https://forums.phpfreaks.com/topic/268258-get-the-email-body-without-the-email-footer/#findComment-1377050 Share on other sites More sharing options...
ManiacDan Posted September 11, 2012 Share Posted September 11, 2012 It seems we have the same issue as i am trying to do something similar. Multiple personalities ftl. Seriously, no wonder they're having the same problem, they're the same person Quote Link to comment https://forums.phpfreaks.com/topic/268258-get-the-email-body-without-the-email-footer/#findComment-1377056 Share on other sites More sharing options...
Psycho Posted September 11, 2012 Share Posted September 11, 2012 This is pretty worthless topic anyway. When replying/forwarding an email, the *way* in which previous messages in the thread will be formatted/segregated is completely up to the email application. So, you could write some logic to work for one scenario but would break for others. Of course, you could start adding more logic for other scenarios as they are identified, but you'd have no guarantee that they would not change at some point. In fact, some applications put the previous email thread at the top of the new message rather than the bottom. Plus, you would have to contend with the different formats and logic conflicting with each other. And, all of this assumes that the user won't add some text to the message that would be interpreted as a delimited for previous messages. Quote Link to comment https://forums.phpfreaks.com/topic/268258-get-the-email-body-without-the-email-footer/#findComment-1377060 Share on other sites More sharing options...
ManiacDan Posted September 11, 2012 Share Posted September 11, 2012 This is pretty worthless topic anyway. When replying/forwarding an email, the *way* in which previous messages in the thread will be formatted/segregated is completely up to the email application. So, you could write some logic to work for one scenario but would break for others. Of course, you could start adding more logic for other scenarios as they are identified, but you'd have no guarantee that they would not change at some point. In fact, some applications put the previous email thread at the top of the new message rather than the bottom. Plus, you would have to contend with the different formats and logic conflicting with each other. And, all of this assumes that the user won't add some text to the message that would be interpreted as a delimited for previous messages. My friend Eirikr replies at the bottom of the thread instead of the top. Game over. Quote Link to comment https://forums.phpfreaks.com/topic/268258-get-the-email-body-without-the-email-footer/#findComment-1377062 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.