我如何从ApacheJames中的gmail帐户获取电子邮件,它显示了获取程序已完成获取,但我无法看到任何消息

nom7f22z  于 2021-08-20  发布在  Java
关注(0)|答案(0)|浏览(128)

我在fetchmail.xml文件中通过更改帐户用户和密码以及创建具有本地域的用户来使用此配置

<?xml version="1.0" encoding="UTF-8"?>
<fetchmail enabled="true">
   <fetch name="gmail.com">
      <accounts>
         <account user="YOUR_USER@gmail.com" password="YOUR_PASSWORD" recipient="YOUR_EMAIL_ADDRESS_IN_JAMES" ignorercpt-header="true" />
      </accounts>
      <host>imap.gmail.com</host>
      <interval>600000</interval>
      <javaMailProviderName>imap</javaMailProviderName>
      <javaMailFolderName>INBOX</javaMailFolderName>
      <javaMailProperties>
         <property name="mail.imap.ssl.enable" value="true" />
      </javaMailProperties>
      <fetchall>false</fetchall>
      <recursesubfolders>false</recursesubfolders>
      <defaultdomain>localhost</defaultdomain>
      <fetched leaveonserver="true" markseen="true" />
      <remotereceivedheader index="1" reject="true" leaveonserver="true" markseen="false" />
      <maxmessagesize limit="0" reject="false" leaveonserver="true" markseen="false" />
      <undeliverable leaveonserver="true" markseen="false" />
      <recipientnotfound defer="true" reject="true" leaveonserver="true" markseen="false" />
      <blacklist reject="true" leaveonserver="true" markseen="false">wibble@localhost, flobble@localhost</blacklist>
      <userundefined reject="true" leaveonserver="true" markseen="false" />
      <remoterecipient reject="true" leaveonserver="true" markseen="false" />
   </fetch>
</fetchmail>

使用命令run.bat后,它会显示fetcher完成的回迁,但在store/derby/log中没有显示一些未经处理的文本的消息。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题