TYPE elmExecutable MATCH tag == 780000; LEGEND Elm Mail command SUPERTYPE Executable CMD OPEN if [ "$RESTTYPE" = "MailFile" ] then for i in $REST do xwsh -name Elm -e $LEADER -f $i done elif [ -n "$REST" ] then launch -m 'To whom would you like to send the file(s)?' -h "cat $REST | elm -s \"$SELECTED\"" -t "> /dev/null" else xwsh -name Elm -e $LEADER fi CMD ALTOPEN launch -m 'To whom would you like to send a message?' -h 'xwsh -name Elm -e /usr/local/bin/elm' CMD DROP if [ "$SELECTEDTYPE" = "MailFile" ] then for i in $SELECTED do xwsh -name Elm -e $TARGET -f $i done else launch -m 'To whom would you like to send the file(s)?' -h "cat $SELECTED | elm -s \"$SELECTED\"" -t "> /dev/null" fi ICON { if (opened) { include("../iconlib/generic.exec.open.fti"); } else { include("../iconlib/generic.exec.closed.fti"); } include("../system/iconlib/MailExecutable.fti"); } TYPE MailBoxExecutable MATCH tag == 0x101a; LEGEND :212:Mailbox SUPERTYPE Executable CMD OPEN $LEADER -L 45 -M 75 -m "xwsh -xrm XWsh\*autoFork:false -name Elm -e /usr/local/bin/elm" CMD ALTOPEN launch -c $LEADER $REST -L 45 -M 75 -m \"xwsh -xrm XWsh\\\*autoFork:false -name Elm -e /usr/local/bin/elm\" BOUNDS -155, -260, 285, 180 ICON { if (opened) { include("../iconlib/generic.exec.open.fti"); include("../system/iconlib/mailbox.open.fti"); } else { include("../iconlib/generic.exec.closed.fti"); include("../system/iconlib/mailbox.closed.fti"); } } TYPE MailFile MATCH ascii && string(0,5) == "From "; LEGEND :310:mail file SUPERTYPE Ascii CMD OPEN for i in $LEADER $REST; do xwsh -name Elm -e elm -f $i; done CMD ALTOPEN $WINEDITOR $LEADER $REST CMD DROP if [ "$SELECTEDTYPE" = "MailFile" ] then cat $SELECTED >> $TARGET else inform "You cannot append a non-mail file to a mail file." fi CMD PRINT routeprint -g -t $LEADERTYPE $LEADER $REST ICON { include("../system/iconlib/MailFile.shadow.fti"); if (opened) { include("../system/iconlib/MailFile.open.fti"); } else { include("../system/iconlib/MailFile.closed.fti"); } }