This is what I'm using to extract what I want:

 if (str.LastIndexOf(" quoted-printable") != -1)
                {
                    int Index = str.LastIndexOf(" quoted-printable");
                    Index += 17;
                    int NewIndex = str.IndexOf(" Information"); //Get
starting position of trailing data
                    NewIndex -= 20;
                    int NewLength = NewIndex - Index;

                    Body = str.Substring(Index,NewLength); //Only
extract body of email
                    Response.Write(Body); //Display the message

It seems to be working well.

Lauren

On Oct 27, 3:40 pm, Paulo Roberto Pellucci <[email protected]>
wrote:
> Great Lauren. Congratulations.
>
> Please post the solution or part of it, so we can have it on the group
> history. It would help others who search via google or ask the same thing,
> also.
>
>
>
>
>
> On Tue, Oct 27, 2009 at 9:50 AM, Lauren <[email protected]> wrote:
>
> > Hi,
>
> > It wasn't my real password by the way - just typed in the first thing
> > that came to mind.
>
> > The code works fine - I was just looking for a way to only display the
> > body of the message, not all the other stuff that came through.
> > Anyway, I managed to get it to work the way I wanted by doing some
> > string manipulation. It now only returns the body of the email.
>
> > Thanks,
> > Lauren
>
> > On Oct 27, 7:29 am, Cerebrus <[email protected]> wrote:
> > > Deleted Paulo's post (because it quotes Lauren's post) and reposting
> > > the contents after removing password.
>
> > > --
> > > Cerebrus.
> > > Group Moderator.
>
> > > On Oct 26, 3:44 pm, Paulo Roberto Pellucci <[email protected]>
> > > wrote:
>
> > > Hello Lauren.
> > > 1st of all, I hope this is not your real password.
>
> > > So, I understand what you want, but, I didn't get a point. You want us
> > > to
> > > complete your code? I mean, I have never done something like, but, is
> > > that
> > > code not working? Is it throwing an exception?
> > > Please provide us more info.
> > > Thanks
>
> --
> Atenciosamente,
> Paulo Roberto S. Pellucci- Hide quoted text -
>
> - Show quoted text -

Reply via email to