Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

My command line script to manage contact messages

Started by Harry 3 days ago · 0 replies · 82 views
3 days 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, 3 weeks ago
3 351 2 days ago
General · by lynbor, 1 week ago
7 385 2 days ago
General · by Old Man Umby, 3 weeks ago
2 256 2 weeks ago
General · by jeremycherfas, 3 weeks ago
5 374 2 weeks ago
General · by Sebastian, 3 weeks ago
1 261 3 weeks ago