URI:
       tmladmin - scripts - random scripts
  HTML git clone https://git.parazyd.org/scripts
   DIR Log
   DIR Files
   DIR Refs
       ---
       tmladmin (667B)
       ---
            1 #!/bin/sh
            2 
            3 mailman_url="https://mailinglists.dyne.org/cgi-bin/mailman/admin"
            4 
            5 listname="$1"
            6 
            7 if [ "$listname" = "" ]; then
            8         echo "Usage: $(basename "$0") listname"
            9         pass ls ml
           10         exit 1
           11 fi
           12 
           13 pw="$(pass show ml/$listname)"
           14 tmp="$(mktemp)"
           15 
           16 cat <<EOF > "$tmp"
           17 <html>
           18   <head>
           19     <title>Mailman admin for $listname</title>
           20   </head>
           21   <body>
           22     <h1> Go to mailman admin: $listname</h1>
           23     <form method="POST" action="$mailman_url/$listname" name="f">
           24       <input type="password" name="adminpw" value='${pw}' size="30">
           25       <input type="submit" name="admlogin" value="Let me in..." autofocus>
           26     </form>
           27   </body>
           28 </html>
           29 EOF
           30 
           31 surf "$tmp"
           32 
           33 (sleep 10; rm -f "$tmp") &