|
|
1.1 ! root 1: ! 2: the following are the perl programs i use to integrate pgp with mail ! 3: and tin (my newsreader of choice). they seem to work pretty well, but ! 4: they are hacks first & foremost, so you'll have to tweak them to get ! 5: them to work on your system. if you come up with any improvements ! 6: i'd appreciate a copy. other than that, do with 'em what you will. ! 7: ! 8: these are the programs: ! 9: morepgp: a pipe and wrapper for more (or your standard pager) which ! 10: extracts PGP blocks and runs them through PGP. ! 11: mailpgp: a wrapper for vi (or your standard visual editor) which ! 12: gives the user the option of signing & encrypting a message ! 13: when they finish editing it. ! 14: postpgp: another vi wrapper, which only gives the option of signing ! 15: a message & handles environment variables slightly differently ! 16: since tin doesn't have a set of its own. ! 17: ! 18: installing with mail: ! 19: in your .mailrc, set the mail PAGER variable to morepgp, and the ! 20: VISUAL variable to mailpgp. make sure both programs are in your ! 21: path (or their paths are fully specified in the vars) and that the ! 22: #! lines correctly point to perl on your system. ! 23: ! 24: installing with tin (may apply to other newsreaders too, but no guarantees): ! 25: write a shell wrapper for your newsreader that sets the variable ! 26: VISUALBAK from $VISUAL and sets VISUAL to postpgp before calling ! 27: the newsreader. the newsreader will then call postpgp whenever you ! 28: edit a new post, allowing you the opportunity to sign the message ! 29: before sending it. ! 30: ! 31: bugs: ! 32: mailpgp & postpgp only sign/encrypt the -last- item on the ! 33: command line. this isn't normally a problem since i never edit ! 34: more than one file for news or mail. if it is for you, change 'em ! 35: & send me updates. ! 36:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.