YDX-2147483647 / bulletin-issues-transferred

汇总 BIT 各种网站的通知。(以及钉钉、RSS插件等)
https://haobit.top/notice/
MIT License
32 stars 1 forks source link

不支持 rssto.email #16

Closed YDX-2147483647 closed 1 year ago

YDX-2147483647 commented 1 year ago

现在可以加入 rssto.email,但无法正常工作。可能是 #1 <pubDate>不合理导致的。(如下)

https://github.com/aksh-at/rss-to-email/blob/8303440aabfeecfdae00e5e3720950c5113450b1/src/datomic/ion/rsstoemail/poller.clj#L22-L29

Note

  • 不是 rssto.email 的问题,因为别的源可以。
  • 不是服务器配置问题,因为把别的源复制到服务器上也可以。
YDX-2147483647 commented 1 year ago

做了一些对比实验。

支持

English, No CDATA

English, No CDATA ```xml BulletinIT https://haobit.top/dev/site/notice/ Bulletin Issues Transferred zh-CN Bulletin Issues Transferred Sun, 05 Mar 2023 02:01:21 GMT Is it OK? https://xkcd.com/2745/ As the editor has reportedly defeated Death in a series of games of skill, no further obituaries are expected." alt="As the editor has reportedly defeated Death in a series of games of skill, no further obituaries are expected. Fri, 03 Mar 2023 05:00:00 -0000 https://xkcd.com/2745/-is-it-ok Obituary Editor https://xkcd.com/2745/ <img src="https://imgs.xkcd.com/comics/obituary_editor.png" title="As the editor has reportedly defeated Death in a series of games of skill, no further obituaries are expected." alt="As the editor has reportedly defeated Death in a series of games of skill, no further obituaries are expected." /> Fri, 03 Mar 2023 05:00:00 -0000 https://xkcd.com/2745/ ```

English, No CDATA

feed-good ``xml BulletinIT https://haobit.top/dev/site/notice/ Bulletin Issues Transferred zh-CN Bulletin Issues Transferred Sun, 05 Mar 2023 02:01:21 GMT Is it OK? https://xkcd.com/2745/ As the editor has reportedly defeated Death in a series of games of skill, no further obituaries are expected." alt="As the editor has reportedly defeated Death in a series of games of skill, no further obituaries are expected. Fri, 03 Mar 2023 05:00:00 -0000 https://xkcd.com/2745/-is-it-ok#2023-04-12T16:36:19 ```

English, CDATA

feed-cdata ```xml BulletinIT https://haobit.top/dev/site/notice/ Bulletin Issues Transferred zh-CN Bulletin Issues Transferred Sun, 05 Mar 2023 02:01:21 GMT Is it OK? https://xkcd.com/2745/ here.]]> Fri, 03 Mar 2023 05:00:00 -0000 https://xkcd.com/2745/-is-it-ok#2023-04-12T16:41:43 ```

UTF-8, CDATA

feed-zh_CN ```xml BulletinIT https://haobit.top/dev/site/notice/ Bulletin Issues Transferred zh-CN Bulletin Issues Transferred Sun, 05 Mar 2023 02:01:21 GMT 啊? https://xkcd.com/2745/ here.]]> Fri, 03 Mar 2023 05:00:00 -0000 https://xkcd.com/2745/-is-it-ok#2023-04-12T17:00:49 ```

All UTF-8

feed-all-zh_CN ```xml BulletinIT https://haobit.top/dev/site/notice/ Bulletin Issues Transferred zh-CN Bulletin Issues Transferred Sun, 05 Mar 2023 02:01:21 GMT 啊? https://xkcd.com/2745/ 这里。]]> Fri, 03 Mar 2023 05:00:00 -0000 https://xkcd.com/2745/-is-it-ok#2023-04-12T21:48:12 ```

UTF-8, No isPermaLink, Single item, pubDate timezone

feed-zh_CN-no-isPermaLink-single-timezone ```xml BulletinIT https://haobit.top/dev/site/notice/ Bulletin Issues Transferred zh-CN Bulletin Issues Transferred Sun, 05 Mar 2023 02:01:21 GMT 徐特立学院关于第六届学术论坛征文的通知 Time zone Fri, 03 Mar 2023 05:00:00 -0000 https://xuteli.bit.edu.cn/tzgg/dc231b272ca8445ca1acbe8ccdee6696.htm https://xuteli.bit.edu.cn/tzgg/dc231b272ca8445ca1acbe8ccdee6696.htm 特立。]]> 特立 ```

不支持

All UTF-8, pubDate GMT

