Click here to Skip to main content
15,888,351 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Searching string.. Pin
Fatbuddha 16-May-09 23:14
Fatbuddha 16-May-09 23:14 
AnswerRe: Searching string.. Pin
wb_program11-May-09 8:54
wb_program11-May-09 8:54 
Questionhelp me plz to find the algorithm for circle hough transform Pin
javeria khalid21-Apr-09 7:45
javeria khalid21-Apr-09 7:45 
AnswerRe: help me plz to find the algorithm for circle hough transform Pin
Tim Craig21-Apr-09 8:52
Tim Craig21-Apr-09 8:52 
AnswerRe: help me plz to find the algorithm for circle hough transform Pin
Yusuf21-Apr-09 11:05
Yusuf21-Apr-09 11:05 
AnswerRe: help me plz to find the algorithm for circle hough transform Pin
Alan Balkany22-Apr-09 3:29
Alan Balkany22-Apr-09 3:29 
Questioni need genetic algorithm coding for the objective function of the controllers i know.help me friends its my project Pin
trinath8118-Apr-09 20:12
trinath8118-Apr-09 20:12 
QuestionHow to get the body of an email message? Pin
Quake2Player17-Apr-09 15:01
Quake2Player17-Apr-09 15:01 
Hi,

When you use the RETR command in POP3, you get the message with this form:

blah: blah blah
blah: blah blah
.
.
.
blah: blah blah
blah: blah blah
body of message
.


The problem is that, the number of headers (blah: blah blah) are variable and they don't appear in the same order always, for example

message-ID: blabla
Reference: blablaba
or
Reference: blablaba
message-ID: blabla

Though, capturing a header is easy because one can use IndexOf("header:") and search for the \n next to that index.

But I'm having real trouble capturing the body of the message, which might contain multiple "\n" inside and it doesnt start with an identifier like "body:" or something (like headers does)

The body finishes with
\n.\n

Also i'm having troubles with the fact that a body of a message could start with "this_is_fake_header: bla bla", so..

Help please
AnswerRe: How to get the body of an email message? Pin
Curtis Schlak.19-Apr-09 6:59
Curtis Schlak.19-Apr-09 6:59 
GeneralRe: How to get the body of an email message? Pin
Quake2Player19-Apr-09 9:40
Quake2Player19-Apr-09 9:40 
GeneralRe: How to get the body of an email message? Pin
Curtis Schlak.19-Apr-09 12:43
Curtis Schlak.19-Apr-09 12:43 
QuestionAlgorithm Books Pin
DBLearner17-Apr-09 6:30
DBLearner17-Apr-09 6:30 
AnswerRe: Algorithm Books Pin
SQLServerIO1-Jun-09 3:57
SQLServerIO1-Jun-09 3:57 
Questionalgorithm Pin
letaya13-Apr-09 21:06
letaya13-Apr-09 21:06 
AnswerRe: algorithm Pin
madicursar13-Apr-09 22:58
madicursar13-Apr-09 22:58 
AnswerRe: algorithm Pin
Alan Balkany14-Apr-09 3:54
Alan Balkany14-Apr-09 3:54 
AnswerRe: algorithm Pin
Pete O'Hanlon14-Apr-09 4:38
mvePete O'Hanlon14-Apr-09 4:38 
AnswerRe: algorithm Pin
Yusuf14-Apr-09 15:26
Yusuf14-Apr-09 15:26 
AnswerRe: algorithm Pin
CPallini15-Apr-09 8:48
mveCPallini15-Apr-09 8:48 
QuestionSymbian Deflate algorithm Pin
K. Sushilkumar13-Apr-09 19:02
K. Sushilkumar13-Apr-09 19:02 
AnswerRe: Symbian Deflate algorithm Pin
riced13-Apr-09 22:53
riced13-Apr-09 22:53 
AnswerRe: Symbian Deflate algorithm Pin
Yusuf14-Apr-09 15:27
Yusuf14-Apr-09 15:27 
QuestionSSE and multi-core processors Pin
epitalon9-Apr-09 2:25
epitalon9-Apr-09 2:25 
AnswerRe: SSE and multi-core processors Pin
Alan Balkany9-Apr-09 3:38
Alan Balkany9-Apr-09 3:38 
GeneralRe: SSE and multi-core processors Pin
epitalon9-Apr-09 5:16
epitalon9-Apr-09 5:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.