Mail formats

Maildir flag sorting plan

Sort and deduplicate filename flags while detecting target-name collisions.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Sort the distinct ASCII flag letters after :2,. Retain custom letters and compare proposed filenames for collisions.

123.host:2,SR becomes 123.host:2,RS; the already sorted second filename stays as supplied.

Limits

Produces a rename plan only; no files are moved. Path components and controls are excluded. Custom flags are retained without guessing their local keyword mapping.