feed-all-zh_CN-GMT ```xml BulletinIT https://haobit.top/dev/site/notice/ Bulletin Issues Transferred zh-CN Bulletin Issues Transferred Sun, 05 Mar 2023 02:01:21 GMT 啊?GMT https://xkcd.com/2745/ 这里。]]> Sun, 05 Mar 2023 02:01:21 GMT https://xkcd.com/2745/-is-it-ok#2023-04-12T23:08:20 ```

UTF-8, No isPermaLink, Single item

feed-zh_CN-no-isPermaLink-single ```xml BulletinIT https://haobit.top/dev/site/notice/ Bulletin Issues Transferred zh-CN Bulletin Issues Transferred Sun, 05 Mar 2023 02:01:21 GMT 徐特立学院关于第六届学术论坛征文的通知 Fri, 03 Mar 2023 16:00:00 GMT https://xuteli.bit.edu.cn/tzgg/dc231b272ca8445ca1acbe8ccdee6696.htm https://xuteli.bit.edu.cn/tzgg/dc231b272ca8445ca1acbe8ccdee6696.htm 特立。]]> 特立 ```

UTF-8, No isPermaLink

feed-zh_CN-no-isPermaLink ```xml BulletinIT https://haobit.top/dev/site/notice/ Bulletin Issues Transferred zh-CN Bulletin Issues Transferred Sun, 05 Mar 2023 02:01:21 GMT 徐特立学院关于第六届学术论坛征文的通知 Fri, 03 Mar 2023 16:00:00 GMT https://xuteli.bit.edu.cn/tzgg/dc231b272ca8445ca1acbe8ccdee6696.htm https://xuteli.bit.edu.cn/tzgg/dc231b272ca8445ca1acbe8ccdee6696.htm 特立。]]> 特立 关于拟聘用常运平至七级管理岗位工作的公示 Thu, 02 Mar 2023 16:00:00 GMT https://renshichu.bit.edu.cn/gbtzgg/c784d9316e4f440995f4cac82ae7ba44.htm https://renshichu.bit.edu.cn/gbtzgg/c784d9316e4f440995f4cac82ae7ba44.htm 人事。]]> 人事 2023年德国亚琛工业大学暑期线下课程项目报名通知 Thu, 02 Mar 2023 16:00:00 GMT https://jwb.bit.edu.cn/tzgg/ad2528b5c06f415cb5d485ea1ccac18b.htm https://jwb.bit.edu.cn/tzgg/ad2528b5c06f415cb5d485ea1ccac18b.htm 教务部。]]> 教务部 ```

UTF-8, CDATA

feed-retry ```xml BulletinIT https://haobit.top/dev/site/notice/ Bulletin Issues Transferred zh-CN Bulletin Issues Transferred Sun, 05 Mar 2023 02:01:21 GMT 徐特立学院关于第六届学术论坛征文的通知 Fri, 03 Mar 2023 16:00:00 GMT https://xuteli.bit.edu.cn/tzgg/dc231b272ca8445ca1acbe8ccdee6696.htm https://xuteli.bit.edu.cn/tzgg/dc231b272ca8445ca1acbe8ccdee6696.htm 特立。]]> 特立 关于拟聘用常运平至七级管理岗位工作的公示 Thu, 02 Mar 2023 16:00:00 GMT https://renshichu.bit.edu.cn/gbtzgg/c784d9316e4f440995f4cac82ae7ba44.htm https://renshichu.bit.edu.cn/gbtzgg/c784d9316e4f440995f4cac82ae7ba44.htm 人事。]]> 人事 2023年德国亚琛工业大学暑期线下课程项目报名通知 Thu, 02 Mar 2023 16:00:00 GMT https://jwb.bit.edu.cn/tzgg/ad2528b5c06f415cb5d485ea1ccac18b.htm https://jwb.bit.edu.cn/tzgg/ad2528b5c06f415cb5d485ea1ccac18b.htm 教务部。]]> 教务部 ```

UTF-8, No CDATA

