Updates for the external editor joe

This commit is contained in:
Michiel Broek 2004-08-18 15:22:11 +00:00
parent 6674a73133
commit 2921392683
3 changed files with 20 additions and 12 deletions

View File

@ -36,6 +36,8 @@ v0.61.4 11-Aug-2004
delay just like all other execute functions to prevent problems delay just like all other execute functions to prevent problems
on fast machines. on fast machines.
Added extra fflush in quickscan mail. Added extra fflush in quickscan mail.
When calling the external editor, the fromaddress if available
is given to joe.
mbuser: mbuser:
Fixed permissions. Fixed permissions.
@ -48,6 +50,11 @@ v0.61.4 11-Aug-2004
Changed nodes screens to have a separate uplink managers setup Changed nodes screens to have a separate uplink managers setup
screen, and added switches for BBBS uplinks. screen, and added switches for BBBS uplinks.
script:
In the editor script (that calls joe) made a fix for screens
wider then 80 characters. Also fixed the joe path if it should
run in emacs mode. Added FromAddress in the header.
v0.61.3 25-Jul-2004 - 11-Aug-2004 v0.61.3 25-Jul-2004 - 11-Aug-2004

View File

@ -2811,7 +2811,7 @@ int Ext_Edit()
tmpname = calloc(PATH_MAX, sizeof(char)); tmpname = calloc(PATH_MAX, sizeof(char));
sprintf(tmpname, "%s/%s/%s", CFG.bbs_usersdir, exitinfo.Name, "data.msg"); sprintf(tmpname, "%s/%s/data.msg", CFG.bbs_usersdir, exitinfo.Name);
if ((fd = fopen(tmpname, "w")) == NULL) { if ((fd = fopen(tmpname, "w")) == NULL) {
Syslog('+',"EXT_EDIT: Unable to open %s for writing", tmpname); Syslog('+',"EXT_EDIT: Unable to open %s for writing", tmpname);
} else { } else {
@ -2819,6 +2819,7 @@ int Ext_Edit()
fprintf(fd,"AREANUM='%d'\n",iMsgAreaNumber+1); fprintf(fd,"AREANUM='%d'\n",iMsgAreaNumber+1);
fprintf(fd,"AREATYPE='%d'\n",iMsgAreaType); fprintf(fd,"AREATYPE='%d'\n",iMsgAreaType);
fprintf(fd,"MSGFROM='%s'\n",Msg.From); fprintf(fd,"MSGFROM='%s'\n",Msg.From);
fprintf(fd,"MSGFROMADDR='%s'\n",Msg.FromAddress);
fprintf(fd,"MSGTO='%s'\n",Msg.To); fprintf(fd,"MSGTO='%s'\n",Msg.To);
fprintf(fd,"MSGTOADDR='%s'\n",Msg.ToAddress); fprintf(fd,"MSGTOADDR='%s'\n",Msg.ToAddress);
fprintf(fd,"MSGSUBJECT='%s'\n",Msg.Subject); fprintf(fd,"MSGSUBJECT='%s'\n",Msg.Subject);
@ -2827,7 +2828,7 @@ int Ext_Edit()
fclose(fd); fclose(fd);
} }
sprintf(tmpname, "%s/%s/%s", CFG.bbs_usersdir, exitinfo.Name, "edit.msg"); sprintf(tmpname, "%s/%s/edit.msg", CFG.bbs_usersdir, exitinfo.Name);
if ((fd = fopen(tmpname, "w")) == NULL) { if ((fd = fopen(tmpname, "w")) == NULL) {
Syslog('+',"EXT_EDIT: Unable to open %s for writing", tmpname); Syslog('+',"EXT_EDIT: Unable to open %s for writing", tmpname);
} else { } else {

View File

@ -32,7 +32,7 @@ PARAM="~/edit.msg"
# uncomment next line. If user select Emacs keys then this # uncomment next line. If user select Emacs keys then this
# editor was selected. # editor was selected.
if [ "BBSFSEDKEYS" = "1" ]; then EDITOR=/usr/bin/bbsjmacs; fi if [ "BBSFSEDKEYS" = "1" ]; then EDITOR=@joebin@/bbsjmacs; fi
## Setting Language environmment for msg header ## Setting Language environmment for msg header
@ -67,7 +67,7 @@ case $BBSLANGUAGE in
;; ;;
## Dutch ## Dutch
N) N)
LANGAREA='Gebied' LANGAREA='GEBIED'
LANGFROM='Van ' LANGFROM='Van '
LANGTO='Aan ' LANGTO='Aan '
LANGRE='Onderwerp' LANGRE='Onderwerp'
@ -76,9 +76,9 @@ case $BBSLANGUAGE in
## Languages not set defaults to english. ## Languages not set defaults to english.
*) *)
LANGAREA='AREA' LANGAREA='AREA'
LANGFROM='FROM ' LANGFROM='From '
LANGTO='TO ' LANGTO='To '
LANGRE='SUBJECT ' LANGRE='Subject '
;; ;;
esac esac
@ -87,12 +87,12 @@ alarma $TIME $EDITOR &
## Draw header and call editor ## Draw header and call editor
clear clear
echo " echo -e "
$LANGAREA: $AREANUM $AREA $LANGAREA: $AREANUM $AREA
 $LANGFROM: $MSGFROM \n$LANGFROM: $MSGFROM $MSGFROMADDR
 $LANGTO: $MSGTO $MSGTOADDR \n$LANGTO: $MSGTO $MSGTOADDR
 $LANGRE: $MSGSUBJECT \n$LANGRE: $MSGSUBJECT
 " \n"
$EDITOR $PARAM $EDITOR $PARAM
## kill alarm ## kill alarm
killall sleep >/dev/null 2>&1 killall sleep >/dev/null 2>&1