Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

My command line script to manage contact messages

Started by Harry 3 weeks ago · 0 replies · 240 views
3 weeks 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 lynbor, 1 month ago
5 547 5 days ago
General · by Andy Miller, 2 weeks ago
0 237 2 weeks ago
General · by lynbor, 4 weeks ago
7 670 3 weeks ago
General · by Old Man Umby, 1 month ago
2 376 1 month ago
General · by jeremycherfas, 1 month ago
5 498 1 month ago