feed-no-cdata-utf-8 ```xml BulletinIT https://haobit.top/dev/site/notice/ Bulletin Issues Transferred zh-CN Bulletin Issues Transferred Sun, 05 Mar 2023 02:01:21 GMT 徐特立学院关于第六届学术论坛征文的通知 Fri, 03 Mar 2023 16:00:00 GMT https://xuteli.bit.edu.cn/tzgg/dc231b272ca8445ca1acbe8ccdee6696.htm https://xuteli.bit.edu.cn/tzgg/dc231b272ca8445ca1acbe8ccdee6696.htm#no-cdata-2023-03-05T123700+0800 来自<a href='https://xuteli.bit.edu.cn/tzgg/index.htm' title='特立书院'>特立</a>。 特立 关于拟聘用常运平至七级管理岗位工作的公示 Thu, 02 Mar 2023 16:00:00 GMT https://renshichu.bit.edu.cn/gbtzgg/c784d9316e4f440995f4cac82ae7ba44.htm https://renshichu.bit.edu.cn/gbtzgg/c784d9316e4f440995f4cac82ae7ba44.htm#no-cdata-2023-03-05T123800+0800 来自<a href='https://renshichu.bit.edu.cn/gbtzgg/index.htm' title='党委教师工作部、人力资源部'>人事</a>。 人事 2023年德国亚琛工业大学暑期线下课程项目报名通知 Thu, 02 Mar 2023 16:00:00 GMT https://jwb.bit.edu.cn/tzgg/ad2528b5c06f415cb5d485ea1ccac18b.htm https://jwb.bit.edu.cn/tzgg/ad2528b5c06f415cb5d485ea1ccac18b.htm 来自<a href='https://jwb.bit.edu.cn/tzgg/index.htm' title='教务部'>教务部</a>。 教务部 ```

UTF-8, No CDATA, ASCII Escaped

feed-all-ascii-utf-8 ```xml BulletinIT https://haobit.top/dev/site/notice/ Bulletin Issues Transferred zh-CN Bulletin Issues Transferred Sun, 05 Mar 2023 02:01:21 GMT 2023-03-05T194200+0800 徐特立学院关于第六届学术论坛征文的通知 Fri, 03 Mar 2023 16:00:00 GMT https://xuteli.bit.edu.cn/tzgg/dc231b272ca8445ca1acbe8ccdee6696.htm https://xuteli.bit.edu.cn/tzgg/dc231b272ca8445ca1acbe8ccdee6696.htm#2023-03-05T194200+0800 来自<a href='https://xuteli.bit.edu.cn/tzgg/index.htm' title='特立书院'>特立</a>。 特立 关于拟聘用常运平至七级管理岗位工作的公示 Thu, 02 Mar 2023 16:00:00 GMT https://renshichu.bit.edu.cn/gbtzgg/c784d9316e4f440995f4cac82ae7ba44.htm https://renshichu.bit.edu.cn/gbtzgg/c784d9316e4f440995f4cac82ae7ba44.htm#2023-03-05T123600+0800 来自<a href='https://renshichu.bit.edu.cn/gbtzgg/index.htm' title='党委教师工作部、人力资源部'>人事</a>。 人事 2023年德国亚琛工业大学暑期线下课程项目报名通知 Thu, 02 Mar 2023 16:00:00 GMT https://jwb.bit.edu.cn/tzgg/ad2528b5c06f415cb5d485ea1ccac18b.htm https://jwb.bit.edu.cn/tzgg/ad2528b5c06f415cb5d485ea1ccac18b.htm 来自<a href='https://jwb.bit.edu.cn/tzgg/index.htm' title='教务部'>教务部</a>。 教务部 ```
YDX-2147483647 commented 1 year ago

Nginx 日志可以看到 rssto.email 是否访问了。

"GET /dev/feed.rss HTTP/1.1" 200 3414 "-" "Java/11.0.17"
$ sudo tail -f access.log | bat --paging never -l log
YDX-2147483647 commented 1 year ago

目前结论

<pubDate>格式导致 rssto.email 不工作。(<lastBuildDate>则不影响)

✅ Fri, 03 Mar 2023 05:00:00 -0000
❌ Sun, 05 Mar 2023 02:01:21 GMT

rssto.email 用 RFC 822(EEE, dd MMM yyyy HH:mm:ss Z)解析<pubDate>

https://github.com/aksh-at/rss-to-email/blob/8303440aabfeecfdae00e5e3720950c5113450b1/src/datomic/ion/rsstoemail/poller.clj#L17

https://github.com/clj-time/clj-time/blob/b1558aa5b2fc6d052594a3aedca6f23e143a4e5b/src/clj_time/format.clj#L145

https://github.com/clj-time/clj-time/issues/97

YDX-2147483647 commented 1 year ago

解决了!

YDX-2147483647 commented 1 year ago

好像还是不正常?

支持

https://haobit.top/dev/feed-test.rss ```xml BulletinIT https://haobit.top/dev/site/notice/ Bulletin Issues Transferred zh-CN Bulletin Issues Transferred Thu, 13 Apr 2023 07:01:09 +0000 北理留学生运动会暨趣味运动会成功举行 Thu, 13 Apr 2023 03:01:09 +0000 https://mp.weixin.qq.com/s/G4M_NVnkHf8a0GZPCPoeRw https://mp.weixin.qq.com/s/G4M_NVnkHf8a0GZPCPoeRw 留学生。]]> 留学生 ```

结论

这次是服务器配置错误。已更正,待验证 已验证。