Skip to content

Conversation

@apexskier
Copy link

Resolves #2055

Currently, email imports use the received_at parameter, default to time of server import if not provided. The JMAP spec says it should default to:

time of most recent Received header, or time of import on server if none

This updates stalwart to follow the specification.

Resolves stalwartlabs#2055

Currently, email imports use the received_at parameter, default to
time of server import if not provided. The [JMAP spec](https://jmap.io/spec-mail.html#emailimport) says it should default to:

> time of most recent Received header, or time of import on server if none

This fixes
@CLAassistant
Copy link

CLAassistant commented Nov 4, 2025

CLA assistant check
All committers have signed the CLA.

@apexskier apexskier marked this pull request as ready for review November 4, 2025 22:34
},
params.received_at.unwrap_or_else(now),
received_at,
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@mdecimus
Copy link
Member

mdecimus commented Nov 7, 2025

This should be done in the JMAP Import method, not in the ingest functions as it affects the behaviour of the SMTP server too.

@apexskier apexskier changed the title Use latest received header when importing email Use latest received header in JMAP Email/import Nov 7, 2025
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

Successfully merging this pull request may close these issues.

4 participants