redmine中接收imap邮件的问题

发布于 2024-10-31 19:22:15 字数 523 浏览 0 评论 0原文

我收到的电子邮件不断被忽略,并且没有归档到正确的项目中。我在这里缺少什么?

rake -f /home/kickapps/redmine/Rakefile redmine:email:receive_imap \
RAILS_ENV="production" \
host=imap.gmail.com \
ssl=SSL \
port=993 \
move_on_success=FILED \
move_on_failure=IGNORED \
[email protected] \
password=*************** \
unknown_user=accept \
no_permission_check=1 \
project=test \
allow_override=project,tracker

My incoming emails keep getting ignored and not filed into the correct project. What am I missing here?

rake -f /home/kickapps/redmine/Rakefile redmine:email:receive_imap \
RAILS_ENV="production" \
host=imap.gmail.com \
ssl=SSL \
port=993 \
move_on_success=FILED \
move_on_failure=IGNORED \
[email protected] \
password=*************** \
unknown_user=accept \
no_permission_check=1 \
project=test \
allow_override=project,tracker

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

栖迟 2024-11-07 19:22:15

如果您没有看到电子邮件在 gmail 中被读取,请尝试在 rake 参数末尾添加 --trace (您应该会收到 rake 错误)。该电子邮件在 gmail 邮箱中必须是未读/新的,否则 rake 不会读取它,因为它认为它已经阅读了。

另一个问题:993 被 redmine 和 gmail 之间的防火墙阻止。

运行 rake 后立即检查 Rails log/Production.log - 检查是否有有关邮件的错误消息。

假设rake任务正在读取并更改gmail中的状态,那么它可能是参数。我注意到您的 ssl 与我的不同

rake -f /home/kickapps/redmine/Rakefile redmine:email:receive_imap \
RAILS_ENV="production" \
host=imap.gmail.com \
ssl=1 \ # it's 1 on my install -- double check
port=993 \
[email protected] \
password=*************** \
project=test \ # must be the project identfier not the name
status=assigned \ # must be a status used in the project, check popups in redmine
unknown_user=accept \ #haven't tried this
no_permission_check=1 \ # or this
allow_override=project,tracker # or this 

If you don't see the email become read in gmail then try adding --trace at the end of your rake parameters (you should get a rake error). The email must be unread/new at gmail box or it won't be read by the rake because it thinks it already read it.

Another gotcha: 993 blocked by firewall between redmine and gmail.

Check the rails log/production.log right after running the rake - check if there's some error message about the mail.

Assuming the rake task is reading and changing the status in gmail, then it might be the parameters. I notice your ssl is different from what I had.

rake -f /home/kickapps/redmine/Rakefile redmine:email:receive_imap \
RAILS_ENV="production" \
host=imap.gmail.com \
ssl=1 \ # it's 1 on my install -- double check
port=993 \
[email protected] \
password=*************** \
project=test \ # must be the project identfier not the name
status=assigned \ # must be a status used in the project, check popups in redmine
unknown_user=accept \ #haven't tried this
no_permission_check=1 \ # or this
allow_override=project,tracker # or this 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文