Updates for the external editor joe
This commit is contained in:
parent
6674a73133
commit
2921392683
@ -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
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
@ -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 "[2J[1;1H[0m[1;44m
|
echo -e "[2J[1;1H[0m[1;44m
|
||||||
[1;1H[0m[1;44m$LANGAREA: [31m$AREANUM[37m [33m$AREA
|
[1;1H[0m[1;44m$LANGAREA: [31m$AREANUM[37m [33m$AREA
|
||||||
[0;37;40m[A[79C [1;33m$LANGFROM: [32m$MSGFROM[0;37m
|
[0;37;40m[A[79C\n[1;33m$LANGFROM: [32m$MSGFROM [36m$MSGFROMADDR[0;37m
|
||||||
[A[79C [1;33m$LANGTO: [0;32m$MSGTO [36m$MSGTOADDR[37m
|
[A[79C\n[1;33m$LANGTO: [0;32m$MSGTO [36m$MSGTOADDR[37m
|
||||||
[A[79C [1;33m$LANGRE: [0;32m$MSGSUBJECT[37m
|
[A[79C\n[1;33m$LANGRE: [0;32m$MSGSUBJECT[37m
|
||||||
[A[79C [0m"
|
[A[79C\n[0m"
|
||||||
$EDITOR $PARAM
|
$EDITOR $PARAM
|
||||||
## kill alarm
|
## kill alarm
|
||||||
killall sleep >/dev/null 2>&1
|
killall sleep >/dev/null 2>&1
|
||||||
|
Reference in New Issue
Block a user