Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"But this one goes to eleven." -- Nigel Tufnel


computers / comp.mail.mutt / Re: Can I set a separate default save folder for attachments

SubjectAuthor
* Can I set a separate default save folder for attachmentscjsmall
`* Re: Can I set a separate default save folder for attachmentsTavis Ormandy
 `* Re: Can I set a separate default save folder for attachmentsTavis Ormandy
  `* Re: Can I set a separate default save folder for attachmentscjsmall
   `* Re: Can I set a separate default save folder for attachmentsRich
    `- Re: Can I set a separate default save folder for attachmentscjsmall

1
Can I set a separate default save folder for attachments

<2d7daa28-4810-4d8a-837e-950c98b94f9an@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28&group=comp.mail.mutt#28

  copy link   Newsgroups: comp.mail.mutt
X-Received: by 2002:ac8:5417:: with SMTP id b23mr323786qtq.140.1630615842574;
Thu, 02 Sep 2021 13:50:42 -0700 (PDT)
X-Received: by 2002:a05:6830:91:: with SMTP id a17mr110714oto.189.1630615842302;
Thu, 02 Sep 2021 13:50:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.mutt
Date: Thu, 2 Sep 2021 13:50:42 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2601:600:9880:77c0:e23f:49ff:fee8:1a31;
posting-account=HkkpOQkAAADsR9HpuB7NpuJa7KNw-XVw
NNTP-Posting-Host: 2601:600:9880:77c0:e23f:49ff:fee8:1a31
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2d7daa28-4810-4d8a-837e-950c98b94f9an@googlegroups.com>
Subject: Can I set a separate default save folder for attachments
From: jefferys...@gmail.com (cjsmall)
Injection-Date: Thu, 02 Sep 2021 20:50:42 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 13
 by: cjsmall - Thu, 2 Sep 2021 20:50 UTC

Mutt 1.13.2
Xubuntu 20.04

In my .muttrc file I have "set folder=~/lib/Mail" and all my saved mail resides under this location. I was wondering if there is a setting that would apply separately to attachments. I almost always want to save attachments in "~/Downloads" and have to manually add this path to the save line each time.

Alternately, maybe there is a way to make a single key alias for "~/Downloads" just as "=" or '+' substitutes for the folder string.

Not a big problem, but I wanted to check whether I was missing something obvious. Thanks.

Re: Can I set a separate default save folder for attachments

<ipdg5jFb8etU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29&group=comp.mail.mutt#29

  copy link   Newsgroups: comp.mail.mutt
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: tav...@gmail.com (Tavis Ormandy)
Newsgroups: comp.mail.mutt
Subject: Re: Can I set a separate default save folder for attachments
Date: 3 Sep 2021 02:38:43 GMT
Lines: 18
Message-ID: <ipdg5jFb8etU1@mid.individual.net>
References: <2d7daa28-4810-4d8a-837e-950c98b94f9an@googlegroups.com>
X-Trace: individual.net l0rKRlNppLD3ZW49cqXdFwtf+WKZsiLzYxiPsoFR39OPg543CR
Cancel-Lock: sha1:khF0cY3H+E9kGOprxtqfx70Lbzc=
User-Agent: slrn/1.0.3 (Linux)
 by: Tavis Ormandy - Fri, 3 Sep 2021 02:38 UTC

On 2021-09-02, cjsmall wrote:
> Alternately, maybe there is a way to make a single key alias for "~/Downloads" just as "=" or '+' substitutes for the folder string.
>
> Not a big problem, but I wanted to check whether I was missing something obvious. Thanks.

Hmm, I guess I would just write a macro like this:

macro attach s "<save-entry>~/Downloads/"

Does that solve it?

Tavis.

--
_o) $ lynx lock.cmpxchg8b.com
/\\ _o) _o) $ finger taviso@sdf.org
_\_V _( ) _( ) @taviso

Re: Can I set a separate default save folder for attachments

<ipdgnnFb8etU2@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30&group=comp.mail.mutt#30

  copy link   Newsgroups: comp.mail.mutt
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: tav...@gmail.com (Tavis Ormandy)
Newsgroups: comp.mail.mutt
Subject: Re: Can I set a separate default save folder for attachments
Date: 3 Sep 2021 02:48:23 GMT
Lines: 23
Message-ID: <ipdgnnFb8etU2@mid.individual.net>
References: <2d7daa28-4810-4d8a-837e-950c98b94f9an@googlegroups.com>
<ipdg5jFb8etU1@mid.individual.net>
X-Trace: individual.net sjfz40suPiY3+VaSsp30rwnlCPyQZI4OD4Cfush50XtR8tBheF
Cancel-Lock: sha1:ac8TPwfReiA0ZaYSyEiWj7GTl+I=
User-Agent: slrn/1.0.3 (Linux)
 by: Tavis Ormandy - Fri, 3 Sep 2021 02:48 UTC

On 2021-09-03, Tavis Ormandy wrote:
> On 2021-09-02, cjsmall wrote:
>> Alternately, maybe there is a way to make a single key alias for "~/Downloads" just as "=" or '+' substitutes for the folder string.
>>
>> Not a big problem, but I wanted to check whether I was missing something obvious. Thanks.
>
> Hmm, I guess I would just write a macro like this:
>
> macro attach s "<save-entry>~/Downloads/"
>
> Does that solve it?
>

I guess this is better, so as not to overwrite the filename:

macro attach s "<save-entry><Home>~/Downloads/<End>"

Tavis.

--
_o) $ lynx lock.cmpxchg8b.com
/\\ _o) _o) $ finger taviso@sdf.org
_\_V _( ) _( ) @taviso

Re: Can I set a separate default save folder for attachments

<3175c2af-4d8d-4f76-8297-a871f0ec89ban@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=31&group=comp.mail.mutt#31

  copy link   Newsgroups: comp.mail.mutt
X-Received: by 2002:a37:b4d:: with SMTP id 74mr1347763qkl.92.1630638613066;
Thu, 02 Sep 2021 20:10:13 -0700 (PDT)
X-Received: by 2002:a05:6808:1442:: with SMTP id x2mr4439660oiv.162.1630638612767;
Thu, 02 Sep 2021 20:10:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.mutt
Date: Thu, 2 Sep 2021 20:10:12 -0700 (PDT)
In-Reply-To: <ipdgnnFb8etU2@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:600:9880:77c0:e23f:49ff:fee8:1a31;
posting-account=HkkpOQkAAADsR9HpuB7NpuJa7KNw-XVw
NNTP-Posting-Host: 2601:600:9880:77c0:e23f:49ff:fee8:1a31
References: <2d7daa28-4810-4d8a-837e-950c98b94f9an@googlegroups.com>
<ipdg5jFb8etU1@mid.individual.net> <ipdgnnFb8etU2@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3175c2af-4d8d-4f76-8297-a871f0ec89ban@googlegroups.com>
Subject: Re: Can I set a separate default save folder for attachments
From: jefferys...@gmail.com (cjsmall)
Injection-Date: Fri, 03 Sep 2021 03:10:13 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 12
 by: cjsmall - Fri, 3 Sep 2021 03:10 UTC

On Thursday, September 2, 2021 at 7:48:25 PM UTC-7, Tavis Ormandy wrote:
> > Hmm, I guess I would just write a macro like this:
> > [...]
> > macro attach s "<save-entry>~/Downloads/"
> >
> I guess this is better, so as not to overwrite the filename:
>
> macro attach s "<save-entry><Home>~/Downloads/<End>"

Tavis: Thanks for the simple solution. It works! Regarding the <Home> and <End>, I see that they cause the attachment name to be inserted on the save line, but I really don't understand why or how. If you can enlighten me as to what is happening here, I'd appreciate it. Regards.

Re: Can I set a separate default save folder for attachments

<sgs552$om9$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=32&group=comp.mail.mutt#32

  copy link   Newsgroups: comp.mail.mutt
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ric...@example.invalid (Rich)
Newsgroups: comp.mail.mutt
Subject: Re: Can I set a separate default save folder for attachments
Date: Fri, 3 Sep 2021 03:34:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <sgs552$om9$1@dont-email.me>
References: <2d7daa28-4810-4d8a-837e-950c98b94f9an@googlegroups.com> <ipdg5jFb8etU1@mid.individual.net> <ipdgnnFb8etU2@mid.individual.net> <3175c2af-4d8d-4f76-8297-a871f0ec89ban@googlegroups.com>
Injection-Date: Fri, 3 Sep 2021 03:34:58 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b4c52a75b97c9da8807410dda4c127f9";
logging-data="25289"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LOVQ1Iw4CijWPKJpEIFbO"
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/3.10.17 (x86_64))
Cancel-Lock: sha1:k6tJ0Xnw2rkmoZsNzMMFcud/kZQ=
 by: Rich - Fri, 3 Sep 2021 03:34 UTC

cjsmall <jefferysmall@gmail.com> wrote:
> On Thursday, September 2, 2021 at 7:48:25 PM UTC-7, Tavis Ormandy wrote:
>> > Hmm, I guess I would just write a macro like this:
>> > [...]
>> > macro attach s "<save-entry>~/Downloads/"
>> >
>> I guess this is better, so as not to overwrite the filename:
>>
>> macro attach s "<save-entry><Home>~/Downloads/<End>"
>
> Tavis: Thanks for the simple solution. It works! Regarding the
> <Home> and <End>, I see that they cause the attachment name to be
> inserted on the save line, but I really don't understand why or how.
> If you can enlighten me as to what is happening here, I'd appreciate
> it. Regards.

They don't. Mutt inserts the attachment name automatically. <Home>
simply moves the insertion cursor to the start of the name, then
"~/Downloads/" is entered as if you had typed those characters, then
<End> moves the insertion cursor back to the very end of the filename
field.

Re: Can I set a separate default save folder for attachments

<30fc224b-e0c0-4f2e-9fed-2e00ce4912c2n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=33&group=comp.mail.mutt#33

  copy link   Newsgroups: comp.mail.mutt
X-Received: by 2002:ac8:7b52:: with SMTP id m18mr4524302qtu.128.1630683789997;
Fri, 03 Sep 2021 08:43:09 -0700 (PDT)
X-Received: by 2002:a4a:6f4a:: with SMTP id i10mr3586976oof.64.1630683789674;
Fri, 03 Sep 2021 08:43:09 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.mutt
Date: Fri, 3 Sep 2021 08:43:09 -0700 (PDT)
In-Reply-To: <sgs552$om9$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:600:9880:77c0:e23f:49ff:fee8:1a31;
posting-account=HkkpOQkAAADsR9HpuB7NpuJa7KNw-XVw
NNTP-Posting-Host: 2601:600:9880:77c0:e23f:49ff:fee8:1a31
References: <2d7daa28-4810-4d8a-837e-950c98b94f9an@googlegroups.com>
<ipdg5jFb8etU1@mid.individual.net> <ipdgnnFb8etU2@mid.individual.net>
<3175c2af-4d8d-4f76-8297-a871f0ec89ban@googlegroups.com> <sgs552$om9$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <30fc224b-e0c0-4f2e-9fed-2e00ce4912c2n@googlegroups.com>
Subject: Re: Can I set a separate default save folder for attachments
From: jefferys...@gmail.com (cjsmall)
Injection-Date: Fri, 03 Sep 2021 15:43:09 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 14
 by: cjsmall - Fri, 3 Sep 2021 15:43 UTC

On Thursday, September 2, 2021 at 8:35:00 PM UTC-7, Rich wrote:
> They don't. Mutt inserts the attachment name automatically. <Home>
> simply moves the insertion cursor to the start of the name, then
> "~/Downloads/" is entered as if you had typed those characters, then
> <End> moves the insertion cursor back to the very end of the filename
> field.

OK, I see now. That's what you meant previously by overwriting the attachment name. Without the <Home>/<End> the name was being inserted and then overwritten by "~/Download/" which is why I wasn't seeing it with your first example. Thanks for the great solution and the explanation.

I wrote all my mutt macros probably 15-20 years ago and have been using them pretty much unchanged since then. I'm really rusty at this point! :-)

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor