~sircmpwn/aerc

Swap socksify for unshare v1 REJECTED

David Banham: 1
 Swap socksify for unshare

 3 files changed, 6 insertions(+), 7 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/aerc/patches/5974/mbox | git am -3
Learn more about email & git

[PATCH] Swap socksify for unshare Export this patch

https://todo.sr.ht/~sircmpwn/aerc2/126
---
 README.md             |  1 -
 contrib/html          | 10 +++++-----
 doc/aerc-config.5.scd |  2 +-
 3 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index bdb626e..f3566d5 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,6 @@ change the default aerc.conf if you don't want these):
- python (>=3.7)
- colorama
- w3m
- socksify (part of the dante or dante-utils package)

Then compile aerc:

diff --git a/contrib/html b/contrib/html
index db7808a..daa8870 100755
--- a/contrib/html
+++ b/contrib/html
@@ -1,8 +1,8 @@
#!/bin/sh
# aerc filter which runs w3m using socksify (from the dante package) to prevent
# any phoning home by rendered emails
export SOCKS_SERVER="127.0.0.1:1"
exec socksify w3m \
!/bin/sh
# aerc filter which runs w3m using unshare
# (which revokes network access via Linux namespacing)
# to prevent any phoning home by rendered emails
exec unshare w3m \
	-T text/html \
	-cols $(tput cols) \
	-dump \
diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd
index 84a1c21..b6aa97d 100644
--- a/doc/aerc-config.5.scd
+++ b/doc/aerc-config.5.scd
@@ -99,7 +99,7 @@ text/*=/usr/share/aerc/filters/plaintext.py
```

Note that the filters which are installed with aerc have additional
dependencies, such as Python, colorama, socksify, and w3m.
dependencies, such as Python, colorama and w3m.

# ACCOUNTS.CONF

-- 
2.21.0