From: Emanuel Berg <moasenwood@zoho.eu>
To: ding@gnus.org
Subject: Re: download attachment and do chmod for certain files
Date: Fri, 18 Dec 2020 14:19:59 +0100 [thread overview]
Message-ID: <87sg831cao.fsf@zoho.eu> (raw)
In-Reply-To: <877dphsjdn.fsf@tullinup.koldfront.dk>
Adam Sjøgren wrote:
> P.S. (format "0%o" 420) → 0644 rw--r--r-, (format "0%o" 384) → 0600 rw------
Thanks a lot, this last line saved me a lot of frustration,
couldn't figure out why 644 didn't work and what weird thing
384 was (the default value).
Yes, this works :)
PS. Maybe something to improve in the docstring? It just says
"Set the mode bits of saved attachments to this integer."
and I suppose, since you wrote that, I'm not the only one
to then think of, e.g., 644 for rw--r--r-
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal
next prev parent reply other threads:[~2020-12-18 13:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-15 22:23 Emanuel Berg
2020-12-16 18:00 ` Eric Abrahamsen
2020-12-16 18:08 ` Eric Abrahamsen
2020-12-16 18:20 ` Adam Sjøgren
2020-12-16 18:33 ` Eric Abrahamsen
2020-12-18 13:19 ` Emanuel Berg [this message]
2020-12-18 21:16 ` Emanuel Berg
2020-12-18 21:49 ` Andreas Schwab
2020-12-18 22:36 ` Emanuel Berg
2020-12-18 22:55 ` Jason L Tibbitts III
2020-12-18 22:38 ` Emanuel Berg
2020-12-18 22:47 ` Emanuel Berg
2020-12-21 9:06 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sg831cao.fsf@zoho.eu \
--to=moasenwood@zoho.eu \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).