Browse Source

Plan 9 from Bell Labs 2008-09-11

David du Colombier 13 years ago
parent
commit
323b381376
4 changed files with 11 additions and 7 deletions
  1. 2 1
      dist/replica/_plan9.db
  2. 2 2
      dist/replica/plan9.db
  3. 2 0
      dist/replica/plan9.log
  4. 5 4
      sys/src/cmd/upas/fs/mbox.c

+ 2 - 1
dist/replica/_plan9.db

@@ -14199,7 +14199,7 @@ sys/src/cmd/upas/fs - 20000000775 sys sys 1196687840 0
 sys/src/cmd/upas/fs/dat.h - 664 sys sys 1143929916 4189
 sys/src/cmd/upas/fs/fs.c - 664 sys sys 1175322795 26929
 sys/src/cmd/upas/fs/imap4.c - 664 sys sys 1204007092 16319
-sys/src/cmd/upas/fs/mbox.c - 664 sys sys 1165967884 27070
+sys/src/cmd/upas/fs/mbox.c - 664 sys sys 1221077270 27203
 sys/src/cmd/upas/fs/mkfile - 664 sys sys 1047490336 321
 sys/src/cmd/upas/fs/plan9.c - 664 sys sys 1175322803 7498
 sys/src/cmd/upas/fs/pop3.c - 664 sys sys 1133988332 13024
@@ -15884,3 +15884,4 @@ usr/glenda/lib/profile - 664 glenda glenda 1105128663 890
 usr/glenda/readme.acme - 664 glenda glenda 1019860628 4753
 usr/glenda/readme.rio - 664 glenda glenda 1019860628 6370
 usr/glenda/tmp - 20000000775 glenda glenda 1020896385 0
+386/bin/upas/fs - 775 sys sys 1221103144 333376

+ 2 - 2
dist/replica/plan9.db

@@ -465,7 +465,7 @@
 386/bin/upas/bayes - 775 sys sys 1209614708 73383
 386/bin/upas/deliver - 775 sys sys 1209614712 99223
 386/bin/upas/filter - 775 sys sys 1209614718 146764
-386/bin/upas/fs - 775 sys sys 1215402275 333355
+386/bin/upas/fs - 775 sys sys 1221103144 333376
 386/bin/upas/isspam - 775 sys sys 1064598349 38
 386/bin/upas/list - 775 sys sys 1209614727 83047
 386/bin/upas/marshal - 775 sys sys 1209614731 132947
@@ -14199,7 +14199,7 @@ sys/src/cmd/upas/fs - 20000000775 sys sys 1196687840 0
 sys/src/cmd/upas/fs/dat.h - 664 sys sys 1143929916 4189
 sys/src/cmd/upas/fs/fs.c - 664 sys sys 1175322795 26929
 sys/src/cmd/upas/fs/imap4.c - 664 sys sys 1204007092 16319
-sys/src/cmd/upas/fs/mbox.c - 664 sys sys 1165967884 27070
+sys/src/cmd/upas/fs/mbox.c - 664 sys sys 1221077270 27203
 sys/src/cmd/upas/fs/mkfile - 664 sys sys 1047490336 321
 sys/src/cmd/upas/fs/plan9.c - 664 sys sys 1175322803 7498
 sys/src/cmd/upas/fs/pop3.c - 664 sys sys 1133988332 13024

+ 2 - 0
dist/replica/plan9.log

@@ -36109,3 +36109,5 @@
 1220677205 5 c sys/src/libc/port/nrand.c - 664 sys sys 1220676342 262
 1220815804 0 c sys/src/libc/port/nrand.c - 664 sys sys 1035832917 191
 1220844603 0 c 386/lib/libc.a - 664 sys sys 1220843761 506328
+1221078605 0 c sys/src/cmd/upas/fs/mbox.c - 664 sys sys 1221077270 27203
+1221103804 0 c 386/bin/upas/fs - 775 sys sys 1221103144 333376

+ 5 - 4
sys/src/cmd/upas/fs/mbox.c

@@ -478,6 +478,7 @@ headerline(char **pp, String *hl)
 	return 1;
 }
 
+/* returns nil iff there are no addressees */
 static String*
 addr822(char *p)
 {
@@ -571,7 +572,7 @@ addr822(char *p)
 	}
 	s_free(s);
 
-	if(n == 0){
+	if(n == 0){		/* no addressees given, just the keyword */
 		s_free(list);
 		return nil;
 	}
@@ -592,7 +593,7 @@ to822(Message *m, Header *h, char *p)
 	s = addr822(p);
 	if (m->to822 == nil)
 		m->to822 = s;
-	else {
+	else if (s != nil) {
 		s_append(m->to822, " ");
 		s_append(m->to822, s_to_c(s));
 		s_free(s);
@@ -608,7 +609,7 @@ cc822(Message *m, Header *h, char *p)
 	s = addr822(p);
 	if (m->cc822 == nil)
 		m->cc822 = s;
-	else {
+	else if (s != nil) {
 		s_append(m->cc822, " ");
 		s_append(m->cc822, s_to_c(s));
 		s_free(s);
@@ -624,7 +625,7 @@ bcc822(Message *m, Header *h, char *p)
 	s = addr822(p);
 	if (m->bcc822 == nil)
 		m->bcc822 = s;
-	else {
+	else if (s != nil) {
 		s_append(m->bcc822, " ");
 		s_append(m->bcc822, s_to_c(s));
 		s_free(s);