Commit fbcbdb83 authored by rswindell's avatar rswindell
Browse files

Add new command-line option:

-r    = display raw message body text (not MIME-decoded)
parent e8eebc0d
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment