* [9fans] nedmail.c
@ 2003-07-29 0:15 boyd
2003-07-29 13:49 ` [9fans] drawterm - connection from linux Erik Jahn
0 siblings, 1 reply; 6+ messages in thread
From: boyd @ 2003-07-29 0:15 UTC (permalink / raw)
To: fixes, 9fans
this includes dan's fix and i've added a function so it pluralises
message/messages correctly. diff follows:
brahma% ape/diff -c /n/sources/plan9/sys/src/cmd/upas/ned nedmail.c
*** /n/sources/plan9/sys/src/cmd/upas/ned/nedmail.c Sun Jun 15 14:52:38 2003
--- nedmail.c Mon Jul 28 20:05:26 2003
***************
*** 123,129 ****
{ "u", 0, ucmd, "u remove deletion mark" },
{ "w", 1, wcmd, "w file store message contents as file" },
{ "x", 0, xcmd, "x exit without flushing deleted messages" },
! { "y", 0, ycmd, "x synchronize with mail box" },
{ "=", 1, eqcmd, "= print current message number" },
{ "|", 1, pipecmd, "|cmd pipe message body to a command" },
{ "||", 1, rpipecmd, "|cmd pipe raw message to a command" },
--- 123,129 ----
{ "u", 0, ucmd, "u remove deletion mark" },
{ "w", 1, wcmd, "w file store message contents as file" },
{ "x", 0, xcmd, "x exit without flushing deleted messages" },
! { "y", 0, ycmd, "y synchronize with mail box" },
{ "=", 1, eqcmd, "= print current message number" },
{ "|", 1, pipecmd, "|cmd pipe message body to a command" },
{ "||", 1, rpipecmd, "|cmd pipe raw message to a command" },
***************
*** 191,196 ****
--- 191,205 ----
noted(NDFLT);
}
+ char *
+ plural(int n)
+ {
+ if (n == 1)
+ return "";
+
+ return "s";
+ }
+
void
main(int argc, char **argv)
{
***************
*** 270,276 ****
n = dir2message(&top, reverse);
if(n < 0)
sysfatal("can't read %s", s_to_c(top.path));
! Bprint(&out, "%d messages\n", n);
}
notify(catchnote);
--- 279,285 ----
n = dir2message(&top, reverse);
if(n < 0)
sysfatal("can't read %s", s_to_c(top.path));
! Bprint(&out, "%d message%s\n", n, plural(n));
}
notify(catchnote);
***************
*** 1152,1158 ****
i = 0;
for(; m != nil; m = m->next)
i++;
! Bprint(&out, "%d messages\n", i);
}
Message*
--- 1161,1167 ----
i = 0;
for(; m != nil; m = m->next)
i++;
! Bprint(&out, "%d message%s\n", i, plural(i));
}
Message*
***************
*** 1488,1494 ****
Bprint(&out, "!1 message deleted\n");
break;
default:
! Bprint(&out, "!%d messages deleted\n", deld);
break;
}
--- 1497,1503 ----
Bprint(&out, "!1 message deleted\n");
break;
default:
! Bprint(&out, "!%d message%s deleted\n", deld, plural(deld));
break;
}
***************
*** 1569,1575 ****
n = dir2message(&top, reverse);
if(n > 0)
! Bprint(&out, "%d new messages\n", n);
return m;
}
--- 1578,1584 ----
n = dir2message(&top, reverse);
if(n > 0)
! Bprint(&out, "%d new message%s\n", n, plural(n));
return m;
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [9fans] drawterm - connection from linux
2003-07-29 0:15 [9fans] nedmail.c boyd
@ 2003-07-29 13:49 ` Erik Jahn
2003-07-29 13:52 ` Sape Mullender
2003-07-29 13:55 ` andrey mirtchovski
0 siblings, 2 replies; 6+ messages in thread
From: Erik Jahn @ 2003-07-29 13:49 UTC (permalink / raw)
To: 9fans; +Cc: fixes
Hello, could you please help me to setup Plan 9 machine to access it from
linux via drawterm ? I have installed yesterday one Plan 9 machine but i
have no possibility to work on that machine all day (although i wish ;-)) so
i need to connect it from my linux workstation on our local network. I've
downloaded drawterm-linux but i don't know how to setup Plan 9 machine and
if there is need to setup on the linux side. When i try it writes: can't
dial tcp!192.168.111.200!17013: connect 192.168.111.200!17013 failed:
Connection refused. I tried to look over the inet but i found just install
under Vmware.
Thank you for your help
E.Jahn
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] drawterm - connection from linux
2003-07-29 13:49 ` [9fans] drawterm - connection from linux Erik Jahn
@ 2003-07-29 13:52 ` Sape Mullender
2003-07-29 13:55 ` andrey mirtchovski
1 sibling, 0 replies; 6+ messages in thread
From: Sape Mullender @ 2003-07-29 13:52 UTC (permalink / raw)
To: 9fans
> Hello, could you please help me to setup Plan 9 machine to access it from
> linux via drawterm ?
You certainly should run aux/listen to be able to connect into your machine
from the outside. Try
service=cpu aux/listen tcp
and then try to drawterm to it.
Sape
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] drawterm - connection from linux
2003-07-29 13:49 ` [9fans] drawterm - connection from linux Erik Jahn
2003-07-29 13:52 ` Sape Mullender
@ 2003-07-29 13:55 ` andrey mirtchovski
1 sibling, 0 replies; 6+ messages in thread
From: andrey mirtchovski @ 2003-07-29 13:55 UTC (permalink / raw)
To: 9fans
Here is your starting point:
http://plan9.bell-labs.com/wiki/plan9/Configuring_a_standalone_CPU_server/index.html
In fact, all the other Wiki pages are quite useful too.
andrey
On Tue, 29 Jul 2003, Erik Jahn wrote:
> Hello, could you please help me to setup Plan 9 machine to access it from
> linux via drawterm ? I have installed yesterday one Plan 9 machine but i
> have no possibility to work on that machine all day (although i wish ;-)) so
> i need to connect it from my linux workstation on our local network. I've
> downloaded drawterm-linux but i don't know how to setup Plan 9 machine and
> if there is need to setup on the linux side. When i try it writes: can't
> dial tcp!192.168.111.200!17013: connect 192.168.111.200!17013 failed:
> Connection refused. I tried to look over the inet but i found just install
> under Vmware.
>
> Thank you for your help
>
> E.Jahn
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] nedmail.c
2003-08-04 21:07 [9fans] nedmail.c boyd
@ 2003-08-05 0:01 ` David Presotto
0 siblings, 0 replies; 6+ messages in thread
From: David Presotto @ 2003-08-05 0:01 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 138 bytes --]
ARRGGGHHHHH! I hate the friggin update command. I've updated twice now
and the local copy still hasn't made it out. I'll just to a cp.
[-- Attachment #2: Type: message/rfc822, Size: 4655 bytes --]
From: boyd@sdgm.net
To: 9fans@cse.psu.edu
Subject: [9fans] nedmail.c
Date: Mon, 4 Aug 2003 17:07:15 -0400
Message-ID: <1450f0a4c5f10e8a355290f54d4f148d@sdgm.net>
doesn't look right to me:
brahma% 9fs sources
!Adding key: dom=outside.plan9.bell-labs.com proto=p9sk1
user[boyd]:
password:
!
brahma% ls -l /n/sources/plan9/sys/src/cmd/upas/ned/nedmail.c
--rw-rw-r-- M 2478 glenda sys 42722 Jun 15 14:52 /n/sources/plan9/sys/src/cmd/upas/ned/nedmail.c
brahma% ape/diff -c /n/sources/plan9/sys/src/cmd/upas/ned/nedmail.c src/upas/ned
*** /n/sources/plan9/sys/src/cmd/upas/ned/nedmail.c Sun Jun 15 14:52:38 2003
--- src/upas/ned/nedmail.c Mon Jul 28 20:05:26 2003
***************
*** 123,129 ****
{ "u", 0, ucmd, "u remove deletion mark" },
{ "w", 1, wcmd, "w file store message contents as file" },
{ "x", 0, xcmd, "x exit without flushing deleted messages" },
! { "y", 0, ycmd, "x synchronize with mail box" },
{ "=", 1, eqcmd, "= print current message number" },
{ "|", 1, pipecmd, "|cmd pipe message body to a command" },
{ "||", 1, rpipecmd, "|cmd pipe raw message to a command" },
--- 123,129 ----
{ "u", 0, ucmd, "u remove deletion mark" },
{ "w", 1, wcmd, "w file store message contents as file" },
{ "x", 0, xcmd, "x exit without flushing deleted messages" },
! { "y", 0, ycmd, "y synchronize with mail box" },
{ "=", 1, eqcmd, "= print current message number" },
{ "|", 1, pipecmd, "|cmd pipe message body to a command" },
{ "||", 1, rpipecmd, "|cmd pipe raw message to a command" },
***************
*** 191,196 ****
--- 191,205 ----
noted(NDFLT);
}
+ char *
+ plural(int n)
+ {
+ if (n == 1)
+ return "";
+
+ return "s";
+ }
+
void
main(int argc, char **argv)
{
***************
*** 270,276 ****
n = dir2message(&top, reverse);
if(n < 0)
sysfatal("can't read %s", s_to_c(top.path));
! Bprint(&out, "%d messages\n", n);
}
notify(catchnote);
--- 279,285 ----
n = dir2message(&top, reverse);
if(n < 0)
sysfatal("can't read %s", s_to_c(top.path));
! Bprint(&out, "%d message%s\n", n, plural(n));
}
notify(catchnote);
***************
*** 1152,1158 ****
i = 0;
for(; m != nil; m = m->next)
i++;
! Bprint(&out, "%d messages\n", i);
}
Message*
--- 1161,1167 ----
i = 0;
for(; m != nil; m = m->next)
i++;
! Bprint(&out, "%d message%s\n", i, plural(i));
}
Message*
***************
*** 1488,1494 ****
Bprint(&out, "!1 message deleted\n");
break;
default:
! Bprint(&out, "!%d messages deleted\n", deld);
break;
}
--- 1497,1503 ----
Bprint(&out, "!1 message deleted\n");
break;
default:
! Bprint(&out, "!%d message%s deleted\n", deld, plural(deld));
break;
}
***************
*** 1569,1575 ****
n = dir2message(&top, reverse);
if(n > 0)
! Bprint(&out, "%d new messages\n", n);
return m;
}
--- 1578,1584 ----
n = dir2message(&top, reverse);
if(n > 0)
! Bprint(&out, "%d new message%s\n", n, plural(n));
return m;
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [9fans] nedmail.c
@ 2003-08-04 21:07 boyd
2003-08-05 0:01 ` David Presotto
0 siblings, 1 reply; 6+ messages in thread
From: boyd @ 2003-08-04 21:07 UTC (permalink / raw)
To: 9fans
doesn't look right to me:
brahma% 9fs sources
!Adding key: dom=outside.plan9.bell-labs.com proto=p9sk1
user[boyd]:
password:
!
brahma% ls -l /n/sources/plan9/sys/src/cmd/upas/ned/nedmail.c
--rw-rw-r-- M 2478 glenda sys 42722 Jun 15 14:52 /n/sources/plan9/sys/src/cmd/upas/ned/nedmail.c
brahma% ape/diff -c /n/sources/plan9/sys/src/cmd/upas/ned/nedmail.c src/upas/ned
*** /n/sources/plan9/sys/src/cmd/upas/ned/nedmail.c Sun Jun 15 14:52:38 2003
--- src/upas/ned/nedmail.c Mon Jul 28 20:05:26 2003
***************
*** 123,129 ****
{ "u", 0, ucmd, "u remove deletion mark" },
{ "w", 1, wcmd, "w file store message contents as file" },
{ "x", 0, xcmd, "x exit without flushing deleted messages" },
! { "y", 0, ycmd, "x synchronize with mail box" },
{ "=", 1, eqcmd, "= print current message number" },
{ "|", 1, pipecmd, "|cmd pipe message body to a command" },
{ "||", 1, rpipecmd, "|cmd pipe raw message to a command" },
--- 123,129 ----
{ "u", 0, ucmd, "u remove deletion mark" },
{ "w", 1, wcmd, "w file store message contents as file" },
{ "x", 0, xcmd, "x exit without flushing deleted messages" },
! { "y", 0, ycmd, "y synchronize with mail box" },
{ "=", 1, eqcmd, "= print current message number" },
{ "|", 1, pipecmd, "|cmd pipe message body to a command" },
{ "||", 1, rpipecmd, "|cmd pipe raw message to a command" },
***************
*** 191,196 ****
--- 191,205 ----
noted(NDFLT);
}
+ char *
+ plural(int n)
+ {
+ if (n == 1)
+ return "";
+
+ return "s";
+ }
+
void
main(int argc, char **argv)
{
***************
*** 270,276 ****
n = dir2message(&top, reverse);
if(n < 0)
sysfatal("can't read %s", s_to_c(top.path));
! Bprint(&out, "%d messages\n", n);
}
notify(catchnote);
--- 279,285 ----
n = dir2message(&top, reverse);
if(n < 0)
sysfatal("can't read %s", s_to_c(top.path));
! Bprint(&out, "%d message%s\n", n, plural(n));
}
notify(catchnote);
***************
*** 1152,1158 ****
i = 0;
for(; m != nil; m = m->next)
i++;
! Bprint(&out, "%d messages\n", i);
}
Message*
--- 1161,1167 ----
i = 0;
for(; m != nil; m = m->next)
i++;
! Bprint(&out, "%d message%s\n", i, plural(i));
}
Message*
***************
*** 1488,1494 ****
Bprint(&out, "!1 message deleted\n");
break;
default:
! Bprint(&out, "!%d messages deleted\n", deld);
break;
}
--- 1497,1503 ----
Bprint(&out, "!1 message deleted\n");
break;
default:
! Bprint(&out, "!%d message%s deleted\n", deld, plural(deld));
break;
}
***************
*** 1569,1575 ****
n = dir2message(&top, reverse);
if(n > 0)
! Bprint(&out, "%d new messages\n", n);
return m;
}
--- 1578,1584 ----
n = dir2message(&top, reverse);
if(n > 0)
! Bprint(&out, "%d new message%s\n", n, plural(n));
return m;
}
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-08-05 0:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-29 0:15 [9fans] nedmail.c boyd
2003-07-29 13:49 ` [9fans] drawterm - connection from linux Erik Jahn
2003-07-29 13:52 ` Sape Mullender
2003-07-29 13:55 ` andrey mirtchovski
2003-08-04 21:07 [9fans] nedmail.c boyd
2003-08-05 0:01 ` David Presotto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).