Giter VIP home page Giter VIP logo

Comments (4)

tschloss avatar tschloss commented on July 18, 2024

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.

Danamir avatar Danamir commented on July 18, 2024

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.

Danamir avatar Danamir commented on July 18, 2024

I added the mail date parameter to imap.append, by using the local timezone. It should be ok.

from imap-attachment-extractor.

tschloss avatar tschloss commented on July 18, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.