File: kill_in_transit

package info (click to toggle)
ifmail 2.14tx8.10-32
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,056 kB
  • sloc: ansic: 30,328; perl: 4,955; yacc: 839; makefile: 716; sh: 424; cpp: 235; lex: 206; awk: 24
file content (16 lines) | stat: -rw-r--r-- 455 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Transit attached files are always killed after having been sent to a remote
system.

--- a/ifgate/attach.c
+++ b/ifgate/attach.c
@@ -108,7 +108,9 @@ char flavor;
 				S(pn),ascfnode(addr,0x1f));
 
 			fseek(flo,0L,SEEK_END);
-			if (i > 0) /* only received files can be killed */
+			if (i == 1) /* transit files must be killed */
+				fprintf(flo,"^");
+			else if (i > 1) /* public files must not be killed */
 			switch (mode)
 			{
 			case 0:	break;