我想詢問有關處理反彈電子郵件(但沒有使用IMAP的服務器上,僅使用POP3,並且在我的計算機上沒有Outlook)。 我不想每次都從服務器讀取所有電子郵件。處理反彈電子郵件(只有POP3,沒有IMAP)
所以我想,起初: 1.閱讀電子郵件從最舊到最新,檢查是否有反彈。 2.保存最新的e-mail給變量「TempData的」 日期//這個過程將只執行一次,開始時
然後在計時器循環(在另一個線程): 3。閱讀電子郵件從「TEMPDATA」到最新的,檢查是否有反彈(檢查是否有一個主題「」未交付郵件返回發件人「」)。
我的想法的僞代碼:
TIMER(Tick every 5minutes)
{
(LOCK)
loop(on inbox from the "TEMPDATA" to the newest)
{
// Read single email
if (the subject is "Undelivered Mail Returned to Sender")
{
// Here I will parse message so that I will know the addresse
// And removie that addresse from my list.
}
}
(UNLOCK)
}
我只是好奇,如果有一些更好的解決方案。
謝謝,但我正在尋找開源解決方案 – Marshall