summaryrefslogtreecommitdiff
path: root/mail-filter/tmda/files/tmda-1.0-non-interactive-tty.patch
diff options
context:
space:
mode:
Diffstat (limited to 'mail-filter/tmda/files/tmda-1.0-non-interactive-tty.patch')
-rw-r--r--mail-filter/tmda/files/tmda-1.0-non-interactive-tty.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/mail-filter/tmda/files/tmda-1.0-non-interactive-tty.patch b/mail-filter/tmda/files/tmda-1.0-non-interactive-tty.patch
deleted file mode 100644
index 75440493811b..000000000000
--- a/mail-filter/tmda/files/tmda-1.0-non-interactive-tty.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- a/TMDA/Pending.py 2004-10-11 15:50:13.014474866 -0400
-+++ b/TMDA/Pending.py 2004-10-11 16:06:02.640603837 -0400
-@@ -64,6 +64,7 @@
- self.verbose = verbose
- self.younger = younger
- self.pretend = pretend
-+ self.interactive = 0
-
- self.stdout = sys.stdout
-
-@@ -86,8 +87,9 @@
- self.msgs.extend(line.strip().split())
- self.msgs.remove('-')
- # re-open stdin on the tty
-- sys.stdin.close()
-- sys.stdin = open('/dev/tty', 'r')
-+ if self.interactive:
-+ sys.stdin.close()
-+ sys.stdin = open('/dev/tty', 'r')
-
- if not self.msgs and not wantedstdin:
- cwd = os.getcwd()
-@@ -341,6 +343,8 @@
- younger,
- pretend)
-
-+ self.interactive = 1
-+
-
- def initQueue(self):
- """Additionally initialize the interactive queue."""