Do keep list posts on-list. Reply to the list, not me personally. On Wed, 2010-03-03 at 13:14 +0530, subbi.red...@gmail.com wrote: > If we give a reply to the mail, the replied mail contains the > original message and replied message as we already know. > > Here I want to retrieve only original message.
Well, what for? Is this even a SA question? If so, please do explain what you really want to do, and what you want to solve by this. No, "retrieve original message" is not sufficient. > I can easily identify the replied part for Gmail since they appends > the “<” character prefix to each line for a replied mail. > > but each mail client is having their own pattern to distinguish the > replied part. > > > So please help me to get the regular-expression(s) required to parse > the replied part of a mail for different mail clients. [ Bad HTML formatted foll-quote under -- snipped. ] -- char *t="\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}