Lines 1-5
Link Here
|
1 |
--- metamail/mailto.c.orig Wed Feb 9 21:30:26 1994 |
1 |
--- metamail/mailto.c.orig 1994-02-10 05:30:26.000000000 +0900 |
2 |
+++ metamail/mailto.c Mon Dec 18 11:46:21 2006 |
2 |
+++ metamail/mailto.c 2012-10-13 08:04:36.000000000 +0900 |
3 |
@@ -37,6 +37,8 @@ |
3 |
@@ -37,6 +37,8 @@ |
4 |
*/ |
4 |
*/ |
5 |
|
5 |
|
Lines 25-30
Link Here
|
25 |
&& strncmp(CharacterSet, "iso-8859-", 9)) { |
25 |
&& strncmp(CharacterSet, "iso-8859-", 9)) { |
26 |
fprintf(stderr, "mailto: Unsupported character set: %s\n", CharacterSet); |
26 |
fprintf(stderr, "mailto: Unsupported character set: %s\n", CharacterSet); |
27 |
exit(-1); |
27 |
exit(-1); |
|
|
28 |
@@ -1072,7 +1074,7 @@ |
29 |
#endif |
30 |
} |
31 |
fprintf(fp, "Message-ID: %s\n", newid()); |
32 |
- if (!FirstPart) return; /* empty body */ |
33 |
+ if (!FirstPart) return(0); /* empty body */ |
34 |
if (FirstPart->next) { |
35 |
char boundary[120]; |
36 |
#ifdef AMIGA |
28 |
@@ -1130,6 +1132,7 @@ |
37 |
@@ -1130,6 +1132,7 @@ |
29 |
if (part->isrich) { |
38 |
if (part->isrich) { |
30 |
if (strcmp(CharacterSet, "us-ascii") |
39 |
if (strcmp(CharacterSet, "us-ascii") |
Lines 41-46
Link Here
|
41 |
|| part->encoding_type_needed != ENC_NONE)) { |
50 |
|| part->encoding_type_needed != ENC_NONE)) { |
42 |
fprintf(fp, "; charset=\"%s\"\n", CharacterSet); |
51 |
fprintf(fp, "; charset=\"%s\"\n", CharacterSet); |
43 |
} else fputs("\n", fp); |
52 |
} else fputs("\n", fp); |
|
|
53 |
@@ -1346,7 +1350,7 @@ |
54 |
} |
55 |
part->isrich = 1; |
56 |
PartEndsWithNewline=1; |
57 |
- return; |
58 |
+ return(0); |
59 |
} |
60 |
InNewLineSequence = 0; |
61 |
if (RightToLeftMode) { |
44 |
@@ -1745,6 +1749,7 @@ |
62 |
@@ -1745,6 +1749,7 @@ |
45 |
} |
63 |
} |
46 |
printf("\n\nEnter your choice as a number from 0 to %d: ", i); |
64 |
printf("\n\nEnter your choice as a number from 0 to %d: ", i); |
Lines 81-86
Link Here
|
81 |
while (s && *s && isspace((unsigned char) *s)) ++s; |
99 |
while (s && *s && isspace((unsigned char) *s)) ++s; |
82 |
if (s && (*s == 'y' || *s == 'Y')) break; |
100 |
if (s && (*s == 'y' || *s == 'Y')) break; |
83 |
continue; |
101 |
continue; |
|
|
102 |
@@ -2109,7 +2118,7 @@ |
103 |
fpout = fopen(FirstPart->filename, "a"); |
104 |
free(CmdBuf); |
105 |
free(CmdBuf2); |
106 |
- return; |
107 |
+ return(0); |
108 |
} |
109 |
lastmp = mp = FirstPart; |
110 |
while (mp) { |
84 |
@@ -2137,6 +2146,7 @@ |
111 |
@@ -2137,6 +2146,7 @@ |
85 |
printf("2: %s\n", CmdBuf); |
112 |
printf("2: %s\n", CmdBuf); |
86 |
printf("\n\nEnter 1 or 2, or 0 to not edit it: "); |
113 |
printf("\n\nEnter 1 or 2, or 0 to not edit it: "); |
Lines 89-91
Link Here
|
89 |
fgets(LineBuf, sizeof(LineBuf), stdin); |
116 |
fgets(LineBuf, sizeof(LineBuf), stdin); |
90 |
ans = atoi(LineBuf); |
117 |
ans = atoi(LineBuf); |
91 |
} else ans = 2; |
118 |
} else ans = 2; |
|
|
119 |
@@ -2221,7 +2231,7 @@ |
120 |
int LineAlloced = 0, LineCount = 0; |
121 |
|
122 |
fp = fopen(fname, "r"); |
123 |
- if (!fp) return; |
124 |
+ if (!fp) return(0); |
125 |
do { |
126 |
LineBuf=NextAliasLine(LineBuf, &LineAlloced, &LineCount, fp, IsAndrew); |
127 |
if (LineCount == 0) continue; |
128 |
@@ -2310,7 +2320,7 @@ |
129 |
if (s != s2) printf("mailto: ignoring bad alias line in init file: %s\n", aliasline); |
130 |
free(s); |
131 |
free(tmpalias); |
132 |
- return; |
133 |
+ return(0); |
134 |
} |
135 |
*s2++ = '\0'; |
136 |
tmpalias->shortname = s; |
137 |
@@ -2364,7 +2374,7 @@ |
138 |
{ |
139 |
char *firstnonascii, *firstascii; |
140 |
|
141 |
- if (!s) return; |
142 |
+ if (!s) return(0); |
143 |
firstnonascii=firstbad(s); |
144 |
if (firstnonascii) { |
145 |
if (!strcmp(CharacterSet, "us-ascii")) { |
146 |
@@ -2454,7 +2464,7 @@ |
147 |
/* if (!lc2strcmp(name, tmpalias->shortname)) { */ |
148 |
*end = savechar; |
149 |
EmitAddresses(fp, tmpalias->longname, hdr); |
150 |
- return; |
151 |
+ return(0); |
152 |
} |
153 |
} |
154 |
*end = savechar; |