Skip to content
Snippets Groups Projects
Commit b8c3a96b authored by rswindell's avatar rswindell
Browse files

Added support for stripping FidoNet Kludge lines from messages created by

external message editors (e.g. DCTedit and ICEedit).
parent bc068756
No related branches found
No related tags found
No related merge requests found
......@@ -376,6 +376,7 @@ typedef enum { /* Values for xtrn_t.event */
#define QUOTEALL (1L<<12) /* Automatically quote all of msg */
#define QUOTENONE (1L<<13) /* Automatically quote none of msg */
#define XTRN_NATIVE (1L<<14) /* Native application */
#define STRIPKLUDGE (1L<<15) /* Strip FTN Kludge lines from msg */
/* Bits in user.qwk */
#define QWK_FILES (1L<<0) /* Include new files list */
......
......@@ -373,12 +373,21 @@ bool sbbs_t::writemsg(char *fname, char *top, char *title, long mode, int subnum
&& cfg.xedit[useron.xedit-1]->misc&QUICKBBS) {
fwrite(crlf,2,1,stream);
i++;
continue; }
continue;
}
/* Expand LF to CRLF? */
if(buf[l]==LF && (!l || buf[l-1]!=CR) && useron.xedit
&& cfg.xedit[useron.xedit-1]->misc&EXPANDLF) {
fwrite(crlf,2,1,stream);
i++;
continue; }
continue;
}
/* Strip FidoNet Kludge Lines? */
if(buf[l]==1 && useron.xedit
&& cfg.xedit[useron.xedit-1]->misc&STRIPKLUDGE) {
while(buf[l]!=LF) l++;
continue;
}
if(!(mode&(WM_EMAIL|WM_NETMAIL))
&& (!l || buf[l-1]==LF)
&& buf[l]=='-' && buf[l+1]=='-' && buf[l+2]=='-'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment