Comments (4)
@sulami I think that this issue can be closed.
from feed2maildir.
1. mutt always shows "01 Jan 1970 01:00" as the date for the emails
That happens for me too, but it seems to happen only on Atom feeds, not on RSS feeds. The reason is probably that RSS feeds use the same date format which is also used for e-mail (RFC 2822), e.g.:
<pubDate>Thu, 18 Jul 2019 19:15:00 -0700</pubDate>
but Atom uses the ISO 8601 date format:
<updated>2019-08-18T13:33:37.798589+00:00</updated>
β¦ which is not allowed in mail headers according to RFC 2822. So mail user agents use the default, 0
, which, when interpreted as Unix timestamp, results in Thu, 01 Jan 1970 00:00:00 +0000
.
It seems kind of a bug to me that python-feedparser does not handle this correctly β I would expect a python datetime
object here instead of a plain string.
2. the sender of messages is automatically composed into something that is difficult to read. It would be nice if this could instead be defined in the config line and/or whether the site name would be used instead
Here I have no ideaβ¦
from feed2maildir.
I had the same issues. Some feeds have the wrong date format. As @rohieb said the problem is that Atom uses ISO 8601 date format instead of RFC 2822.
This can be fixed relatively easy (PR #7 )
The other issue is perhaps more subjective: the sender of the emails are built from the feed's title. Some titles are quite large making the sender a name too large and hard to read in an email reader like mutt
For example, the feed of the engineering team of Github has the title Engineering -- The GitHub Blog
.
I propose (PR #8 ) to use the feed name that the user set in the configuration file as the sender name and only for that. (This is important because the feed title is used as part of the database and we don't want to modify that so we can avoid any migration)
So if the user has the following configuration file, the emails will have Github
as the name of the sender:
{
"feeds": {
"Github": "https://githubengineering.com/atom.xml"
}
}
from feed2maildir.
I've merged both of your PRs and will release & push a new version to PyPI tomorrow.
from feed2maildir.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from feed2maildir.