推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
wchluxi
V2EX  ›  Python

Python imbox 如何获取指定日期的邮件?

  •  
  •   wchluxi · Dec 22, 2021 · 2504 views
    This topic created in 1628 days ago, the information mentioned may be changed or developed.
    imbox.messages(date__on=)
    

    date__on不生效,都是推送最近三十天,有大神教教怎么解决吗?

    4 replies    2021-12-22 11:37:14 +08:00
    2i2Re2PLMaDnghL
        1
    2i2Re2PLMaDnghL  
       Dec 22, 2021
    看上去 imbox 是把 date__on 直接作为 (ON "2006-01-02") 传递给了服务器,没有作手动筛选
    先问下你,你 date__on 传了啥?
    wchluxi
        2
    wchluxi  
    OP
       Dec 22, 2021
    @2i2Re2PLMaDnghL 我就穿今天日期它也是返回很多天的邮件给我 imbox.messages(date__on=datetime.date(2021,12,22))
    2i2Re2PLMaDnghL
        3
    2i2Re2PLMaDnghL  
       Dec 22, 2021   ❤️ 1
    感觉有可能是服务器的 IMAP 实现有问题(毕竟 ON 看上去用的人少),考虑 1. 抓包?; 2. 用其他 IMAP 客户端发 ON query ; 3. 组合使用 date__lt date__gt 替代
    wchluxi
        4
    wchluxi  
    OP
       Dec 22, 2021
    @2i2Re2PLMaDnghL 确实是服务器的 IMAP 实现有问题,换了个服务器就可以了,谢谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3765 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 00:52 · PVG 08:52 · LAX 17:52 · JFK 20:52
    ♥ Do have faith in what you're doing.