|
回复 2# 的帖子
这个我测过,应该没有问题的,把我的脚本给你参考一下,呵呵
int i;
pop31 = 0;
pop3_logon_ex(&pop31, "Pop3Logon",
"URL=pop3://yonghua.duan:xiaoduan@192.168.1.6",
LAST);
pop3_command_ex(&pop31, "Pop3Command",
"Command=STAT",
LAST);
i=pop3_list_ex(&pop31, "Pop3List",
LAST);
lr_output_message("%d",i);
pop3_retrieve_ex(&pop31, "RetrieveMail",
"RetrieveList=1",
"DeleteMail=No",
"SaveAs=d:\\debug.txt",
// "SaveTo=msgBody",
"CreateParamForHeader=From,To,Date,Content-Type,Attachment",
LAST);
pop3_delete_ex(&pop31, "POP3", "DeleteList=1", LAST);
i=pop3_list_ex(&pop31, "Pop3List",
LAST);
lr_output_message("%d",i);
pop3_logoff_ex(&pop31);
pop3_free_ex(&pop31); |
|