Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

My command line script to manage contact messages

Started by Harry 2 months ago · 0 replies · 389 views
2 months ago

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.

Suggested topics

Topic Participants Replies Views Activity
General · by Hanns Mattes, 2 weeks ago
0 144 2 weeks ago
General · by Dima, 2 weeks ago
1 157 2 weeks ago
General · by pamtbaau, 3 weeks ago
0 253 3 weeks ago
General · by lynbor, 2 months ago
5 737 1 month ago
General · by Andy Miller, 1 month ago
0 466 1 month ago