rp

simple email tools
git clone https://git.parazyd.org/rp
Log | Files | Refs | README | LICENSE

rpqueue (253B)


      1 #!/bin/sh
      2 #
      3 # Copy me if you can
      4 # by parazyd
      5 #
      6 
      7 profile="${RPPROFILE:-$HOME/.rp/default}"
      8 
      9 mkdir -p "$profile/tmp/outbox"
     10 
     11 email="$(cat)"
     12 fname="$(echo "$email" | rpheaders Message-ID | tr -d '<>')"
     13 
     14 cat > "$profile/tmp/outbox/$fname" <<EOF
     15 $email
     16 EOF