You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

markallread 227B

12345678910
  1. #!/bin/bash
  2. for i in `ls -1 ~/Maildir/*/*/new/*`
  3. do
  4. mv $i `echo $i | sed -r "s/^(.*)\/new\/(.*)$/\1\/cur\/\2:2,S/"`
  5. done
  6. for i in `ls -1 ~/Maildir/*/*/cur/*:2, 2>/dev/null`
  7. do
  8. mv $i `echo $i | sed -r "s/^(.*)$/\1S/"`
  9. done