mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

remove-reminder.sh (267B)


      1 #!/bin/bash
      2 
      3 set -x
      4 grep -i '^Message-id' | cut -d ' ' -f2 | while read l;
      5 do
      6   echo "will delete"
      7   ~/bin/find-reminder.sh $l
      8   echo "last chance to abort..."
      9   sleep 2
     10   atrm `~/bin/find-reminder.sh $l | cut -f1`
     11   #TODO remove the files from ~/logs/reminders
     12 done