list-mailbox

Dump inbox email for one user This program is primarily for debugging and testing. It finds the email inbox for the user in the virtual server identified by the --domain flag whose login is set with the --user parameter, and outputs the contents in mbox format. Alternately you can use the --filesonly flag to just have it print all the files containing the user’s mail (typically just one if the system using mbox format, or many if Maildir is in use).

Dump inbox email for one user#

This program is primarily for debugging and testing. It finds the email inbox for the user in the virtual server identified by the --domain flag whose login is set with the --user parameter, and outputs the contents in mbox format. Alternately you can use the --filesonly flag to just have it print all the files containing the user’s mail (typically just one if the system using mbox format, or many if Maildir is in use).

By default the user’s inbox is listed, however you can select any folder owned by the user with the --folder flag followed by either a path or a unique folder ID.

Command line help#

virtualmin list-mailbox --domain domain.name
 --user name
 [--folder name|path]
 [--filesonly]

Source: https://www.virtualmin.com/docs/development/api-programs/list-mailbox/

  • virtualmin, domain, email, mail, mailbox, user, log, command line, debug, list
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...