Skip to content

Conversation

@lucaforni
Copy link

Questa PR replica la PR originale: postalserver#3446

Autore originale: @amirhasanzadehpy
Branch originale: feature/server-priority-queue
Repository originale: QueraTeam/postal


This introduces a server-level priority system to allow for more granular control over the message queue. By assigning a numerical priority to each mail server (with a higher number indicating higher priority), administrators can ensure that time-sensitive transactional emails are processed ahead of bulk newsletters or other less critical mail. This change modifies the message dequeuing logic to sort by server priority before the message ID, ensuring that all high-priority messages are sent first, while maintaining a fair first-in, first-out order for messages of the same priority. The feature is implemented with a default priority of 0 for all existing and new servers, making it a non-disruptive change that can be optionally configured after deployment.

amirhasanzadehpy and others added 2 commits September 22, 2025 16:12
…priority-queue

Signed-off-by: Luca Forni <l.forni@modalsource.com>
@lucaforni lucaforni merged commit e6a82b8 into main-modalsource Nov 5, 2025
1 of 2 checks passed
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.

2 participants