index.dcgi - postreich - Unnamed repository; edit this file 'description' to name the repository. DIR Log DIR Files DIR Refs DIR README --- index.dcgi (1367B) --- 1 #!/bin/sh 2 . ./api/common 3 4 # 5 # |\ /\ 6 # | \/ \/ 7 # |_/\ /\/\ 8 # | \/ / 9 # 10 # 11 # Mailboxes can be setup with a 2048 bit PEM format RSA key. 12 # Simply cr 13 # 14 15 echo 'Welcome to Postreich, a gopher powered mail service. Here you can 16 setup a mailbox and receive mail over the gopher protocol.' 17 echo 18 echo "[1|Send mail|$BASE_DIR/sendmail.dcgi|localhost|70]" 19 echo "[1|Get mail|$BASE_DIR/getmail.dcgi|localhost|70]" 20 21 echo ' 22 23 ..../ _.,, \..... 24 ..| C`-o-o_ |... 25 ....| \ )_/ |..... 26 ...| .=|_|=, ____ |.. 27 ....| / \ \ x \ /|"" | |....... 28 ' 29 30 echo ' 31 This month we are featuring a special promotion of valentines letters.' 32 33 echo 'Setup a mailbox with your handle and a base64 encoded 2048 bit 34 PEM format RSA public key 35 36 Create a mailbox: 37 ...................................................................... 38 #!/bin/sh 39 40 handle=$1 41 pubkey=$2 42 curl "gopher://<HOSTNAME>/7/<BASE_DIR>api/mailbox/create/$handle?" \ 43 $( cat $pubkey \ 44 | base64 \ 45 | tr -d "\\n" ) 46 ...................................................................... 47 ' 48 49 echo 'Message are encryted at REST. We do not guarentee any sort of security 50 or privacy of messages received or stored. However, if you access this service 51 over gophers you can expect your communications to be sent over tls, of course. 52 This is more like a community mailbox.' 53