Comments (4)
Hi, I think I have the solution to this issue, but haven't vompleted the code change.
In line 582 I find the call to imap.append. The third parameter is meant to be date/time but is called with an empty value (I assume current date/time is added somewhere automatically).
I tried to put imaplib.Time2Internaldat(XXXXX)
in there. Using the epoch timestamp (hardcoded for the test) as a number here solved the problem.
I wasn't sure where to take the date from programmatically. But the function Time2Internaldat seems to be pretty flexible to take strings or epoch. Also not sure about any timezone handling. Maybe you could complete this?
Thank you
Thomas
from imap-attachment-extractor.
Hi,
I don't have access to a macOS to test any solution, and in Thunderbird the replacement mail appears at the correct date. But if your solution is easy enough to implement I could do a patch, I'll look if I can find the correct date in the source email.
Cheers,
from imap-attachment-extractor.
I added the mail date parameter to imap.append
, by using the local timezone. It should be ok.
from imap-attachment-extractor.
Thank you, that is great. I tested one example and it worked!
This tool is so well equipped with options - but without maintaining te date I could not use it.
Thank you!!
from imap-attachment-extractor.
Related Issues (4)
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 imap-attachment-extractor.