Git Product home page Git Product logo

Comments (4)

eesheesh avatar eesheesh commented on April 27, 2024

Hi,

As you can see in line 267, the script uses dateHeader as the internal date source. That means that the "received date" you'll see in Gmail is the date in the message's Date header.

Gmail API doesn't provide a way to specify a separate "received date", it can either be the date when the message was imported, or parsed from the Date header.

Even if using the dateHeader option, you might still see the import date as the message's "received date", if Gmail failed to parse the Date header during the import. Please check the message you're importing and see if the date is formatted correctly as per RFC822.

from import-mailbox-to-gmail.

GiacomoDD avatar GiacomoDD commented on April 27, 2024

Ah, thank you so much for your suggestion. Actually I'm not a developer, so I'm trying to figure out how to do this formatting check, but it's a little bit hard and cofusing..

from import-mailbox-to-gmail.

eesheesh avatar eesheesh commented on April 27, 2024

If you have an mbox file, it's just a text file, that you should be able to open with any text editor. Then, look for the affected message (i.e. a message where you saw the wrong date in Gmail), and take a look at the line starting with Date: at the top of that message.

You'd often see that there's no such line at all, or it's there but formatted incorrectly (for example, date as "16/8/2022" instead of "16 Aug 2022").

from import-mailbox-to-gmail.

GiacomoDD avatar GiacomoDD commented on April 27, 2024

Thank you @eesheesh for your precious help. Yesterday I finally was able to make everything work, importing all the mbox files into the Gmail accounts. I'm not sure what happened, because I didn't modify anyone of the mbox files. But in the end it worked.
Thanks again for your support!

from import-mailbox-to-gmail.

Related Issues (20)

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.