[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: moderation

From: Alec Kloss <alec.kloss_at_oracle.com>
Date: Fri, 3 Apr 2009 13:01:43 -0500

Using mutt, I have a handy macro I use when looking at the message:

in .muttrc:

        macro pager t ":unset wait_key\n<pipe-message>$HOME/scripts/mailman-accept\n<save-message>=r&d/svn/moderate\n:set wait_key=yes\n" "accept mailman list message"

mailmail-accept script:
#!/bin/sh

while read line ; do
  set -- $line
  case "$1" in
    Reply-To:)
          shift
          reply_to="$*"
      ;;
        From:)
          shift
          from="$*"
          ;;
    Subject:)
          shift
          subject="$*"
      ;;
    "")
          # End of headers
          break
          ;;
  esac
done

echo from is $from
echo reply to is $reply_to
echo subject is $subject

[ -z "$reply_to" ] && reply_to="$from"

mutt -e "unmy_hdr Bcc:" -s "$subject" "$reply_to" << EOF
accept
EOF

I press t and mutt approves the message, saves my approval, and deletes
the moderation request.

-- 
Oracle Confidential Information        
Alec.Kloss_at_oracle.com			Oracle Middleware
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x432B9956

  • application/pgp-signature attachment: stored
Received on 2009-04-03 20:02:40 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.