File: feature_sentmode

package info (click to toggle)
ifmail 2.14tx8.10-27
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,912 kB
  • sloc: ansic: 30,327; perl: 4,955; yacc: 838; makefile: 716; sh: 424; cpp: 235; lex: 206; awk: 24
file content (31 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (8)
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
The first character of the argument of the new config option "sentmode"
will be used as the transfert mode in ?lo files ("^" is the default).

--- a/ifgate/ifpack.c
+++ b/ifgate/ifpack.c
@@ -42,6 +42,7 @@ extern char *pkdname(faddr *,char);
 
 extern char *logname;
 extern int fakeoutbound;
+extern char *sentmode;
 
 static int each1(faddr*,char,int,char*);
 static int each2(faddr*,char,int,char*);
@@ -435,7 +436,7 @@ char *pktfn;
 				}
 				if (dosoutbound)
 				{
-					fprintf(fp,"#%s",dosoutbound);
+					fprintf(fp,"%c%s",sentmode[0],dosoutbound);
 					if (*(dosoutbound+
 						strlen(dosoutbound)-1) != '\\')
 						fputc('\\',fp);
@@ -446,7 +447,7 @@ char *pktfn;
 					fputc('\r',fp);
 					fputc('\n',fp);
 				}
-				else fprintf(fp,"#%s\n",arcfn);
+				else fprintf(fp,"%c%s\n",sentmode[0],arcfn);
 				needadd=0;
 			}
 		}