Use abstractions for Downloads and Uploads

This might be a little annoying because by default mutt saves attachments in the directory that it was started from (most likely ~/), and there is no config option that I'm aware of to set a default download location.
 
A user will either need to manually specify a location (like ~/Downloads) when saving, or allow saving to ~/ in the local override.
This commit is contained in:
doublez13 2024-02-02 18:53:34 -07:00 committed by GitHub
parent 25736549c4
commit 84f22ad331
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,6 +13,8 @@ profile mutt @{exec_path} {
include <abstractions/openssl> include <abstractions/openssl>
include <abstractions/ssl_certs> include <abstractions/ssl_certs>
include <abstractions/consoles> include <abstractions/consoles>
include <abstractions/user-download-strict>
include <abstractions/user-read>
network inet dgram, network inet dgram,
network inet6 dgram, network inet6 dgram,
@ -30,15 +32,8 @@ profile mutt @{exec_path} {
owner @{HOME}/.cache/mutt rwk, owner @{HOME}/.cache/mutt rwk,
# Used when saving attachments. Mutt saves attachments in whatever directory
# it's launched from, which is most likely @{HOME}.
owner @{HOME}/* lw,
owner @{HOME}/.mutt*/{,*} w,
owner @{HOME}/Downloads/* lw,
# Used When viewing attachments # Used When viewing attachments
owner /tmp/* lrw, owner /tmp/* lrw,
# Allow uploading attachments from Public
owner @{HOME}/Public/* r,
#Needed to open a mailbox (at least an imap one) #Needed to open a mailbox (at least an imap one)
owner /tmp/.mutt*/ rw, owner /tmp/.mutt*/ rw,