- bookworm 3.6.1-4+deb12u3
- bookworm-backports 3.8.1-1~bpo12+1
- testing 3.10.1-1
- unstable 3.10.1-1
- experimental 3.10.0~rc2-1
UNEXPUNGE(8) | Cyrus IMAP | UNEXPUNGE(8) |
NAME¶
unexpunge - Cyrus IMAP documentation
Recover messages the user has (accidentally) deleted.
SYNOPSIS¶
unexpunge [ -C config-file ] -l mailbox [ uid... ] unexpunge [ -C config-file ] -t time-interval [ -d ] [ -v ] [ -f flagname ] mailbox unexpunge [ -C config-file ] -a [ -d ] [ -v ] [ -f flagname ] mailbox unexpunge [ -C config-file ] -u [ -d ] [ -v ] [ -f flagname ] mailbox uid...
DESCRIPTION¶
The unexpunge program is used to list or restore messages which have been deleted from a mailbox, but still reside in the Cyrus IMAP mail spool.
This utility is only useful when the server is configured with expunge_mode set to delayed in its configuration file.
unexpunge reads its configuration options out of the imapd.conf(5) file unless specified otherwise by -C.
OPTIONS¶
- -C config-file
- Use the specified configuration file config-file rather than the default imapd.conf(5).
- -l
- List the expunged messages in the specified mailbox which are available for restoration. Optionally, only list the messages in the mailbox matching the UIDs in the space-separated list at the end of the command invocation.
- -t time-interval
- Unexpunge messages which where expunged within the last time-interval seconds. Use one of the trailing modifiers – m (minutes), h (hours), d (days) or w (weeks) – to specify a different time unit.
- -a
- Restore all of the expunged messages in the specified mailbox.
- -u
- Restore only messages matching the UIDs, in a space-separated list at the end of the command invocation, in the specified mailbox.
- -d
- Unset the \Deleted flag on any restored messages.
- -f flagname
- Set the user flag \flagname on the messages restored, making it easier for the user(s) to find the restored messages and operate on them (in a batch).
- -v
- Enable verbose output/logging.
EXAMPLES¶
unexpunge -l user/john@example.org
unexpunge -u user/john@example.org 278787 278788
mbexamine user/john@example.org
unexpunge -u -d user.johnsmith 46908
unexpunge -a user.johnsmit.Trash
unexpunge -a -f Flagged user.johnsmith.Trash
unexpunge -t 24h -d -f Flagged user.johnsmith
unexpunge -t 24h -d -f Flagged user/johnsmith
FILES¶
/etc/imapd.conf
SEE ALSO¶
AUTHOR¶
The Cyrus Team, Nic Bernstein (Onlight), Jeroen van Meeuwen (Kolab Systems)
COPYRIGHT¶
1993–2023, The Cyrus Team
February 13, 2023 | 3.6.1 |