Comments (4)
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.
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.
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.
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)
- Access Token / Credentials Issue HOT 10
- Lots of 400 errors with no further details HOT 3
- Problem on Mac HOT 19
- Label Creation & Skipping Issue HOT 3
- Import Failed Messages? HOT 5
- import-mailbox-to-gmail.py: error: argument --dir is required HOT 12
- Attachments HOT 11
- Duplicate labels created when importing nested mboxes HOT 6
- oauth2client deprecated HOT 3
- os.walk error HOT 3
- No emails get imported HOT 4
- service = discovery.build error
- Add Dockerfile or instructions HOT 2
- Instructions are out of date or n/a HOT 1
- Issue when execute the commands HOT 1
- C
- Package 'rsa' requires a different Python: 2.7.18 not in '>=3.5, <4'
- Imports Duplicate Messages HOT 3
- NameError: name 'unicode' is not defined HOT 1
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 import-mailbox-to-gmail.