diff --git a/src/sbbs3/smbutil.c b/src/sbbs3/smbutil.c index 5bb87dd730e4639165fa9665e5cf306553e74527..210e73b6b611f57fe3cb8fa8d75e2a459c4ab7e3 100644 --- a/src/sbbs3/smbutil.c +++ b/src/sbbs3/smbutil.c @@ -94,6 +94,7 @@ FILE* statfp; BOOL pause_on_exit=FALSE; BOOL pause_on_error=FALSE; char* beep=""; +long msgtxtmode = GETMSGTXT_ALL|GETMSGTXT_PLAIN; /************************/ /* Program usage/syntax */ @@ -134,6 +135,7 @@ char *usage= " -p = wait for keypress (pause) on exit\n" " -! = wait for keypress (pause) on error\n" " -b = beep on error\n" +" -r = display raw message body text (not MIME-decoded)\n" " -C = continue after some (normally fatal) error conditions\n" " -t<s> = set 'to' user name for imported message\n" " -n<s> = set 'to' netmail address for imported message\n" @@ -1411,7 +1413,7 @@ void readmsgs(ulong start) printf("\n\n"); - if((inbuf=smb_getmsgtxt(&smb,&msg,GETMSGTXT_ALL|GETMSGTXT_PLAIN))!=NULL) { + if((inbuf=smb_getmsgtxt(&smb,&msg, msgtxtmode))!=NULL) { printf("%s",inbuf); free(inbuf); } @@ -1683,6 +1685,9 @@ int main(int argc, char **argv) case '!': pause_on_error=TRUE; break; + case 'r': + msgtxtmode = GETMSGTXT_ALL; + break; case 'b': beep="\a"; break;