Array
(
    [0] => Warning
    [1] => Undefined array key "language"
    [2] => /home/whmcsdev/public_repo/wbteampro.major-release/installation/modules/addons/wbteampro/initialize.php
    [3] => 282
)
Array
(
    [0] => Warning
    [1] => Undefined property: stdClass::$state
    [2] => /home/whmcsdev/public_repo/wbavatax.master/installation/modules/addons/wbavatax/hooks.php
    [3] => 942
)
Array
(
    [0] => Deprecated
    [1] => htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
    [2] => /home/whmcsdev/public_repo/wbavatax.master/installation/modules/addons/wbavatax/hooks.php
    [3] => 279
)
Delete Mail from All User Accounts - Teadmistebaas - WHMCS Dev
Dev License: This installation of WHMCS is running under a Development License and is not authorized to be used for production use. Please report any cases of abuse to abuse@whmcs.com

Delete Mail from All User Accounts Prindi

  • 1

If you ever find yourself in a position where you need to quickly delete all messages from the mailboxes of a user account, the FIND command may be useful:

find . -type f -regex ".*\/[0-9]\..*" -exec rm {} \;

Make sure that you first navigate to the appropriate mail folder (e.g. /home/account/mail) before running the command.  The find command will location all messages that match the common mail regex format "mailbox/folder/12345678.xxxxxx" and then pass the line to the RM command.

Kas see vastus oli kasulik?

« Tagasi

Powered by WHMCompleteSolution