Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass date with new message #674

Open
leonidiy2000 opened this issue Apr 15, 2024 · 1 comment
Open

Pass date with new message #674

leonidiy2000 opened this issue Apr 15, 2024 · 1 comment

Comments

@leonidiy2000
Copy link

Hi everyone.
Is there a way to pass a date when uploading a new message (except as a metadata field)? I need to pass a certain date from the past, so it is stored on the message object (idate, hdate, rdate are created on the go and don't work for me).
This endpoint https://docs.wildduck.email/api/#operation/getMessage seem to have a 'date' field in the response, which is explained as 'Date string from header', but when I save a message with this header:
{
"key": "date",
"value": "2024-04-14T13:33:08.437"
}
the date field on fetch is still the time of the message being saved.

@louis-lau
Copy link
Member

louis-lau commented Apr 15, 2024

I think the docs here are wrong or outdated. Looking at the code you should just be able to give a date property directly, which sets the header for you.

hdate is the header date, and only "created on the go" unless specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants