delphi7.0中idpop3控件问题请教 |
答題得分者是:malanlk
|
tzjwj
一般會員 發表:28 回覆:30 積分:11 註冊:2005-05-09 發送簡訊給我 |
我想实现对我邮箱里的邮件进行指定标题扫描。使用以下代码,可是总是扫描第一封邮件,请大大指教:
function check_pop3_email(substring:string):string;
var
tempmailsum:integer;
tempinteger,temppos:Integer;
tempsubject:string;
begin
tempsubject:='';
with idpop31 do
begin
Connect(IdTimeoutDefault);
try
tempmailsum:=CheckMessages;
for tempinteger:=tempmailsum-1 downto 0 do
begin
if Retrieve(tempinteger,IdMessage1)=false then
continue;
tempsubject:=idmessage1.Subject;
temppos:=pos(lowercase(substring),lowercase(tempsubject));
if temppos>0 then
begin
break;
end;
end;
finally
disconnect;
end;
end;
result:=tempsubject;
end;
|
tzjwj
一般會員 發表:28 回覆:30 積分:11 註冊:2005-05-09 發送簡訊給我 |
|
malanlk
尊榮會員 發表:20 回覆:694 積分:577 註冊:2004-04-19 發送簡訊給我 |
借花獻佛.... 問題 請問Delphi7使用IdPOP3(Indy9)下載郵件後,怎樣處理亂碼(MIME)?
http://delphi.ktop.com.tw/topic.php?topic_id=30401 如何做到類似郵件預覽的功能
http://delphi.ktop.com.tw/topic.php?topic_id=46381
問題 請問TIdBase64decoder如何使用?
http://delphi.ktop.com.tw/topic.php?TOPIC_ID=33410
[推薦] MIME 和 BASE64 編碼/解碼程序代碼
http://delphi.ktop.com.tw/topic.php?topic_id=19939
【Delphi】【問題】關於 Indy 的 client-side IdPOP3 使用問題
http://delphi.ktop.com.tw/topic.php?topic_id=20737
【問題】以telnet直接取得郵件內容的實作
http://delphi.ktop.com.tw/topic.php?topic_id=27115
【問題】誰用過IDSMTP發送郵件?請進來一下.
http://delphi.ktop.com.tw/topic.php?topic_id=20748
【Delphi】【發表】[VCL Howto 投稿] Indy 9.0.10 TIdSMTP & TIdMessage
http://delphi.ktop.com.tw/topic.php?topic_id=20961
【Delphi】【發表】Indy E_mail小精靈word部分
http://delphi.ktop.com.tw/topic.php?TOPIC_ID=21399
http://delphi.ktop.com.tw/topic.php?TOPIC_ID=21398
【轉貼】解碼mime郵件的代碼
http://delphi.ktop.com.tw/topic.php?topic_id=22408
【問題】有什么构件可以解析MIME
http://delphi.ktop.com.tw/topic.php?topic_id=28343
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |