Tim Culverhouse, Aug 10, 2022 at 04:07:
> Make it possible to specify a single account to load, even when multiple> accounts are configured in accounts.conf.>> aerc -a <account-name>>> Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Hmm, I'm not sure I see the use case for such a feature. Maybe a way to
start with a default selected account would make more sense.
What do you think?
On Wed Aug 10, 2022 at 12:43 PM CDT, Robin Jarry wrote:
> Hmm, I'm not sure I see the use case for such a feature. Maybe a way to> start with a default selected account would make more sense.>> What do you think?
Here's a few use cases for this specifically:
1. Development: I have imap, maildir, mbox, notmuch, and gmail accounts.
I only *actually* want to use imap, but for development I have each set
up. It's annoying to go into my acct config and comment out the ones I
don't want at certain times.
2. "Focus": If I *could* have my work email in aerc, I might want to be
able to have EITHER my personal OR my work email open, but not both at
the same time. I considered a "close account tab" feature to do this,
but it seemed cleaner to just not load the account in the first place.
3. Similar to 2, I could have multiple aerc instances with different
accounts open in each one - so that there is a nice separation if you
get confused easily :)
Tim
On Wed Aug 10, 2022 at 10:48 AM PDT, Tim Culverhouse wrote:
> On Wed Aug 10, 2022 at 12:43 PM CDT, Robin Jarry wrote:> > Hmm, I'm not sure I see the use case for such a feature. Maybe a way to> > start with a default selected account would make more sense.> >> > What do you think?
i do believe there can be room for both the behaviour you describe, as
well as there being merit to Tim's described use case.
if possible, i'd consider adding the ability to specify more than one
account that you may want appearing in that particular invocation of
aerc -- as well as which one to have selected by default. however, it
does seem that this patch is useful as is.
>> Here's a few use cases for this specifically:>> 1. Development: I have imap, maildir, mbox, notmuch, and gmail accounts.> I only *actually* want to use imap, but for development I have each set> up. It's annoying to go into my acct config and comment out the ones I> don't want at certain times.>> 2. "Focus": If I *could* have my work email in aerc, I might want to be> able to have EITHER my personal OR my work email open, but not both at> the same time. I considered a "close account tab" feature to do this,> but it seemed cleaner to just not load the account in the first place.>> 3. Similar to 2, I could have multiple aerc instances with different> accounts open in each one - so that there is a nice separation if you> get confused easily :)
admittedly, the ugly way i've accomplished this by having a copy of each
accounts.conf.account-name or combination of accounts set up in advance,
and then having a shell alias / function that would copy or link into
place the preferred config i'd like to use for that invocation of aerc.
i much prefer the approach with this patch, as it's a good start for
these issues described.
Tim Culverhouse, Aug 10, 2022 at 04:07:
> Make it possible to specify a single account to load, even when multiple> accounts are configured in accounts.conf.>> aerc -a <account-name>
I think it would not be complex to allow a coma-separated list of
account names. This could also allow forcing the account order. Do you
think you could change this?
> diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd> index 17e25c2ac480..9cda61bfcce8 100644> --- a/doc/aerc.1.scd> +++ b/doc/aerc.1.scd> @@ -6,7 +6,7 @@ aerc - the world's best email client> > # SYNOPSIS> > -_aerc_ [-v] [mailto:...]> +_aerc_ [-v] [mailto:...] [-a <account-name>]> > For a guided tutorial, use *:help tutorial* from aerc, or *man aerc-tutorial*> from your terminal.> @@ -40,6 +40,8 @@ from your terminal.> > Note that reserved characters in the queries must be percent encoded.> > +*-a <account-name>*
Please remove trailing white space.
On Wed Aug 10, 2022 at 2:40 PM CDT, Robin Jarry wrote:
> I think it would not be complex to allow a coma-separated list of> account names. This could also allow forcing the account order. Do you> think you could change this?
Can do!
> Please remove trailing white space.
Ack.
Tim