---
name: "imsort"
section: "1p"
platform: "linux"
package: "im"
version: "1:153-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/imsort/1p"
---

# imsort(1p)

sort mail/news messages

## NAME

imsort - sort mail/news messages

## SYNOPSIS

**imsort** \[OPTIONS\] FOLDER \[MSGS...\]

## DESCRIPTION

The *imsort* command sorts mail/news messages in a folder.

This command is provided by IM (Internet Message).

## OPTIONS

- *-s, --src=FOLDER*

  Set source folder.  Default value is "+inbox". "--src=+xxx" is equivalent to "+xxx".

- *-f, --field=STRING*

  Sort by the specified field.  Default value is "date".

- *-m, --mode=STRING*

  Set sort mode to date, num, text or ml.  Default value is "date".

- *-n, --noharm={on,off}*

  Display the commands but do not actually execute them.

- *-v, --verbose={on,off}*

  Print verbose messages when running.

- *--debug=DEBUG\_OPTION*

  Print debug messages when running.

- *-h, --help*

  Display help message and exit.

- *--version*

  Output version information and exit.

## COPYRIGHT

IM (Internet Message) is copyrighted by IM developing team. You can redistribute it and/or modify it under the modified BSD license.  See the copyright file for more details.
