線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1880
推到 Plurk!
推到 Facebook!

delphi7.0中idpop3控件问题请教

答題得分者是:malanlk
tzjwj
一般會員


發表:28
回覆:30
積分:11
註冊:2005-05-09

發送簡訊給我
#1 引用回覆 回覆 發表時間:2005-10-09 08:52:42 IP:61.153.xxx.xxx 未訂閱
我想实现对我邮箱里的邮件进行指定标题扫描。使用以下代码,可是总是扫描第一封邮件,请大大指教: 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

發送簡訊給我
#2 引用回覆 回覆 發表時間:2005-10-09 11:04:50 IP:61.153.xxx.xxx 未訂閱
对不起,我弄错了,少了一行指令: idmessage1.clear; 还有,中文标题如何得到,我得到的结果都为乱码。
malanlk
尊榮會員


發表:20
回覆:694
積分:577
註冊:2004-04-19

發送簡訊給我
#3 引用回覆 回覆 發表時間:2005-10-09 13:03:33 IP:61.219.xxx.xxx 未訂閱
借花獻佛.... 問題 請問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
系統時間:2024-05-14 8:57:24
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!