如何修复G1ANT imap不检索任何电子邮件? [英] How to fix G1ANT imap not retrieving any emails?

查看:73
本文介绍了如何修复G1ANT imap不检索任何电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试让此G1ANT机器人从测试电子邮件ID中检索未读电子邮件,但是即使有两封未读电子邮件,检索到的列表♥list 的计数也为零.我该如何解决?也不会显示任何错误消息.

I'm trying to get this G1ANT robot to retrieve unread emails from a test email ID, however the retrieved list ♥list has a count of zero even when there are two unread emails. How do I get around this? No error messages are displayed as well.

我也尝试使用 imap.getemails 代替了 mail.imap 命令,但返回的结果相同.这是该行的代码:

I tried using imap.getemails instead of mail.imap command also, yet it returns the same results. Here is the code for that line:

mail.imap imap.getmails主机imap.gmail.com端口993登录♥登录密码♥仅密码unreadmessages是true date♥dateignorecertificateerrors是true结果♥list

在电子邮件地址上启用了IMAP.

IMAP is enabled on the email address.

这是代码:

addon net version 4.101.0.0
addon selenium version 4.101.0.0
addon core version 4.101.0.0
addon language version 4.103.0.0

♥login=idgoeshere
♥password=passwordhere

mail.imap imap.gmail.com login ♥login password ♥password sincedate ♥date onlyunreadmessages true ignorecertificateerrors true result ♥list

foreach ♥email in ♥list
    dialog ♥email
end

没有显示错误消息,只是自动化结束了.

No error messages were shown, simply the automation ends.

推荐答案

问题是♥date 是G1ANT中包含今天日期的特殊变量.这意味着它从今天开始就找不到任何电子邮件,因为从今天开始还没有一天.

The problem is that ♥date is a special variable in G1ANT containing the today date. It means that it can't find any emails after today because there was no day after today yet.

使用一些直接值代替,例如16/08/2019并确保使用 errorcall 参数,因为您可能会遇到以下异常:

Use some direct value instead, for example 16/08/2019 and be sure to use errorcall argument as you will probably encounter the exception:

该文件夹当前未以读写模式打开.

The folder is not currently open in read-write mode.

您可以通过创建一个空过程来忽略它,如下所示.

You can just ignore it by creating an empty procedure like in the following.

mail.imap imap.gmail.com login ♥login password ♥password sincedate ‴16/08/2019‴ onlyunreadmessages true ignorecertificateerrors true errorcall IgnoreError

foreach ♥email in ♥result
    dialog ♥email
end

procedure IgnoreError
end procedure

这篇关于如何修复G1ANT imap不检索任何电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