diff options
author | John Kohl <jtkohl@mit.edu> | 1988-07-17 08:52:20 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-07-17 08:52:20 +0000 |
commit | 0ac2c1ff38212e704783fe962070221c3d98efb7 (patch) | |
tree | c19d8aba2e8c1de78d4dc5b2d2dffbf70358382f /clients/zwrite | |
parent | 581b4ad1c1f431d688b27d0a996f2ca93d03ac74 (diff) |
add -t flag
Diffstat (limited to 'clients/zwrite')
-rw-r--r-- | clients/zwrite/zwrite.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/clients/zwrite/zwrite.c b/clients/zwrite/zwrite.c index af7d777..650f867 100644 --- a/clients/zwrite/zwrite.c +++ b/clients/zwrite/zwrite.c @@ -41,7 +41,7 @@ main(argc, argv) char *argv[]; { ZNotice_t notice; - int retval, arg, nocheck, nchars, msgsize, filsys; + int retval, arg, nocheck, nchars, msgsize, filsys, tabexpand; char bfr[BUFSIZ], *message, *signature; char classbfr[BUFSIZ], instbfr[BUFSIZ], sigbfr[BUFSIZ]; @@ -59,6 +59,7 @@ main(argc, argv) auth = ZAUTH; verbose = quiet = msgarg = nrecips = nocheck = filsys = 0; + tabexpand = 1; if (class = ZGetVariable("zwrite-class")) { (void) strcpy(classbfr, class); @@ -106,6 +107,9 @@ main(argc, argv) case 'n': nocheck = 1; break; + case 't': + tabexpand = 0; + break; case 'u': inst = URGENT_INSTANCE; break; @@ -230,7 +234,8 @@ main(argc, argv) } notice.z_opcode = ""; - un_tabify(&message, &msgsize); + if (tabexpand) + un_tabify(&message, &msgsize); notice.z_message = message; notice.z_message_len = msgsize; |