i need to manage my server's maildir messages.
i need to know how i can efficiently rename individual message files as already [R]ead, or vice versa, preferably using standard bash.
1408429273.V825I1cce0a1M366263.server0:2,S
1408500713.V825I1ccddaaM341812.server0:2,S
1408502356.V825I1ccddf3M195155.server0:2,S
1408502501.V825I1cce048M253486.server0:2,RS
if a file is already marked as [R]ead, i don't want to trip over it again, or worse, rename it wrongly.
Try:
Remove
echo
when confirmed that it's working.More strict:
To rename as not read:
Script: