---
title: 'My command line script to manage contact messages'
url: 'https://getgrav.org/forum/general/my-command-line-script-to-manage-contact-messages-t9441'
markdown: 'https://getgrav.org/forum/general/my-command-line-script-to-manage-contact-messages-t9441.md'
date: '2026-06-21'
description: 'Grav saves all the contact form messages in user/data as simple text files that can be managed with the data plugin or just on your file system. Those 2 ways'
---

[General](https://getgrav.org/forum/general)

#  My command line script to manage contact messages 

  Started by Harry 1 month ago · 0 replies · 344 views    

 [1 month ago](https://getgrav.org/forum/general/my-command-line-script-to-manage-contact-messages-t9441#post-41992 "Permalink") 

Grav saves all the contact form messages in user/data as simple text files that can be managed with the data plugin or just on your file system. Those 2 ways involve a lot of repetitive mouse work. And more with multiple sites. I've written a Perl script that lets me pick a site, read the text one at a time, delete, keep or archive to a single file. Then on the the next.

It is specific to my sites, but should work anywhere (with ssh access) by changing the names and paths in the script.

Perl because it should run anywhere and this does not need much of an interface.

[Log in](https://getgrav.org/login?return=%2Fforum%2Fgeneral%2Fmy-command-line-script-to-manage-contact-messages-t9441) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [SSL-Error](https://getgrav.org/forum/general/ssl-error-t9502)    [General](https://getgrav.org/forum/general) · by Hanns Mattes, 3 days ago |  | 0 | 59 | [3 days ago](https://getgrav.org/forum/general/ssl-error-t9502 "by Hanns Mattes") |
| [localhost, Windows, bin/grav server: core upgrade deletes system/router.php, and bin/grav disappears after the server is stopped](https://getgrav.org/forum/general/localhost-windows-bin-grav-server-core-upgrade-deletes-system-router-php-and-bin-grav-disappears-after-the-server-is-stopped-t9495)    [General](https://getgrav.org/forum/general) · by Dima, 1 week ago |  | 1 | 104 | [1 week ago](https://getgrav.org/forum/general/localhost-windows-bin-grav-server-core-upgrade-deletes-system-router-php-and-bin-grav-disappears-after-the-server-is-stopped-t9495 "by pamtbaau") |
| [Proposal to list Commercial Themes + Plugins in GPM. Your thoughts are requested...](https://getgrav.org/forum/general/proposal-to-list-commercial-themes-plugins-in-gpm-your-thoughts-are-requested-t9490)    [General](https://getgrav.org/forum/general) · by pamtbaau, 2 weeks ago |  | 0 | 160 | [2 weeks ago](https://getgrav.org/forum/general/proposal-to-list-commercial-themes-plugins-in-gpm-your-thoughts-are-requested-t9490 "by pamtbaau") |
| [Multi-site health/status monitor for GRAV](https://getgrav.org/forum/general/multi-site-health-status-monitor-for-grav-t9425)    [General](https://getgrav.org/forum/general) · by lynbor, 2 months ago |  | 5 | 678 | [3 weeks ago](https://getgrav.org/forum/general/multi-site-health-status-monitor-for-grav-t9425 "by lynbor") |
| [Unified Login system - you might need to reset your password](https://getgrav.org/forum/general/unified-login-system-you-might-need-to-reset-your-password-t9463)    [General](https://getgrav.org/forum/general) · by Andy Miller, 1 month ago |  | 0 | 394 | [1 month ago](https://getgrav.org/forum/general/unified-login-system-you-might-need-to-reset-your-password-t9463 "by Andy Miller") |
