How to hide the subject of the Gmail messages in the CubeBackup web console.
Gmail subject is viewable by default
By default, the subject of the backed up Gmail messages can be seen by the administrator of CubeBackup, which makes it easier for the administrator to find out the right messages to restore.
However, for security and privacy reason, you may need to hide the subject of the backed up Gmail messages in CubeBackup web dashboard. CubeBackup allows you to turn off the visibility of the Gmail subject with a configuration setting.
Note: Different organizations may have different privacy policies, so set this option according to your organization's policy.
When the subject was hidden, the subject field of Gmail messages will be shown as the receiver's email address in CubeBackup web console.
Hide the subject of Gmail messages
Log(or SSH) into the backup server.
Open the configuration file config.toml using a text editor.
Note:
Starting with version 4.7, the configuration file is located at <installation directory>/etc/config.toml for fresh installations of CubeBackup. For installations upgraded through the console, or versions prior to 4.7, the configuration file is still located at <installation directory>/bin/config.toml.
On Windows, the installation directory is located at C:\Program Files\CubeBackup4 by default.
On Linux, the installation directory is located at /opt/cubebackup by default.Find the [Web] section and change the value of HideEmailSubject to true. If your config.toml file doesn't contain the HideEmailSubject entry, you will need to create one.
HideEmailSubject = true
The [Web] section should look like this after the modification:
[Web] Bind = ":80" HideEmailBody = true HideEmailSubject = true ...
Restart the CubeBackup service.
On Linux:
sudo /opt/cubebackup/bin/cbsrv restart
On Windows: Open the Command Prompt or Windows PowerShell and run this command as Administrator
"C:\Program Files\CubeBackup4\bin\cbsrv.exe" restart
On Docker:
sudo docker restart <container-name>
Show the subject of Gmail messages
It is also simple to show the subject of backed up Gmail messages:
- Change the value of HideEmailSuject to false in config.toml configuration file.
- Restart the CubeBackup service.