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:
parent
25736549c4
commit
84f22ad331
1 changed files with 2 additions and 7 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue