ref: c6c13cd4a3bb3ecb4d113ec654294cf7be06f913
parent: 119574db78835ec73e048c78b57e04f3ded90ce2
author: sl <sl@x1yg3>
date: Sun Jul 6 18:37:58 EDT 2025
add mailclean
--- a/INDEX
+++ b/INDEX
@@ -31,6 +31,7 @@
hstats - Print simple stats sl want's to know about.
img - upload an image to http://img.stanleylieber.com
joy.gp100 - Configure the Rii GP 100 USB game controller.
+mailclean - Clean up IMAP litter.
n700 - Set preferred X11 mouse acceleration for Lenovo N700 wireless mouse.
nauth - rcpu to or rimport from auth.inri.net
nn - run webcookies/webfs, populate factotum from secstore, perform some binds, run plumber.
--- /dev/null
+++ b/mailclean
@@ -1,0 +1,8 @@
+#!/bin/rc
+# Clean up IMAP litter.
+rm -r /mail/box/$1/'Deleted##Messages'
+rm -r /mail/box/$1/Junk
+rm -r /mail/box/$1/Notes
+rm -r /mail/box/$1/Sent/*
+rm -r /mail/box/$1/'Sent##Messages'
+rm -r /mail/box/$1/Trash
--
⑨