1 |
commit: 98647e26432c86554baf653ecf58a129fdf0b9ce |
2 |
Author: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 28 22:03:25 2019 +0000 |
4 |
Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 28 22:04:22 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98647e26 |
7 |
|
8 |
net-mail/notmuch: Add missing patch for 0.29.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.16 |
11 |
Signed-off-by: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo.org> |
12 |
|
13 |
...-Use-loopback-IP-address-rather-than-name.patch | 61 ++++++++++++++++++++++ |
14 |
1 file changed, 61 insertions(+) |
15 |
|
16 |
diff --git a/net-mail/notmuch/files/0.29.2-0001-Use-loopback-IP-address-rather-than-name.patch b/net-mail/notmuch/files/0.29.2-0001-Use-loopback-IP-address-rather-than-name.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..e4722469595 |
19 |
--- /dev/null |
20 |
+++ b/net-mail/notmuch/files/0.29.2-0001-Use-loopback-IP-address-rather-than-name.patch |
21 |
@@ -0,0 +1,61 @@ |
22 |
+From 59b5bfb6e2095c62925b31e087571506edae7956 Mon Sep 17 00:00:00 2001 |
23 |
+From: =?UTF-8?q?Amadeusz=20Piotr=20=C5=BBo=C5=82nowski?= |
24 |
+ <aidecoe@×××××××.name> |
25 |
+Date: Sun, 7 Jul 2019 11:33:09 +0100 |
26 |
+Subject: [PATCH] Use loopback IP address rather than name |
27 |
+ |
28 |
+--- |
29 |
+ test/smtp-dummy.c | 8 ++++---- |
30 |
+ test/test-lib.sh | 2 +- |
31 |
+ 2 files changed, 5 insertions(+), 5 deletions(-) |
32 |
+ |
33 |
+diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c |
34 |
+index a7c1fe4f..822a986a 100644 |
35 |
+--- a/test/smtp-dummy.c |
36 |
++++ b/test/smtp-dummy.c |
37 |
+@@ -76,7 +76,7 @@ process_command (FILE *peer, FILE *output, const char *command) |
38 |
+ fprintf (peer, "502 not implemented\r\n"); |
39 |
+ fflush (peer); |
40 |
+ } else if (STRNCMP_LITERAL (command, "HELO ") == 0) { |
41 |
+- fprintf (peer, "250 localhost\r\n"); |
42 |
++ fprintf (peer, "250 127.0.0.1\r\n"); |
43 |
+ fflush (peer); |
44 |
+ } else if (STRNCMP_LITERAL (command, "MAIL FROM:") == 0 || |
45 |
+ STRNCMP_LITERAL (command, "RCPT TO:") == 0) { |
46 |
+@@ -105,7 +105,7 @@ do_smtp_to_file (FILE *peer, FILE *output) |
47 |
+ size_t line_size; |
48 |
+ ssize_t line_len; |
49 |
+ |
50 |
+- fprintf (peer, "220 localhost smtp-dummy\r\n"); |
51 |
++ fprintf (peer, "220 127.0.0.1 smtp-dummy\r\n"); |
52 |
+ fflush (peer); |
53 |
+ |
54 |
+ while ((line_len = getline (&line, &line_size, peer)) != -1) { |
55 |
+@@ -183,9 +183,9 @@ main (int argc, char *argv[]) |
56 |
+ goto DONE; |
57 |
+ } |
58 |
+ |
59 |
+- hostinfo = gethostbyname ("localhost"); |
60 |
++ hostinfo = gethostbyname ("127.0.0.1"); |
61 |
+ if (hostinfo == NULL) { |
62 |
+- fprintf (stderr, "Unknown host: localhost\n"); |
63 |
++ fprintf (stderr, "Unknown host: 127.0.0.1\n"); |
64 |
+ ret = 1; |
65 |
+ goto DONE; |
66 |
+ } |
67 |
+diff --git a/test/test-lib.sh b/test/test-lib.sh |
68 |
+index 616cb674..dd887773 100644 |
69 |
+--- a/test/test-lib.sh |
70 |
++++ b/test/test-lib.sh |
71 |
+@@ -336,7 +336,7 @@ emacs_deliver_message () |
72 |
+ test_emacs \ |
73 |
+ "(let ((message-send-mail-function 'message-smtpmail-send-it) |
74 |
+ (mail-host-address \"example.com\") |
75 |
+- (smtpmail-smtp-server \"localhost\") |
76 |
++ (smtpmail-smtp-server \"127.0.0.1\") |
77 |
+ (smtpmail-smtp-service \"${smtp_dummy_port}\")) |
78 |
+ (notmuch-mua-mail) |
79 |
+ (message-goto-to) |
80 |
+-- |
81 |
+2.19.2 |
82 |
+ |