xref: /freebsd/contrib/dialog/samples/copifuncs/ifpatch (revision 9a14aa017b21c292740c00ee098195cd46642730)
1--- ifgate/message.c.orig	Mon Jul 24 15:17:47 1995
2+++ ifgate/message.c	Mon Jul 24 15:18:00 1995
3@@ -48,12 +48,26 @@
4 	if (!strcasecmp(msg->key,"X-UUCP-From")) return 0;
5 	if (!strcasecmp(msg->key,"X-Body-Start")) return 0;
6 	if (!strncasecmp(msg->key,"X-FTN-",6)) return 0;
7-	if (!strcasecmp(msg->key,"Path")) return isftnpath(msg->val)?0:1;
8+        if (!strcasecmp(msg->key,"Path"))
9+
10+#ifdef LESS_RFC_KLUDGES
11+		return 0;
12+#else
13+		return isftnpath(msg->val)?0:1;
14+#endif
15+
16 	if (!strcasecmp(msg->key,"Newsgroups")) return newsmode?0:2;
17 	if (!strcasecmp(msg->key,"Xref")) return 0;
18 	if (!strcasecmp(msg->key,"Return-Receipt-To")) return 1;
19 	if (!strcasecmp(msg->key,"Received")) return newsmode?0:2;
20-	if (!strcasecmp(msg->key,"From")) return ftnorigin?0:2;
21+	if (!strcasecmp(msg->key,"From"))
22+
23+#ifdef LESS_RFC_KLUDGES
24+		return 0;
25+#else
26+		return ftnorigin?0:2;
27+#endif
28+
29 	if (!strcasecmp(msg->key,"To"))
30 	{
31 		if (newsmode) return 0;
32@@ -66,7 +80,14 @@
33 	}
34 	if (!strcasecmp(msg->key,"Cc")) return 2;
35 	if (!strcasecmp(msg->key,"Bcc")) return 2;
36-	if (!strcasecmp(msg->key,"Reply-To")) return 2;
37+	if (!strcasecmp(msg->key,"Reply-To"))
38+
39+#ifdef LESS_RFC_KLUDGES
40+		return 0;
41+#else
42+		return 2;
43+#endif
44+
45 	if (!strcasecmp(msg->key,"Lines")) return 0;
46 	if (!strcasecmp(msg->key,"Date")) return 0;
47 	if (!strcasecmp(msg->key,"Subject"))
48@@ -77,8 +98,22 @@
49 	if (!strcasecmp(msg->key,"Organization")) return removeorg?0:1;
50 	if (!strcasecmp(msg->key,"Comment-To")) return 0;
51 	if (!strcasecmp(msg->key,"X-Comment-To")) return 0;
52-	if (!strcasecmp(msg->key,"Keywords")) return 2;
53-	if (!strcasecmp(msg->key,"Summary")) return 2;
54+	if (!strcasecmp(msg->key,"Keywords"))
55+
56+#ifdef LESS_RFC_KLUDGES
57+		return 0;
58+#else
59+		return 2;
60+#endif
61+
62+	if (!strcasecmp(msg->key,"Summary"))
63+
64+#ifdef LESS_RFC_KLUDGES
65+		return 0;
66+#else
67+		return 2;
68+#endif
69+
70 	if (!strcasecmp(msg->key,"MIME-Version")) return removemime?0:1;
71 	if (!strcasecmp(msg->key,"Content-Type")) return removemime?0:1;
72 	if (!strcasecmp(msg->key,"Content-Length")) return removemime?0:1;
73@@ -86,8 +121,26 @@
74 	if (!strcasecmp(msg->key,"Content-Name")) return 2;
75 	if (!strcasecmp(msg->key,"Content-Description")) return 2;
76 	if (!strcasecmp(msg->key,"Message-ID")) return ftnorigin?0:1;
77-	if (!strcasecmp(msg->key,"References")) return removeref?0:1;
78-	if (!strcasecmp(msg->key,"Distribution")) return ftnorigin?0:1;
79+	if (!strcasecmp(msg->key,"References"))
80+
81+#ifdef LESS_RFC_KLUDGES
82+		return 0;
83+#else
84+		return removeref?0:1;
85+#endif
86+
87+	if (!strcasecmp(msg->key,"Distribution"))
88+
89+#ifdef LESS_RFC_KLUDGES
90+		return 0;
91+#else
92+		return ftnorigin?0:1;
93+#endif
94+
95+#ifdef LESS_RFC_KLUDGES
96+	if (!strcasecmp(msg->key,"NNTP-Posting-Host")) return 0;
97+#endif
98+
99 	/*if (!strcasecmp(msg->key,"")) return ;*/
100 	return 1;
101 }
102