我試圖從電子郵件中獲取正文,但我不知道如何。身體與頭部之間的空間分開。你能給我舉一些例子嗎?解析字符串C
謝謝。
的消息看起來像這樣(有標題和正文):
From [email protected] Fri May 13 12:28:30 2010
Return-Path: <[email protected]>
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: from cristi?localhost (localhost [127.0.0.1])
by Notebook (Postfix) with SMTP id 50F6F809E0
for <[email protected]>; Fri, 13 May 2010 12:28:30 +0300 (EEST)
Message-Id: <[email protected]>
Date: Fri, 13 May 2010 12:28:30 +0300 (EEST)
From: [email protected]
To: undisclosed-recipients:;
Text Body
.
到目前爲止:
while (buffer_recieved[begin]){
if (buffer_recieved[begin] == '\r' && buffer_recieved[begin+1] == '\n') {
body[end++]=buffer_recieved[begin];
}
begin++;
}
body[end]=0;
請說明您的問題:給一個示例電子郵件。你用空格隔開什麼意思?這是一個線條空間嗎? – Roalt 2011-05-13 09:46:03