diff options
author | rsc <devnull@localhost> | 2006-05-21 18:40:33 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-05-21 18:40:33 +0000 |
commit | 25c823399b92efee49d15f0e78303f70b278dd99 (patch) | |
tree | 94ad8013831a9d239cf2bc5ca5b91d8dfa888206 /src/cmd/upas | |
parent | 82f56ecee2b2c1d03656a8c09a71ae5b9d205dd4 (diff) | |
download | plan9port-25c823399b92efee49d15f0e78303f70b278dd99.tar.gz plan9port-25c823399b92efee49d15f0e78303f70b278dd99.tar.bz2 plan9port-25c823399b92efee49d15f0e78303f70b278dd99.zip |
better spam (Lou Kamenov)
Diffstat (limited to 'src/cmd/upas')
-rw-r--r-- | src/cmd/upas/bayes/hash.c | 2 | ||||
-rw-r--r-- | src/cmd/upas/ned/nedmail.c | 1 | ||||
-rw-r--r-- | src/cmd/upas/nfs/main.c | 10 |
3 files changed, 10 insertions, 3 deletions
diff --git a/src/cmd/upas/bayes/hash.c b/src/cmd/upas/bayes/hash.c index 1d0d0ac0..0d21a55b 100644 --- a/src/cmd/upas/bayes/hash.c +++ b/src/cmd/upas/bayes/hash.c @@ -3,6 +3,8 @@ #include <bio.h> #include "hash.h" +#define mergesort bayesmergesort + /*** * String hash tables. */ diff --git a/src/cmd/upas/ned/nedmail.c b/src/cmd/upas/ned/nedmail.c index 193d8f21..a3a251be 100644 --- a/src/cmd/upas/ned/nedmail.c +++ b/src/cmd/upas/ned/nedmail.c @@ -5,6 +5,7 @@ #include <thread.h> #define system nedsystem +#define rcmd nedrcmd typedef struct Message Message; typedef struct Ctype Ctype; diff --git a/src/cmd/upas/nfs/main.c b/src/cmd/upas/nfs/main.c index aa37d8bd..cd644db8 100644 --- a/src/cmd/upas/nfs/main.c +++ b/src/cmd/upas/nfs/main.c @@ -22,16 +22,17 @@ Imap *imap; void usage(void) { - fprint(2, "usage: mailfs [-t] server\n"); + fprint(2, "usage: mailfs [-DVtx] [-s srvname] server\n"); threadexitsall("usage"); } void threadmain(int argc, char **argv) { - char *server; + char *server, *srvname; int mode; + srvname = "mail"; mode = Unencrypted; ARGBEGIN{ default: @@ -42,6 +43,9 @@ threadmain(int argc, char **argv) case 'V': chattyimap++; break; + case 's': + srvname = EARGF(usage()); + break; case 't': mode = Tls; break; @@ -63,6 +67,6 @@ threadmain(int argc, char **argv) if((imap = imapconnect(server, mode)) == nil) sysfatal("imapconnect: %r"); - threadpostmountsrv(&fs, "mail", nil, 0); + threadpostmountsrv(&fs, srvname, nil, 0); } |