#!/bin/sh # A gsubrc for the Gale chat system that archives messages; the idea was that # I'd later add an "agc-reply" command to reply to an archived message. # Instead, I figured out why ginsu was broken on my machine. ;) cachedir="$HOME/.gale/agc" msg="$cachedir/msg$$" cat >"$msg.text" echo "$GALE_FROM" >"$msg.from" echo "$GALE_TO" >"$msg.to" echo -ne '\033[1m' echo "#$$ To: $GALE_TO" echo "[$GALE_TIME_ID_TIME] $GALE_FROM ($GALE_TEXT_MESSAGE_SENDER) $GALE_TEXT_ID_CLASS" echo -ne '\033[0m' fmt -w80 -s "$msg.text"