summaryrefslogtreecommitdiff
path: root/japanese/pine/files/patch-aa
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1996-04-30 05:59:29 +0000
committerSatoshi Asami <asami@FreeBSD.org>1996-04-30 05:59:29 +0000
commit0ad8957a8e721d448f1b580148947bc887696d75 (patch)
treeed4bf69749ded002d12359ddb223c8c8df2c9c34 /japanese/pine/files/patch-aa
parentPut variables in right order. People, please take a look at the sample (diff)
Japanized pine for reading and writing Japanese mails (obviously!).
Submitted by: max@sfc.wide.ad.jp
Notes
Notes: svn path=/head/; revision=3047
Diffstat (limited to 'japanese/pine/files/patch-aa')
-rw-r--r--japanese/pine/files/patch-aa45
1 files changed, 45 insertions, 0 deletions
diff --git a/japanese/pine/files/patch-aa b/japanese/pine/files/patch-aa
new file mode 100644
index 000000000000..200d7393c348
--- /dev/null
+++ b/japanese/pine/files/patch-aa
@@ -0,0 +1,45 @@
+*** imap/ANSI/c-client/mtest.c.bak Mon Sep 5 05:41:28 1994
+--- imap/ANSI/c-client/mtest.c Mon Nov 20 03:00:21 1995
+***************
+*** 454,461 ****
+
+ void prompt (char *msg,char *txt)
+ {
+ printf ("%s",msg);
+! gets (txt);
+ }
+
+ /* Interfaces to C-client */
+--- 454,465 ----
+
+ void prompt (char *msg,char *txt)
+ {
++ char *s;
+ printf ("%s",msg);
+! *txt = '\0';
+! fgets (txt, MAILTMPLEN, stdin);
+! if (s = strchr(txt, '\n'))
+! *s = '\0';
+ }
+
+ /* Interfaces to C-client */
+***************
+*** 600,606 ****
+ puts (" Msg (end with a line with only a '.'):");
+ body->type = TYPETEXT;
+ *text = '\0';
+! while (gets (line)) {
+ if (line[0] == '.') {
+ if (line[1] == '\0') break;
+ else strcat ((char *) text,".");
+--- 604,613 ----
+ puts (" Msg (end with a line with only a '.'):");
+ body->type = TYPETEXT;
+ *text = '\0';
+! while (fgets (line, sizeof(line), stdin)) {
+! char *s = strchr(line, '\n');
+! if (s)
+! *s = '\0';
+ if (line[0] == '.') {
+ if (line[1] == '\0') break;
+ else strcat ((char *) text,".");