Die Installation meines Mailstacks auf einem Ubuntu-Notebook ist schnell erledigt (sudo apt install mutt isync msmtp
), und die Konfigurationsdateien können weitgehend übernommen werden, mit einer Ausnahme: Die via snap installierte most important application in an operating system
(sudo apt install snap; sudo snap install firefox
) scheitert mit einer beeindruckenden Menge von Fehlermeldungen daran, HTML-Nachrichten mittels Mailcap (text/html; ~/.mutt/view_attachment %s html
) zu öffnen:
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/cups/doc-root /usr/share/cups/doc-root none bind,ro 0 0): cannot create directory "/usr/share/cups/doc-root": permission denied update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/gimp/2.0/help /usr/share/gimp/2.0/help none bind,ro 0 0): cannot create directory "/usr/share/gimp/2.0": permission denied update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/libreoffice/help /usr/share/libreoffice/help none bind,ro 0 0): cannot create directory "/usr/share/libreoffice/help": permission denied update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/xubuntu-docs /usr/share/xubuntu-docs none bind,ro 0 0): cannot open directory "/var/lib": permission denied /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) Gtk-Message: 09:22:48.907: Failed to load module "canberra-gtk-module" Gtk-Message: 09:22:48.921: Failed to load module "canberra-gtk-module" ATTENTION: default value of option mesa_glthread overridden by environment. ATTENTION: default value of option mesa_glthread overridden by environment. ATTENTION: default value of option mesa_glthread overridden by environment. Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs [2022-10-09T07:22:51Z ERROR glean_core::metrics::ping] Invalid reason code startup for ping background-update ^CExiting due to channel error. Exiting due to channel error. Exiting due to channel error. Exiting due to channel error. Exiting due to channel error. Exiting due to channel error. Press any key to continue... /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) Gtk-Message: 09:24:29.485: Failed to load module "canberra-gtk-module" Gtk-Message: 09:24:29.487: Failed to load module "canberra-gtk-module" ATTENTION: default value of option mesa_glthread overridden by environment. ATTENTION: default value of option mesa_glthread overridden by environment. ATTENTION: default value of option mesa_glthread overridden by environment. Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs [2022-10-09T07:24:31Z ERROR glean_core::metrics::ping] Invalid reason code startup for ping background-update
Der Epiphany-Browser (sudo apt install epiphany-browser
) zeigt HTML-Nachrichten zwar an, ist aber sehr streng mit fehlerhaftem HTML, kann mit Zeichensätzen schlecht umgehen und spielt YouTube-Videos nicht ab. Zum Glück lässt sich Firefox zur Mitarbeit bewegen, wenn der Speicherort für Anhänge im Skript view_attachment
geändert wird (/tmp/mutt_attach
→ /home/jan/mutt_attach
). Ohne weitere Anpassungen funktioniert das Öffnen von Links mit Firefox (via urlview.py
):
#!/usr/bin/python3 import sys import subprocess import re import os os.system('clear') message = sys.stdin.read() urls = re.findall(r'(?:http|www)[^"\'>\s)]+', message) sys.stdin = open('/dev/tty') if len(urls) > 1: for index, url in enumerate(urls): print('{0}: {1}\n'.format(index+1, url)) selected_index = input('Which URL to open? ') selected_index = int(selected_index)-1 else: selected_index = 0 try: selected_url = urls[selected_index] if not selected_url.startswith('http'): selected_url = 'http://' + selected_url return_code = subprocess.call(['firefox', selected_url]) except IndexError: pass
Die Übernahme der Mailarchive aus dem regulären Backup hat den Nachteil, dass sie ohne mbsync-Statusinformationen (.mbsyncstate
, .uidvalidity
) gesichert werden und die jeweils erste Synchronisation nach der Aktualisierung des Mailarchivs (MBP → LTP) mit dem IMAP-Server daher Duplikate erzeugt (die sich allerdings mit der magischen Zeichenfolge T~=;d
rasch entfernen lassen).
Ich lege daher neue rbackup-Profile für die vollständige Synchronisation der Mailarchive an. Next up: Webstack