E-Mail Commands

This section describes e-mail commands.

Deleting Incoming E-Mails in Bulk

Use the command line to delete e-mails that have been received before the specified date, regardless of the destination folder.
You can delete incoming e-mails by specifying the target users.

Command
delete_mails.csp
Parameters
Parameters Required item Description
exec   Deletes the data.
If omitted, the number of e-mails to be deleted displayed. Data are not deleted.
login_name   The input type of this argument is a string (one line).
Specify the login name of the user.
Deletes the incoming e-mails of the specified user.
If omitted, it applied to all users.
before The input type of this argument is a string (one line). Type YYYY-MM-DD.
Specify the date that the data to delete based on.
Deletes e-mails that have been received before the specified date.
max_duration   The input type of this argument is an integer.
Specify the maximum amount of time to perform the deletion process in minutes. If the deletion process continues after the specified period of time, the process ends.
To use this argument, you must use exec.
  • Minimum value: 1
  • Maximum value: 2147483647
help   Displays help for this command.
Execution Example

Assuming the example setting below, the command usage is as follows:

  • Delete data before: May 30, 2011
  • To be deleted: the incoming e-mails of the login name "sato"

On Windows:

.\grn.exe -C -q code\command\delete_mails.csp login_name=sato before=2011-05-30 exec
On Linux:
./grn.cgi -C -q code/command/delete_mails.csp login_name=sato before=2011-05-30 exec