1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
|
--- pine/send.c.orig Fri Feb 5 02:17:39 1999
+++ pine/send.c Wed Feb 24 21:36:10 1999
@@ -222,17 +222,17 @@
* Various useful strings
*/
#define INTRPT_PMT \
- "Continue INTERRUPTED composition (answering \"n\" won't erase it)"
+ "繼續編輯上次中斷的文章嗎(回答 \"否\" 將不會刪除它)"
#define PSTPND_PMT \
- "Continue postponed composition (answering \"No\" won't erase it)"
+ "繼續編輯遭暫緩的文章嗎(回答 \"否\" 將不會刪除它)"
#define FORM_PMT \
- "Start composition from Form Letter Folder"
+ "開始自來源信件匣中編輯"
#define PSTPN_FORM_PMT \
- "Save to Postponed or Form letter folder? "
+ "要存至「暫緩」或「來源」信件匣?"
#define POST_PMT \
- "Posted message may go to thousands of readers. Really post"
+ "這篇文章可能被數以千計的讀者閱\讀,確定要刊登嗎"
#define INTR_DEL_PMT \
- "Deleted messages will be removed from folder after use. Proceed"
+ "刪除的信件於 Pine 使用後將被移出檔案匣。確定刪除嗎"
#if defined(DOS) || defined(OS2)
#define POST_PERM_GRIPE \
@@ -277,7 +277,7 @@
#define REDRAFT_PPND 0x01
#define REDRAFT_DEL 0x02
-#define COMPOSE_MAIL_TITLE "COMPOSE MESSAGE"
+#define COMPOSE_MAIL_TITLE "編輯信件"
/*
* Phone home hash controls
@@ -443,14 +443,14 @@
mail_close(stream);
if(ret == 'x'){
q_status_message(SM_ORDER, 0, 3,
- "Composition cancelled");
+ "取消編輯");
return;
}
}
}
else{
q_status_message1(SM_ORDER | SM_DING, 3, 3,
- "Can't open Interrupted mailbox: %s",
+ "無法開被中斷的信箱:%s",
file_path);
if(stream)
mail_close(stream);
@@ -532,14 +532,14 @@
if(ret == 'x'){
q_status_message(SM_ORDER, 0, 3,
- "Composition cancelled");
+ "取消編輯");
done++;
}
}
}
else{
q_status_message1(SM_ORDER | SM_DING, 3, 3,
- "Can't open Postponed mailbox: %s", mbox);
+ "無法開遭暫緩的信箱:%s", mbox);
if(stream)
mail_close(stream);
}
@@ -627,7 +627,7 @@
if(ret == 'x'){
q_status_message(SM_ORDER, 0, 3,
- "Composition cancelled");
+ "取消編輯");
done++;
}
}
@@ -637,7 +637,7 @@
}
else{
q_status_message1(SM_ORDER | SM_DING, 3, 3,
- "Can't open form letter folder: %s", mbox);
+ "無法開啟來源信件匣: %s", mbox);
if(stream)
mail_close(stream);
}
@@ -677,7 +677,7 @@
else{ /* cancel reply */
role = NULL;
close_patterns(&pattern_h);
- cmd_cancelled("Composition");
+ cmd_cancelled("編輯文章");
return;
}
@@ -685,7 +685,7 @@
}
if(role)
- q_status_message1(SM_ORDER, 3, 4, "Composing using role \"%s\"",
+ q_status_message1(SM_ORDER, 3, 4, "以 \"%s\" 的角色編輯",
role->nick);
/*
@@ -830,8 +830,8 @@
*/
if(!stream->nmsgs){
q_status_message1(SM_ORDER | SM_DING, 3, 5,
- "Empty folder! No messages really %s!",
- (REDRAFT_PPND&flags) ? "postponed" : "interrupted");
+ "空的信件匣。沒有信件真正被%s!",
+ (REDRAFT_PPND&flags) ? "暫緩" : "中斷");
return(redraft_cleanup(stream, FALSE, flags));
}
else if(stream == ps_global->mail_stream){
@@ -857,10 +857,10 @@
if(count_flagged(stream, F_DEL)
&& want_to(INTR_DEL_PMT, 'n', 0, NO_HELP, WT_NORM) == 'n'){
q_status_message1(SM_ORDER, 3, 3,
- "Undelete %s, and then continue message",
+ "自%s復原刪除,並繼續該信件",
(REDRAFT_PPND&flags)
- ? "messages to remain postponed"
- : "form letters you want to keep");
+ ? "繼續暫緩的信件中"
+ : "您想保留的信件中");
continue;
}
@@ -871,7 +871,7 @@
mn_give(&msgmap);
if(rv){
- q_status_message(SM_ORDER, 0, 3, "Composition cancelled");
+ q_status_message(SM_ORDER, 0, 3, "取消編輯");
(void) redraft_cleanup(stream, FALSE, flags);
return(0); /* special case */
}
@@ -1145,7 +1145,7 @@
if(b->type == TYPEMULTIPART){
if(strucmp(b->subtype, "mixed")){
q_status_message1(SM_INFO, 3, 4,
- "Converting Multipart/%s to Multipart/Mixed",
+ "轉換 Multipart/%s 至 Multipart/Mixed",
b->subtype);
fs_give((void **)&b->subtype);
b->subtype = cpystr("mixed");
@@ -1153,7 +1153,7 @@
}
else{
q_status_message2(SM_ORDER | SM_DING, 3, 4,
- "Unable to resume type %s/%s message",
+ "無法繼續形態為 %s/%s 的信件",
body_types[b->type], b->subtype);
return(redraft_cleanup(stream, TRUE, flags));
}
@@ -1167,7 +1167,7 @@
set_mime_type_by_grope(&part->body, NULL);
if(part->body.type != TYPETEXT){
q_status_message2(SM_ORDER | SM_DING, 3, 4,
- "Unable to resume; first part is non-text: %s/%s",
+ "無法繼續;第一部份非純文字:%s/%s",
body_types[part->body.type],
part->body.subtype);
return(redraft_cleanup(stream, TRUE, flags));
@@ -1229,9 +1229,9 @@
if(stream == ps_global->mail_stream){
q_status_message2(SM_ORDER, 3, 7,
- "No more %s, returning to \"%s\"",
- (REDRAFT_PPND&flags) ? "postponed messages"
- : "form letters",
+ "沒有%s了,回到 \"%s\"",
+ (REDRAFT_PPND&flags) ? "遭暫緩的信件"
+ : " form letter ",
ps_global->inbox_name);
do_broach_folder(ps_global->inbox_name,
ps_global->context_list);
@@ -1252,7 +1252,7 @@
if(!(rv = mail_delete(stream, mbox)))
q_status_message1(SM_ORDER|SM_DING, 3, 3,
- "Can't delete: %s", mbox);
+ "無法刪除: %s", mbox);
fs_give((void **) &mbox);
success = rv > 0L;
@@ -1275,7 +1275,7 @@
{
if(background_posting(FALSE)){
q_status_message1(SM_ORDER, 0, 3,
- "%s folder unavailable while background posting",
+ "%s 信件匣在背景刊登時無法使用",
type);
return(failure);
}
@@ -1498,7 +1498,7 @@
if(rc == 1 || (rc == 0 && !answer)) {
q_status_message(SM_ORDER, 3, 4,
- "Send cancelled (User-id must be provided before sending)");
+ "取消寄件(寄件前必須提供使用者代號)");
return(0);
}
@@ -1587,7 +1587,7 @@
if(rc == 1 || (rc == 0 && !answer)) {
q_status_message(SM_ORDER, 3, 4,
- "Send cancelled (Host/domain name must be provided before sending)");
+ "取消寄件(寄件前必須提供 主機/領域 名稱)");
return(0);
}
@@ -1643,7 +1643,7 @@
if(rc == 1 || (rc == 0 && answer[0] == '\0')) {
q_status_message(SM_ORDER, 3, 4,
- "Send cancelled (SMTP server must be provided before sending)");
+ "取消寄件(寄件前必須提供 SMTP 伺服器)");
return(0);
}
@@ -1670,31 +1670,31 @@
*/
static struct headerentry he_template[]={
{"From : ", "From", h_composer_from, 10, 0, NULL,
- build_address, NULL, NULL, addr_book_compose, "To AddrBk", NULL,
+ build_address, NULL, NULL, addr_book_compose, "地址簿", NULL,
0, 1, 0, 1, 0, 1, 0, 0, 0, 0, KS_TOADDRBOOK},
{"Reply-To: ", "Reply To", h_composer_reply_to, 10, 0, NULL,
- build_address, NULL, NULL, addr_book_compose, "To AddrBk", NULL,
+ build_address, NULL, NULL, addr_book_compose, "地址簿", NULL,
0, 1, 0, 1, 0, 1, 0, 0, 0, 0, KS_TOADDRBOOK},
{"To : ", "To", h_composer_to, 10, 0, NULL,
- build_address, NULL, NULL, addr_book_compose, "To AddrBk", NULL,
+ build_address, NULL, NULL, addr_book_compose, "地址簿", NULL,
0, 1, 0, 0, 0, 1, 0, 0, 0, 0, KS_TOADDRBOOK},
{"Cc : ", "Cc", h_composer_cc, 10, 0, NULL,
- build_address, NULL, NULL, addr_book_compose, "To AddrBk", NULL,
+ build_address, NULL, NULL, addr_book_compose, "地址簿", NULL,
0, 1, 0, 0, 0, 1, 0, 0, 0, 0, KS_TOADDRBOOK},
{"Bcc : ", "Bcc", h_composer_bcc, 10, 0, NULL,
- build_address, NULL, NULL, addr_book_compose, "To AddrBk", NULL,
+ build_address, NULL, NULL, addr_book_compose, "地址簿", NULL,
0, 1, 0, 1, 0, 1, 0, 0, 0, 0, KS_TOADDRBOOK},
{"Newsgrps: ", "Newsgroups", h_composer_news, 10, 0, NULL,
- news_build, NULL, NULL, news_group_selector, "To NwsGrps", NULL,
+ news_build, NULL, NULL, news_group_selector, "新聞組群列表", NULL,
0, 1, 0, 1, 0, 1, 0, 0, 0, 0, KS_NONE},
{"Fcc : ", "Fcc", h_composer_fcc, 10, 0, NULL,
- NULL, NULL, NULL, folders_for_fcc, "To Fldrs", NULL,
+ NULL, NULL, NULL, folders_for_fcc, "資料匣列表", NULL,
0, 0, 0, 1, 1, 1, 0, 0, 0, 0, KS_NONE},
{"Lcc : ", "Lcc", h_composer_lcc, 10, 0, NULL,
- build_addr_lcc, NULL, NULL, addr_book_compose_lcc,"To AddrBk", NULL,
+ build_addr_lcc, NULL, NULL, addr_book_compose_lcc,"地址簿", NULL,
0, 1, 0, 1, 0, 1, 0, 0, 0, 0, KS_NONE},
{"Attchmnt: ", "Attchmnt", h_composer_attachment, 10, 0, NULL,
- NULL, NULL, NULL, NULL, "To Files", NULL,
+ NULL, NULL, NULL, NULL, "檔案列表", NULL,
0, 1, 1, 0, 0, 1, 0, 0, 0, 0, KS_NONE},
{"Subject : ", "Subject", h_composer_subject, 10, 0, NULL,
valid_subject, NULL, NULL, NULL, NULL, NULL,
@@ -1729,7 +1729,7 @@
static struct headerentry he_custom_addr_templ={
NULL, NULL, h_composer_custom_addr,10, 0, NULL,
- build_address, NULL, NULL, addr_book_compose, "To AddrBk", NULL,
+ build_address, NULL, NULL, addr_book_compose, "地址簿", NULL,
0, 1, 0, 1, 0, 1, 0, 0, 0, 0, KS_TOADDRBOOK};
static struct headerentry he_custom_free_templ={
NULL, NULL, h_composer_custom_free,10, 0, NULL,
@@ -2012,7 +2012,7 @@
default:
q_status_message1(SM_ORDER,3,3,
- "Unknown header type %d in pine_simple_send", (void *)pf->type);
+ "在 pine_simple_send 中出現未知的標頭形態 %d", (void *)pf->type);
break;
}
}
@@ -2022,7 +2022,7 @@
ekey[0].ch = ctrl('T');
ekey[0].rval = 2;
ekey[0].name = "^T";
- ekey[0].label = "To AddrBk";
+ ekey[0].label = "地址簿";
ekey[1].ch = -1;
/*----------------------------------------------------------------------
@@ -2133,12 +2133,12 @@
opts[i].ch = 'y';
opts[i].rval = 'y';
opts[i].name = "Y";
- opts[i++].label = "Yes";
+ opts[i++].label = "是";
opts[i].ch = 'n';
opts[i].rval = 'n';
opts[i].name = "N";
- opts[i++].label = "No";
+ opts[i++].label = "否";
verbose_requested = 0;
if(F_ON(F_VERBOSE_POST, ps_global)){
@@ -2185,7 +2185,7 @@
dsn_show = (dsn_requested & DSN_SHOW);
sprintf(tmp_20k_buf,
"%s%s%s%s%s%sto \"%s\" ? ",
- prmpt_cnf ? prmpt_cnf : "Send message ",
+ prmpt_cnf ? prmpt_cnf : "送信 ",
(verbose_requested || dsn_show)
? "(" : "",
(verbose_requested)
@@ -2323,7 +2323,7 @@
if(!(outgoing->to || outgoing->cc || outgoing->bcc
|| lmc.so)){
q_status_message(SM_ORDER, 3, 5,
- "No recipients specified!");
+ "尚未指定收件人!");
continue;
}
@@ -2348,7 +2348,7 @@
}
else if(result == 0){
q_status_message(SM_ORDER,3,5,
- "Fcc Failed!. No message saved.");
+ "Fcc 失敗!未存入任何信件。");
retval = -1;
dprint(1,
(debugfile, "explicit fcc write failed!\n"));
@@ -2366,7 +2366,7 @@
}
}
else{
- q_status_message(SM_ORDER, 0, 3, "Send cancelled");
+ q_status_message(SM_ORDER, 0, 3, "取消寄件");
retval = -1;
}
}
@@ -2394,7 +2394,7 @@
break;
case 1:
- q_status_message(SM_ORDER, 0, 3, "Send cancelled");
+ q_status_message(SM_ORDER, 0, 3, "取消寄件");
done++;
retval = -1;
break;
@@ -2656,7 +2656,7 @@
break;
case 'x': /* ^C */
- q_status_message(SM_ORDER, 0, 3, "Message cancelled");
+ q_status_message(SM_ORDER, 0, 3, "取消信件");
dprint(4, (debugfile, "=== send: cancelled\n"));
pbuf = save_previous_pbuf;
return;
@@ -3065,7 +3065,7 @@
default:
q_status_message1(SM_ORDER,3,7,
- "Unknown header type %d in pine_send",
+ "在 pine_send 中出現未知的標頭形態 %d",
(void *)pf->type);
break;
}
@@ -3092,7 +3092,7 @@
!(role && role->from))){
if(pf->canedit || !he->rich_header)
q_status_message(SM_ORDER, 3, 3,
- "Not allowed to change header \"From\"");
+ "不允許\改變標頭 \"From\"");
memset(he, 0, (size_t)sizeof(*he));
pf->he = NULL;
@@ -3438,7 +3438,7 @@
? "CANCEL" : "HUH?"));
if((editor_result & COMP_CANCEL)
&& F_ON(F_QUELL_DEAD_LETTER, ps_global)){
- q_status_message(SM_ORDER, 0, 3, "Message cancelled");
+ q_status_message(SM_ORDER, 0, 3, "取消信件");
break;
}
@@ -3462,7 +3462,7 @@
&& (check_addresses(&header) == CA_BAD)){
/*--- Addresses didn't check out---*/
q_status_message(SM_ORDER, 7, 7,
- "Not allowed to postpone message until addresses are qualified");
+ "直到地址合格之前不允許\暫緩信件");
continue;
}
@@ -3521,7 +3521,7 @@
if(!so_puts(lmc.so, tmp_20k_buf)){
if(editor_result & COMP_CANCEL)
q_status_message2(SM_ORDER | SM_DING, 3, 3,
- "Can't write \"%s\": %s",
+ "無法寫入 \"%s\": %s",
folder, error_description(errno));
else
dprint(1, (debugfile, "* * * CAN'T WRITE %s: %s\n",
@@ -3534,7 +3534,7 @@
if(!ps_global->VAR_POSTPONED_FOLDER
|| !ps_global->VAR_POSTPONED_FOLDER[0]){
q_status_message(SM_ORDER | SM_DING, 3, 3,
- "No postponed file defined");
+ "沒有已定義的暫緩檔");
continue;
}
@@ -3564,7 +3564,7 @@
}
else{
strcpy(folder, ps_global->VAR_POSTPONED_FOLDER);
- strcpy(label, "postponed message");
+ strcpy(label, "暫緩信件");
}
lmc.so = open_fcc(folder,&fcc_cntxt, 1, NULL, NULL);
@@ -3706,10 +3706,10 @@
&& ps_global->VAR_FORM_FOLDER[0]
&& !strcmp(folder, ps_global->VAR_FORM_FOLDER))
q_status_message(SM_ORDER, 0, 3,
- "Composition saved to Form Letter Folder. Select Compose to send.");
+ "文章已被存至來源信件匣。選擇「編輯」送出。");
else
q_status_message(SM_ORDER, 0, 3,
- "Composition postponed. Select Compose to resume.");
+ "文章已暫緩寄出。選擇「編輯」繼續編修。");
break; /* postpone went OK, get out of here */
}
@@ -3719,15 +3719,15 @@
if(fcc_result && folder)
lc = last_cmpnt(folder);
- q_status_message3(SM_ORDER, 0, 3, "Message cancelled%s%s%s",
- (lc && *lc) ? " and copied to \"" : "",
+ q_status_message3(SM_ORDER, 0, 3, "取消信件%s%s%s",
+ (lc && *lc) ? " 並複製到 \"" : "",
(lc && *lc) ? lc : "",
(lc && *lc) ? "\" file" : "");
break;
}
else{
q_status_message(SM_ORDER, 0, 4,
- "Continuing composition. Message not postponed or sent");
+ "繼續編輯。信件未被暫緩或送出");
body_start = 1;
continue; /* postpone failed, jump back in to composer */
}
@@ -3743,7 +3743,7 @@
/* --- If posting, confirm with user ----*/
if(outgoing->newsgroups && *outgoing->newsgroups
&& want_to(POST_PMT, 'n', 'n', NO_HELP, WT_NORM) == 'n'){
- q_status_message(SM_ORDER, 0, 3, "Message not posted");
+ q_status_message(SM_ORDER, 0, 3, "文章未被刊登");
dprint(4, (debugfile, "no post, continuing\n"));
continue;
}
@@ -3752,13 +3752,13 @@
|| outgoing->newsgroups)){
if(fcc && fcc[0]){
if(F_OFF(F_AUTO_FCC_ONLY, ps_global) &&
- want_to("No recipients, really copy only to Fcc ",
+ want_to("尚未指定收件者,真的僅複製到 Fcc 中嗎",
'n', 'n', h_send_fcc_only, WT_NORM) != 'y')
continue;
}
else{
q_status_message(SM_ORDER, 3, 4,
- "No recipients specified!");
+ "尚未指定收件者!");
dprint(4, (debugfile, "no recip, continuing\n"));
continue;
}
@@ -3802,8 +3802,8 @@
&& !filter_message_text(sending_filter_requested, outgoing,
*body, &orig_so, &header)){
q_status_message1(SM_ORDER, 3, 3,
- "Problem filtering! Nothing sent%s.",
- fcc ? " or saved to fcc" : "");
+ "過濾器有問題!沒有東西被送出%s。",
+ fcc ? "或存至 fcc" : "");
continue;
}
@@ -3894,7 +3894,7 @@
}
else if(!(result & (P_MAIL_BITS | P_NEWS_BITS))){
q_status_message(SM_ORDER, 3, 5,
- "Fcc Failed!. No message saved.");
+ "Fcc 失敗!未存入任何信件。");
dprint(1, (debugfile,
"explicit fcc write failed!\n"));
result |= P_FCC_LOSE;
@@ -3961,7 +3961,7 @@
}
else if(!(result & (P_MAIL_BITS | P_NEWS_BITS))){
q_status_message(SM_ORDER,3,5,
- "Fcc Failed!. No message saved.");
+ "Fcc 失敗!未存入任何信件。");
dprint(1, (debugfile, "explicit fcc write failed!\n"));
result |= P_FCC_LOSE;
}
@@ -4048,8 +4048,8 @@
postpone_prompt()
{
int ret = 1;
- static ESCKEY_S pstpn_form_opt[] = { {'p', 'p', "P", "Postponed Folder"},
- {'f', 'f', "F", "Form Letter Folder"},
+ static ESCKEY_S pstpn_form_opt[] = { {'p', 'p', "P", "暫緩檔案匣"},
+ {'f', 'f', "F", "來源信件匣"},
{-1, 0, NULL, NULL} };
return(radio_buttons(PSTPN_FORM_PMT, -FOOTER_ROWS(ps_global),
@@ -4201,23 +4201,23 @@
char *buf;
int *goodorbad;
{
- sprintf(buf, "Message %s%s%s%s%s%s%s.",
+ sprintf(buf, "信件 %s%s%s%s%s%s%s.",
(result & P_NEWS_WIN)
- ? "posted"
+ ? "已刊登"
: (result & P_NEWS_LOSE)
- ? "NOT posted" : "",
+ ? "未被刊登" : "",
((result & P_NEWS_BITS) && (result & P_MAIL_BITS)
&& (result & P_FCC_BITS))
? ", "
: ((result & P_NEWS_BITS) && (result & P_MAIL_BITS))
- ? " and " : "",
+ ? " 並 " : "",
(result & P_MAIL_WIN)
- ? "sent"
+ ? "已寄出"
: (result & P_MAIL_LOSE)
- ? "NOT SENT" : "",
+ ? "未寄出" : "",
((result & (P_MAIL_BITS | P_NEWS_BITS)) && (result & P_FCC_BITS))
- ? " and copied to "
- : (result & P_FCC_WIN) ? "ONLY copied to " : "",
+ ? " 並被複製到 "
+ : (result & P_FCC_WIN) ? "僅被複製到 " : "",
(result & P_FCC_WIN) ? "\"" : "",
(result & P_FCC_WIN) ? fcc_name : "",
(result & P_FCC_WIN) ? "\"" : "");
@@ -4256,7 +4256,7 @@
|| (F_ON(F_COMPOSE_REJECTS_UNQUAL, ps_global)
&& a->host[0] == '@'))){
q_status_message2(SM_ORDER, 4, 7,
- "Can't send to address %s: %s",
+ "無法寄至 %s:%s",
a->mailbox,
(a->host[0] == '.')
? a->host
@@ -4266,7 +4266,7 @@
else if(ps_global->restricted
&& !address_is_us(*pf->addr, ps_global)){
q_status_message(SM_ORDER, 3, 3,
- "Restricted demo version of Pine. You may only send mail to yourself");
+ "這是 Pine 的展示版。僅能寄信給自己");
return(CA_BAD);
}
else if(a->mailbox && strucmp(a->mailbox, "mailer-daemon") == 0
@@ -4417,7 +4417,7 @@
if(!(n > 0L && n <= mn_get_total(ps_global->msgmap)
&& (e = mail_fetchstructure(ps_global->mail_stream,
mn_m2raw(ps_global->msgmap, n), &b)))){
- q_status_message(SM_ORDER|SM_DING,3,3,"Error inserting Message");
+ q_status_message(SM_ORDER|SM_DING,3,3,"插入信件時發生錯誤");
flush_status_messages(0);
return(0L);
}
@@ -4432,7 +4432,7 @@
/* actually write message text */
if(!format_message(mn_m2raw(ps_global->msgmap, n), e, b,
FM_NEW_MESS | FM_DISPLAY, f)){
- q_status_message(SM_ORDER|SM_DING,3,3,"Error inserting Message");
+ q_status_message(SM_ORDER|SM_DING,3,3,"插入信件時發生錯誤");
flush_status_messages(0);
rv = 0L;
}
@@ -4545,12 +4545,12 @@
opts[i].ch = 'y';
opts[i].rval = 'y';
opts[i].name = "Y";
- opts[i++].label = "Yes";
+ opts[i++].label = "是";
opts[i].ch = 'n';
opts[i].rval = 'n';
opts[i].name = "N";
- opts[i++].label = "No";
+ opts[i++].label = "否";
if(filters){
/* set global_filter_pointer to desired filter or NULL if none */
@@ -4558,12 +4558,12 @@
opts[i].ch = ctrl('P');
opts[i].rval = 10;
opts[i].name = "^P";
- opts[i++].label = "Prev Filter";
+ opts[i++].label = "前一個過濾器";
opts[i].ch = ctrl('N');
opts[i].rval = 11;
opts[i].name = "^N";
- opts[i++].label = "Next Filter";
+ opts[i++].label = "下一個過濾器";
if(F_ON(F_FIRST_SEND_FILTER_DFLT, ps_global))
filters = filters->next;
@@ -4647,11 +4647,11 @@
lparen = 0;
dsn_show = (dsn_requested & DSN_SHOW);
- strcpy(tmp_20k_buf, "Send message");
- optp = &tmp_20k_buf[12];
+ strcpy(tmp_20k_buf, "送出信件");
+ optp = &tmp_20k_buf[8];
if(F_ON(F_NO_FCC_ATTACH, ps_global) && !lmc.text_only)
- sstrcpy(&optp, " and Fcc Atmts");
+ sstrcpy(&optp, " 與 Fcc 附件?");
if(filters){
if(!lparen){
@@ -4663,12 +4663,12 @@
*optp++ = ' ';
if(filters->filter){
- sstrcpy(&optp, "filtered thru \"");
+ sstrcpy(&optp, "經由過濾器 \"");
sstrcpy(&optp, filters->filter);
*optp++ = '\"';
}
else
- sstrcpy(&optp, "unfiltered");
+ sstrcpy(&optp, "未經過濾");
}
if(verbose_requested || background_requested){
@@ -4682,10 +4682,10 @@
sstrcpy(&optp, "in ");
if(verbose_requested)
- sstrcpy(&optp, "verbose ");
+ sstrcpy(&optp, "顯示細節 ");
if(background_requested)
- sstrcpy(&optp, "background ");
+ sstrcpy(&optp, "背景送出 ");
sstrcpy(&optp, "mode");
}
@@ -4727,11 +4727,11 @@
*p = ' ';
if(verbose_label)
- opts[verbose_label].label = verbose_requested ? "Normal" : "Verbose";
+ opts[verbose_label].label = verbose_requested ? "通常" : "顯示細節";
if(bg_label)
opts[bg_label].label = background_requested
- ? "Foreground" : "Background";
+ ? "前景" : "背景";
if(fcc_label)
opts[fcc_label].label = lmc.text_only ? "Fcc Attchmnts"
@@ -4763,11 +4763,11 @@
break;
}
else if(rv == 'n'){ /* Declined! */
- rstr = "No Message Sent";
+ rstr = "沒有任何信件被送出";
break;
}
else if(rv == 'z'){ /* Cancelled! */
- rstr = "Send Cancelled";
+ rstr = "取消送件";
break;
}
else if(rv == 10){ /* PREVIOUS filter */
@@ -4954,7 +4954,7 @@
if(body->type != TYPEOTHER){
rv = 1;
q_status_message3(SM_ORDER, 0, 3,
- "File %s attached as type %s/%s", file,
+ "檔案 %s 附加為 %s/%s", file,
body_types[body->type],
body->subtype ? body->subtype : rfc822_default_subtype(body->type));
}
@@ -5003,7 +5003,7 @@
(void) close_system_pipe(&syspipe);
if((l = name_file_size(fname)) < 0L){
q_status_message2(SM_ORDER | SM_DING, 3, 4,
- "Error determining size of %s: %s", fname,
+ "決定檔案 %s 大小時發生錯誤:%s", fname,
fnp = error_description(errno));
dprint(1, (debugfile,
"!!! Upload cmd \"%s\" failed for \"%s\": %s\n",
@@ -5015,7 +5015,7 @@
return(l >= 0);
}
else
- q_status_message(SM_ORDER | SM_DING, 3, 4, "Error opening pipe");
+ q_status_message(SM_ORDER | SM_DING, 3, 4, "開啟管線時發生錯誤");
return(0);
}
@@ -5068,7 +5068,7 @@
else if(reply->flags == REPLY_MSGNO)
return;
- we_cancel = busy_alarm(1, "Updating \"Answered\" Flags", NULL, 1);
+ we_cancel = busy_alarm(1, "正在更新 \"已回覆\" 旗標", NULL, 1);
if(!stream){
if(stream = mail_open(NULL, reply->mailbox, OP_SILENT)){
ourstream++;
@@ -5164,7 +5164,7 @@
so_give(&tmpf_so);
}
else
- errstr = "Can't create space for filter temporary file.";
+ errstr = "無法建立過濾器的暫存檔。";
}
else if(include_hdrs){
/*
@@ -5222,13 +5222,13 @@
so_give(&tmpf_so);
}
else
- errstr = "Can't open temp file filter wrote.";
+ errstr = "無法開啟過濾器的暫存檔。";
}
else
- errstr = "Filter command returned error.";
+ errstr = "過濾器指令傳回錯誤值。";
}
else
- errstr = "Can't exec filter text.";
+ errstr = "無法執行過濾器。";
}
else
errstr = gf_filter(cmd, key ? filter_session_key() : NULL,
@@ -5242,7 +5242,7 @@
if(errstr){
int ch;
- fprintf(stdout, "\r\n%s Hit return to continue.", errstr);
+ fprintf(stdout, "\r\n%s 鍵入 return 繼續。", errstr);
fflush(stdout);
while((ch = read_char(300)) != ctrl('M')
&& ch != NO_OP_IDLE)
@@ -5338,7 +5338,7 @@
if(tmp_so)
so_give(&tmp_so);
- q_status_message1(SM_ORDER | SM_DING, 3, 6, "Problem filtering: %s",
+ q_status_message1(SM_ORDER | SM_DING, 3, 6, "過濾過程有問題:%s",
errstr);
dprint(1, (debugfile, "Filter FAILED: %s\n", errstr));
}
@@ -5423,11 +5423,11 @@
loser = pine_simple_send(outgoing, &body, NULL, NULL, NULL, 0);
- q_status_message(SM_ORDER, 0, 3, "Thanks for being counted!");
+ q_status_message(SM_ORDER, 0, 3, "感謝您願意被計算為 Pine 的使用者!");
}
else
q_status_message(SM_ORDER | SM_DING, 3, 4,
- "Problem creating space for message text.");
+ "建立訊息文字空間時發生錯誤。");
mail_free_envelope(&outgoing);
pine_free_body(&body);
@@ -5511,7 +5511,7 @@
if(!pf){
q_status_message(SM_ORDER,3,3,
- "Can't send message. No recipients specified!");
+ "無法送信。尚未指定收信人!");
return(0);
}
@@ -5520,7 +5520,7 @@
gf_filter_init(); /* zero piped byte count, 'n */
send_bytes_to_send = send_body_size(body); /* count body bytes */
ps_global->c_client_error[0] = error_buf[0] = '\0';
- we_cancel = busy_alarm(1, "Sending mail",
+ we_cancel = busy_alarm(1, "正在寄信",
send_bytes_to_send ? sent_percent : NULL, 1);
/* try posting via local "<mta> <-t>" if specified */
@@ -5705,7 +5705,7 @@
struct headerentry *last_he = NULL;
sprintf(error_buf,
- "Mail not sent. Sending error%s%.40s",
+ "信件未被寄出。寄件錯誤%s%.40s",
(sending_stream && sending_stream->reply) ? ": ": ".",
(sending_stream && sending_stream->reply)
? sending_stream->reply : "");
@@ -5778,7 +5778,7 @@
TIME_STAMP("smtp done", 1);
}
else if(!error_mess)
- sprintf(error_mess = error_buf, "Error sending: %.60s",
+ sprintf(error_mess = error_buf, "寄信時發生錯誤:%.60s",
ps_global->c_client_error);
if(verbose_file){
@@ -5786,7 +5786,7 @@
TIME_STAMP("verbose start", 1);
fclose(verbose_send_output);
verbose_send_output = NULL;
- q_status_message(SM_ORDER, 0, 3, "Verbose SMTP output received");
+ q_status_message(SM_ORDER, 0, 3, "收到詳細的 SMTP 輸出訊息");
display_output_file(verbose_file, "Verbose SMTP Interaction",
NULL, DOF_BRIEF);
TIME_STAMP("verbose end", 1);
@@ -5876,12 +5876,12 @@
if(folder_index(fcc, *fcc_cntxt, FI_FOLDER) < 0){
if(ps_global->context_list->next)
sprintf(tmp_20k_buf,
- "Folder \"%.20s\" in <%.30s> doesn't exist. Create",
+ "信件匣 \"%.20s\" 在 <%.30s> 尚不存在。要新建",
strsquish(tmp_20k_buf + 500, fcc, 20),
strsquish(tmp_20k_buf + 1000,(*fcc_cntxt)->nickname,30));
else
sprintf(tmp_20k_buf,
- "Folder \"%s\" doesn't exist. Create",
+ "信件匣 \"%s\" 尚不存在。要新建",
strsquish(tmp_20k_buf + 500, fcc, 40));
if(force || want_to(tmp_20k_buf,'y','n',NO_HELP,WT_NORM) == 'y'){
@@ -5918,7 +5918,7 @@
ok++;
}
else{
- sprintf(tmp_20k_buf,"Folder \"%s\" doesn't exist. Create",
+ sprintf(tmp_20k_buf,"信件匣 \"%s\" 尚不存在。要新建",
strsquish(tmp_20k_buf + 500, fcc, 40));
if(force || want_to(tmp_20k_buf,'y','n',NO_HELP,WT_NORM) == 'y'){
/*
@@ -5952,8 +5952,8 @@
if(ok == 0){
if(ps_global->mm_log_error){
- s1 = err_prefix ? err_prefix : "Fcc Error: ";
- s2 = err_suffix ? err_suffix : " Message NOT sent or copied.";
+ s1 = err_prefix ? err_prefix : "Fcc 錯誤:";
+ s2 = err_suffix ? err_suffix : " 信件沒有被寄出或複製。";
l1 = strlen(s1);
l2 = strlen(s2);
@@ -5971,10 +5971,10 @@
}
else
- errstr = "Fcc creation error. Message NOT sent or copied.";
+ errstr = "建立 Fcc 時發生錯誤。信件沒有被送出或複製。";
}
else
- errstr = "Fcc creation rejected. Message NOT sent or copied.";
+ errstr = "Fcc 之建立遭拒絕。信件沒有被送出或複製。";
q_status_message(SM_ORDER | SM_DING, 3, 3, errstr);
}
@@ -6022,7 +6022,7 @@
if(label && *label){
char msg_buf[80];
- strncat(strcpy(msg_buf, "Writing "), label, 70);
+ strncat(strcpy(msg_buf, "正在寫入 "), label, 70);
we_cancel = busy_alarm(1, msg_buf, NULL, 1);
}
else
@@ -6058,7 +6058,7 @@
we_cancel = 0;
q_status_message1(SM_ORDER | SM_DING, 3, 5,
- "Write to \"%s\" FAILED!!!", fcc);
+ "寫入 \"%s\" 失敗!!!", fcc);
dprint(1, (debugfile, "ERROR appending %s in \"%s\"",
fcc, cntxt ? cntxt->context : "NULL"));
return(0);
@@ -6548,7 +6548,7 @@
if((file_contents = (void *)so_get(FileStar, pa->filename,
READ_ACCESS)) == NULL){
q_status_message2(SM_ORDER | SM_DING, 3, 4,
- "Error \"%s\", couldn't attach file \"%s\"",
+ "錯誤 \"%s\",無法附加檔案 \"%s\"",
error_description(errno), pa->filename);
display_message('x');
continue;
@@ -7083,13 +7083,17 @@
body->subtype = cpystr("octet-stream");
}
- /*
- * Apply maximal encoding regardless of previous
- * setting. This segment's either not text, or is
- * unlikely to be readable with > 30% of the
- * text encoded anyway, so we might as well save space...
- */
- new_encoding = ENCBINARY; /* > 30% 8 bit chars */
+ if(body->type == TYPETEXT)
+ /* Use ENC8BIT rather than ENCBINARY for TEXT */
+ new_encoding = ENC8BIT;
+ else
+ /*
+ * Apply maximal encoding regardless of previous
+ * setting. This segment's either not text, or is
+ * unlikely to be readable with > 30% of the
+ * text encoded anyway, so we might as well save space...
+ */
+ new_encoding = ENCBINARY; /* > 30% 8 bit chars */
}
}
@@ -7260,6 +7264,9 @@
ps_global->VAR_CHAR_SET,
encode_whole_header(field, header));
+ if (!strcmp(field, "Subject"))
+ value = text;
+
if(value && value == text){ /* no encoding was done, have to fold */
int fold_by, len;
char *actual_field;
@@ -7713,7 +7720,7 @@
break;
default:
- q_status_message1(SM_ORDER,3,7,"Unknown header type: %s",pf->name);
+ q_status_message1(SM_ORDER,3,7,"未知的標頭形態:%s",pf->name);
break;
}
}
@@ -8034,7 +8041,8 @@
switch (body->encoding) { /* all else needs filtering */
case ENC8BIT: /* encode 8BIT into QUOTED-PRINTABLE */
- gf_link_filter(gf_8bit_qp, NULL);
+ if(F_OFF(F_ENABLE_8BIT, ps_global)) /* unless 8BIT enabled */
+ gf_link_filter(gf_8bit_qp, NULL);
break;
case ENCBINARY: /* encode binary into BASE64 */
@@ -8048,7 +8056,7 @@
if(encode_error = gf_pipe(gc, l_putc)){ /* shove body part down pipe */
q_status_message1(SM_ORDER | SM_DING, 3, 4,
- "Encoding Error \"%s\"", encode_error);
+ "編碼時發生錯誤 \"%s\"", encode_error);
display_message('x');
}
@@ -8136,7 +8144,7 @@
&& !(so_puts(so, "Content-Transfer-Encoding: ")
&& so_puts(so, body_encodings[(body->encoding==ENCBINARY)
? ENCBASE64
- : (body->encoding == ENC8BIT)
+ : (body->encoding == ENC8BIT && F_OFF(F_ENABLE_8BIT, ps_global))
? ENCQUOTEDPRINTABLE
: (body->encoding <= ENCMAX)
? body->encoding
@@ -8801,7 +8809,7 @@
|| (forbid = pine_header_forbidden(name))){
if(forbid)
q_status_message1(SM_ORDER, 3, 3,
- "Not allowed to change header \"%s\"", name);
+ "不允許\改變標頭 \"%s\"", name);
*t = save;
continue;
@@ -8947,7 +8955,7 @@
if(ps_global->post){
if(gripe)
q_status_message(SM_ORDER|SM_DING, 3, 3,
- "Can't post while posting!");
+ "無法於正在刊登文章時再度刊登!");
return(1);
}
|