Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I'm programming a little Google App Script for which I need to get the real body of an e-mail (using gmail services).

By real I mean the pure body of a particular message, without the text that message may be replying to.

For example, a message body could be:

No, the game is on

On Aug 3, 2011, at 5:05 PM, Guy_Number_1 wrote:
Dear Guy_Number_2, do you want to come to a party with me?

I want to get only "No, the game is on".
I don't think I can parse the text because the way the quoted mail is separated may vary depending on the e-mail client used to compose it.

Any ideas on how to accomplish this?

share|improve this question
2  
I'd consider reasking this on Stack Overflow - or it could be migrated. Please flag if you want it migrating. –  ChrisF Mar 10 '12 at 9:32
    
I agree with ChrisF. You want to move this question to StackOverflow or something. But it sounds like you want to create some kind of message filter to filter out the previous message and headers and just receive the current/newest message. I know your question is how to do it which is why I think you should re-ask your question at StackOverflow. –  Tremaine Apr 28 '12 at 21:23
    
@Tremaine until there is more programming detail this question will not be suitable for StackOverflow. It is on the fence for WebApps but it is on-topic. –  phwd Apr 29 '12 at 18:05
2  
Google Apps script is programming. –  Fuhrmanator May 3 '12 at 4:58
    
There is no action needed. Please stop flagging this for StackOverflow. We have already talked to the mods there, it needs more info –  phwd May 3 '12 at 7:37
show 1 more comment

closed as off topic by Al E., ChrisF Feb 21 '13 at 23:28

Questions on Web Applications Stack Exchange are expected to relate to web applications within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.