Slow sidebar with large number of mailboxes

2023-02-08 Thread Eric Durand
Hi folks,

I am connecting to an imap server and have a large number of mailboxes
(>300). I am trying to find an efficient workflow to use the sidebar and
navigate through these mailboxes. Some are getting a lot of emails very
frequently, others very rarely. At first I configured all the mailboxes
with -poll, and set sidebar to check for new emails, and report new
message count. This was terribly slow. Every time I'd switch to the next
mailbox with unread messages in the sidebar, I'd have to wait for 4-5
seconds while mutt would (I guess) check all the mailboxes to update the
message count.

I then changed strategy, and created two files to list mailboxes:

1. mailboxes.nopoll.muttrc, where I list all the mailboxes with -nopoll argument
2. mailboxes.poll.muttrc, where I list the same mailboxes with -poll argument

Both these files are generated, so I don't mind the duplication.

Then I added the following macro:

bind index,pager G noop 
 
macro index,pager G ":source ~/.mutt/mailboxes.poll.muttrc^M:exec 
check-stats^M:source ~/.mutt/mailboxes.nopoll.muttrc^M" 

Now, when I press G, mutt basically does a manual check of all the
mailboxes, then gets back to -nopoll. As a result, switching between
folders in the sidebar is almost instantaneous, but with the caveat that
new message counts aren't updated automatically (I have to press G
again).

Curious if folks on this list have had to optimize for this kind of
scenario and what they came up with.

Thanks!
Eric


Slow sidebar with large number of mailboxes

2023-02-06 Thread Eric Durand
Hi folks,

I am connecting to an imap server and have a large number of mailboxes
(>300). I am trying to find an efficient workflow to use the sidebar and
navigate through these mailboxes. Some are getting a lot of emails very
frequently, others very rarely. At first I configured all the mailboxes
with -poll, and set sidebar to check for new emails, and report new message
count. This was terribly slow. Every time I'd switch to the next mailbox
with unread messages in the sidebar, I'd have to wait for 4-5 seconds while
mutt would (I guess) check all the mailboxes to update the message count.

I then changed strategy, and created two files to list mailboxes:
1. mailboxes.nopoll.muttrc, where I list all the mailboxes with -nopoll
argument
2. mailboxes.poll.muttrc, where I list the same mailboxes with -poll
argument

Both these files are generated, so I don't mind the duplication.

Then I added the following macro:

bind index,pager G noop


macro index,pager G ":source ~/.mutt/mailboxes.poll.muttrc^M:exec
check-stats^M:source ~/.mutt/mailboxes.nopoll.muttrc^M"

Now, when I press G, mutt basically does a manual check of all the
mailboxes, then gets back to -nopol. As a result, switching between folders
in the sidebar is almost instantaneous, but with the caveat thar new
message counts aren't updated automatically (I have to press G again).

Curious if folks on this list have had to optimize for this kind of
scenario and what they came up with.

Thanks!
Eric


Re: Mailboxes aliasing

2020-08-26 Thread Дмитрий Архипов
+ mutt-users@- все Thank you much. When using 'set folder' command, all functions work as well as if the letters were in the home directory. 


Re: Mailboxes aliasing

2020-07-29 Thread Logan Rathbone

On Wed, Jul 29, 2020 at 11:49:55AM +0700, Дмитрий Архипов wrote:
[snip]
I need to work with folders of my IMAP-server (move messages between 
them) and it is very boring to write full names like 
imap://a...@bbb.com/fff.
Is it possible to make aliases for mailboxes? The labels, introduced in 
mailbox command do not work. I mean if I press, for example Copy 
command, and enter the label name mutt cannot catch this.

[snip]

If you use 'set folder' to specify the root of an IMAP server, for 
instance, you should be able to use the '+' or '=' character as a prefix 
to specify a folder on that server. Tab completion should work as well.


For instance, if you are reading a message in a mail folder at 
imap://a...@bbb.com/INBOX, for instance, and you would like to save it to 
a folder called 'Saved' on that server, after pressing 'C' to copy, you 
should be able to specify '=Saved' and have it work fine, or even '=' 
followed by the first few letters, and hit Tab for autocompletion.


If this does not work, perhaps you did not use 'set folder' to set 
$folder to the IMAP server root. =/+ are just shorthands for $folder, as 
indicated by the Mutt Manual.


Mailboxes aliasing

2020-07-28 Thread Дмитрий Архипов
Hi!

I need to work with folders of my IMAP-server (move messages between them) and 
it is very boring to write full names like imap://a...@bbb.com/fff.
Is it possible to make aliases for mailboxes? The labels, introduced in mailbox 
command do not work. I mean if I press, for example Copy command, and enter the 
label name mutt cannot catch this. 

Thank you much!


Re: large IMAP mailboxes (OutLook)

2019-11-12 Thread Matthias Apitz
El día martes, noviembre 12, 2019 a las 09:37:26p. m. +0100, Anders Damsgaard 
escribió:

> * Matthias Apitz  [2019-11-12 21:22:00 +0100]:
> 
> >There is no caching of the mails in any database and update the cached
> >information off-line.
> 
> If you haven't already, try setting $header_cache and
> $message_cachedir. According to the mutt manual, you are likely to
> achieve the best performance if the cache variables point to directories
> (you can also store cache in files). If using directories for the caching,
> make sure they exist on the file system before launching mutt. You can
> safely use the same dir for both.

Thanks. You saved my day. I wasn't aware of this.

matthias


-- 
Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

"Glaube wenig, hinterfrage alles, denke selbst: Wie man Manipulationen 
durchschaut"
"Believe little, scrutinise all, think by your own: How see through 
manipulations"
ISBN-10: 386489218X


Re: large IMAP mailboxes (OutLook)

2019-11-12 Thread Patrick Shanahan
* Matthias Apitz  [11-12-19 15:24]:
> 
> Hello,
> 
> I'm using mutt as well to read/answer mails in my company mail Exchange
> server using IMAP/SMTP. This works mostly fine and as expected. The only
> problem is my large INBOX there, some 2000 mails. On any start or
> connect to the INBOX, mutt fetches all headers to present the list.
> There is no caching of the mails in any database and update the cached
> information off-line.
> 
> >From my Ubuntu smartphone I use Dekko as MUA and this has some daemon in
> the background and a database of the cached headers. I.e. its start is
> fast, while the start of mut takes 2-3 minutes fetching the header.
> 
> Any ideas how to address this?

mutt has header_cache, man muttrc

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
Photos: http://wahoo.no-ip.org/piwigo   paka @ IRCnet freenode


Re: large IMAP mailboxes (OutLook)

2019-11-12 Thread Anders Damsgaard

* Matthias Apitz  [2019-11-12 21:22:00 +0100]:


There is no caching of the mails in any database and update the cached
information off-line.


If you haven't already, try setting $header_cache and
$message_cachedir. According to the mutt manual, you are likely to
achieve the best performance if the cache variables point to directories
(you can also store cache in files). If using directories for the caching,
make sure they exist on the file system before launching mutt. You can
safely use the same dir for both.

Best, Anders
--
Anders Damsgaard
https://adamsgaard.dk


large IMAP mailboxes (OutLook)

2019-11-12 Thread Matthias Apitz


Hello,

I'm using mutt as well to read/answer mails in my company mail Exchange
server using IMAP/SMTP. This works mostly fine and as expected. The only
problem is my large INBOX there, some 2000 mails. On any start or
connect to the INBOX, mutt fetches all headers to present the list.
There is no caching of the mails in any database and update the cached
information off-line.

>From my Ubuntu smartphone I use Dekko as MUA and this has some daemon in
the background and a database of the cached headers. I.e. its start is
fast, while the start of mut takes 2-3 minutes fetching the header.

Any ideas how to address this?

matthias
-- 
Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

"Glaube wenig, hinterfrage alles, denke selbst: Wie man Manipulationen 
durchschaut"
"Believe little, scrutinise all, think by your own: How see through 
manipulations"
ISBN-10: 386489218X


Re: mailboxes - example

2019-06-07 Thread Will Yardley
On Fri, Jun 07, 2019 at 07:15:49AM -0700, Kevin J. McCarthy wrote:
> On Wed, May 15, 2019 at 01:07:28PM +, Dan Ciprus (dciprus) wrote:
> > Obviously all strings defined there are considered mailboxes even though
> > there is no maildir structure nor mailbox file.
> 
> Yes, that's exactly the problem.  The sidebar is a list of mailboxes; there
> is no concept of dividers.  I think the closest you could get would be to
> turn off the display of 0 for all of them using a conditional format string,
> like %?N%.

I haven't used the sidebar feature, but would using directories render
them sort of like the OP wanted?

foo/
  bar
  baz
bat/
  qyz


Re: mailboxes - example

2019-06-07 Thread Kevin J. McCarthy

On Fri, Jun 07, 2019 at 02:48:16PM +, Dan Ciprus (dciprus) wrote:

Hm, at least there is some creative workaround :-)

Thanks Kevin !


You're welcome.  By the way it looks like I blew the example.  The 
documentation is at 
 and it 
instead would look something like

 %?N?%N?

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: mailboxes - example

2019-06-07 Thread Dan Ciprus (dciprus)

Hm, at least there is some creative workaround :-)

Thanks Kevin !

On Fri, Jun 07, 2019 at 07:15:49AM -0700, Kevin J. McCarthy wrote:

On Wed, May 15, 2019 at 01:07:28PM +, Dan Ciprus (dciprus) wrote:
Obviously all strings defined there are considered mailboxes even 
though there is no maildir structure nor mailbox file.


Yes, that's exactly the problem.  The sidebar is a list of mailboxes; 
there is no concept of dividers.  I think the closest you could get 
would be to turn off the display of 0 for all of them using a 
conditional format string, like %?N%.


--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA




--




signature.asc
Description: PGP signature


Re: mailboxes - example

2019-06-07 Thread Kevin J. McCarthy

On Wed, May 15, 2019 at 01:07:28PM +, Dan Ciprus (dciprus) wrote:
Obviously all strings defined there are considered mailboxes even 
though there is no maildir structure nor mailbox file.


Yes, that's exactly the problem.  The sidebar is a list of mailboxes; 
there is no concept of dividers.  I think the closest you could get 
would be to turn off the display of 0 for all of them using a 
conditional format string, like %?N%.


--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: mailboxes - example

2019-06-06 Thread Dan Ciprus (dciprus)

Nobody ? :-)

On Wed, May 15, 2019 at 01:07:28PM +, Dan Ciprus (dciprus) wrote:

Good morning,

I did a bit of googling recently but I have not found a good example 
of mailboxes configurable which would make my sidebar look pretty :-). 
What I am looking for is something simmilar to this:


 Customers ---
customer1   0
customer2   0
customer3   0
 Private   ---
private10
private20

Instead, this is what I am getting with my present configuration:

 Customers --- 0
customer1   0
customer2   0
customer3   0
 Private   --- 0
private10
private20

My current config looks like this:

mailboxes " Customers " \
+inbox/customer1 \
+inbox/customer2 \
" Private " \
+anotherinbox/private1 \
+anotherinbox/private2 \
"-"

Obviously all strings defined there are considered mailboxes even 
though there is no maildir structure nor mailbox file. I am pretty 
sure I am overlooking something here, just need the right pinch here 
:-)


Thanks,
Dan





--




signature.asc
Description: PGP signature


mailboxes - example

2019-05-15 Thread Dan Ciprus (dciprus)

Good morning,

I did a bit of googling recently but I have not found a good example of 
mailboxes configurable which would make my sidebar look pretty :-). What I am 
looking for is something simmilar to this:


 Customers ---
customer1   0
customer2   0
customer3   0
 Private   ---
private10
private20

Instead, this is what I am getting with my present configuration:

 Customers --- 0
customer1   0
customer2   0
customer3   0
 Private   --- 0
private10
private20

My current config looks like this:

mailboxes " Customers " \
+inbox/customer1 \
+inbox/customer2 \
" Private " \
+anotherinbox/private1 \
+anotherinbox/private2 \
"-"

Obviously all strings defined there are considered mailboxes even though there 
is no maildir structure nor mailbox file. I am pretty sure I am overlooking 
something here, just need the right pinch here :-)


Thanks,
Dan



signature.asc
Description: PGP signature


Re: IMAP mailboxes in the sidebar

2018-09-17 Thread Felix Finch
On Mon, Sep 17, 2018 at 09:15:00AM -0700, Kevin J. McCarthy wrote:
> On Mon, Sep 17, 2018 at 05:44:34AM -0700, Felix Finch wrote:
> > It does show those two in teh sidebar.  But "mailboxes" is only for
> > incoming mail:
> > 
> >  This command specifies folders which can receive mail and which
> >  will be checked for new messages periodically.
> > 
> > I want all the mailboxes available, as determined by Lookout, in the
> > sidebar, but only INBOX needs to be checked for new mail.
> 
> Sorry, that's how the sidebar is built - it piggybacks on the
> 'mailboxes' list for determining what to display.

Nothing to be apologize for :-)  but is there no way for Mutt to ask the server 
what mailboxes exist?

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman & wood chipper / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o


Re: IMAP mailboxes in the sidebar

2018-09-17 Thread Kevin J. McCarthy
On Mon, Sep 17, 2018 at 05:44:34AM -0700, Felix Finch wrote:
> It does show those two in teh sidebar.  But "mailboxes" is only for
> incoming mail:
> 
>  This command specifies folders which can receive mail and which
>  will be checked for new messages periodically.
> 
> I want all the mailboxes available, as determined by Lookout, in the
> sidebar, but only INBOX needs to be checked for new mail.

Sorry, that's how the sidebar is built - it piggybacks on the
'mailboxes' list for determining what to display.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: IMAP mailboxes in the sidebar

2018-09-17 Thread Felix Finch
On Sun, Sep 16, 2018 at 10:26:24PM -0700, Kevin J. McCarthy wrote:
> Forgive me for asking what may be a stupid question, but have you
> *listed* all the mailboxes in question with a 'mailboxes' command in
> your muttrc?
> 
> If so, is there any chance you have something running under a hook that
> is calling unmailboxes?  What happens if you add 'mailboxes foo' to your
> muttrc?
> 
> Alternatively you could try enabling $imap_check_subscribed and make
> sure all the relevant mailboxes are subscribed to.

That does it -- sort of:

mailboxes +INBOX +'All Mail'

It does show those two in teh sidebar.  But "mailboxes" is only for incoming 
mail:

 This command specifies folders which can receive mail and which will be 
checked for new messages periodically.

I want all the mailboxes available, as determined by Lookout, in the sidebar, 
but only INBOX needs to be checked for new mail.  I've tried all combinations 
of yes and no for these two variables, along with defining "mailboxes" or not, 
and the only one which matters is "mailboxes".

set imap_check_subscribed
When set, mutt will fetch the set of subscribed folders from your 
server on connection, and add them to the set of mailboxes it polls for new 
mail just as if you had issued individual “mailboxes” commands.

set imap_list_subscribed
This variable configures whether IMAP folder browsing will look for 
only subscribed folders or all folders.

imap_check_subscribed is not clear to me.  I like the "fetch the set of 
subscribed folder", but they don't need to be checked for new mail (only INBOX 
does).

Maybe it is this "subscription" jargon which is tripping me up.  When I use 
Lookout itself (ugh!), it shows about a dozen mailboxes.  That's what I want 
mutt to show.

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman & wood chipper / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o


Re: IMAP mailboxes in the sidebar

2018-09-16 Thread Arturo
On 09/16, Kevin J. McCarthy wrote:
> On Sun, Sep 16, 2018 at 07:22:55PM -0500, Arturo wrote:
> > Well I had a similar issue.  IIRC, INBOX was always there regardless for 
> > me, 
> > but I had to use the full path to get anything else to work. There was a
> > bug (since fixed) in NeoMutt where it wasnt' expanding = or + to
> > the full path.  Sounds like the same issue to me here in Mutt.
> > 
> > https://github.com/neomutt/neomutt/issues/485
> 
> The commit there was pulled over _from_ Mutt into NeoMutt, and is in
> Mutt versions 1.8.1 and later.

Oh yeah!  Thanks for the reminder and the fix!  I had a glance at the
archive just now... I reached out to those guys after not getting any
reponse here for a couple of days. I thought the list was dead.


Re: IMAP mailboxes in the sidebar

2018-09-16 Thread Kevin J. McCarthy
On Sun, Sep 16, 2018 at 11:48:18AM -0700, Felix Finch wrote:
> Ubuntu 18.04, Mutt 1.9.4.
> 
> set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
> set sidebar_new_mail_only=no
> set sidebar_visible=yes
> 
> The sidebar shows only INBOX.  All other mailboxes are absent.  The
> same mutt sidebar is fine for local maildirs with a different muttrc.

Forgive me for asking what may be a stupid question, but have you
*listed* all the mailboxes in question with a 'mailboxes' command in
your muttrc?

If so, is there any chance you have something running under a hook that
is calling unmailboxes?  What happens if you add 'mailboxes foo' to your
muttrc?

Alternatively you could try enabling $imap_check_subscribed and make
sure all the relevant mailboxes are subscribed to.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: IMAP mailboxes in the sidebar

2018-09-16 Thread Kevin J. McCarthy
On Sun, Sep 16, 2018 at 07:22:55PM -0500, Arturo wrote:
> Well I had a similar issue.  IIRC, INBOX was always there regardless for me, 
> but I had to use the full path to get anything else to work. There was a
> bug (since fixed) in NeoMutt where it wasnt' expanding = or + to
> the full path.  Sounds like the same issue to me here in Mutt.
> 
> https://github.com/neomutt/neomutt/issues/485

The commit there was pulled over _from_ Mutt into NeoMutt, and is in
Mutt versions 1.8.1 and later.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: IMAP mailboxes in the sidebar

2018-09-16 Thread Felix Finch
On Sun, Sep 16, 2018 at 06:11:43PM -0700, Felix Finch wrote:
> On Sun, Sep 16, 2018 at 07:22:55PM -0500, Arturo wrote:
> > On 09/16, Felix Finch wrote:
> > > On Sun, Sep 16, 2018 at 06:54:51PM -0500, Arturo wrote:
> > > > On 09/16, Felix Finch wrote:
> > > > > Ubuntu 18.04, Mutt 1.9.4.
> > > > > 
> > > > > set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
> > > > > set sidebar_new_mail_only=no
> > > > > set sidebar_visible=yes
> > > > > 
> > > > > The sidebar shows only INBOX.  All other mailboxes are absent.  The 
> > > > > same mutt sidebar is fine for local maildirs with a different muttrc.
> > > > > 
> > > > > I tried setting
> > > > > 
> > > > > sidebar_whitelist =INBOX "=All Mail"
> > > > > 
> > > > > and that makes no difference.  I can change to that mailbox using 
> > > > > "=All", so mutt knows it's a valid name, just can't see it in 
> > > > > the sidebar.
> > > > > 
> > > > > I can only guess it's something to do with IMAP or Lookout (it's a 
> > > > > Lookout IMAP server).
> > > > 
> > > > Does it work if you put the full path?
> > > > 
> > > > sidebar_whitelist imaps://imap.gmail.com:993/Devel 
> > > > imaps://imap.gmail.com:993/Family 
> > > > imaps://imap.gmail.com:993/[Gmail]/Starred 
> > > 
> > > I tried variations on that, no difference.  But if it can pick up =INBOX, 
> > > why would it need the full path to others?
> > > 
> > 
> > Well I had a similar issue.  IIRC, INBOX was always there regardless for 
> > me, 
> > but I had to use the full path to get anything else to work. There was a
> > bug (since fixed) in NeoMutt where it wasnt' expanding = or + to
> > the full path.  Sounds like the same issue to me here in Mutt.
> > 
> > https://github.com/neomutt/neomutt/issues/485
> 
> I guess I'll try again, and differently :-)

I tried every combination I could think of, including putting my username and 
password in the URL.  Crickets.

I also tried eliminating the sidebar_whitelist command altogether.  Nomatter 
what I do, the sidebar shows "INBOX10" and nothing else.

About the only reaction I got as deliberate syntax errors, such as "set 
sidebar_whitelist ...".  Otherwise it acts like that line is not even present.

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman & wood chipper / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o


Re: IMAP mailboxes in the sidebar

2018-09-16 Thread Felix Finch
On Sun, Sep 16, 2018 at 07:22:55PM -0500, Arturo wrote:
> On 09/16, Felix Finch wrote:
> > On Sun, Sep 16, 2018 at 06:54:51PM -0500, Arturo wrote:
> > > On 09/16, Felix Finch wrote:
> > > > Ubuntu 18.04, Mutt 1.9.4.
> > > > 
> > > > set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
> > > > set sidebar_new_mail_only=no
> > > > set sidebar_visible=yes
> > > > 
> > > > The sidebar shows only INBOX.  All other mailboxes are absent.  The 
> > > > same mutt sidebar is fine for local maildirs with a different muttrc.
> > > > 
> > > > I tried setting
> > > > 
> > > > sidebar_whitelist =INBOX "=All Mail"
> > > > 
> > > > and that makes no difference.  I can change to that mailbox using 
> > > > "=All", so mutt knows it's a valid name, just can't see it in the 
> > > > sidebar.
> > > > 
> > > > I can only guess it's something to do with IMAP or Lookout (it's a 
> > > > Lookout IMAP server).
> > > 
> > > Does it work if you put the full path?
> > > 
> > > sidebar_whitelist imaps://imap.gmail.com:993/Devel 
> > > imaps://imap.gmail.com:993/Family 
> > > imaps://imap.gmail.com:993/[Gmail]/Starred 
> > 
> > I tried variations on that, no difference.  But if it can pick up =INBOX, 
> > why would it need the full path to others?
> > 
> 
> Well I had a similar issue.  IIRC, INBOX was always there regardless for me, 
> but I had to use the full path to get anything else to work. There was a
> bug (since fixed) in NeoMutt where it wasnt' expanding = or + to
> the full path.  Sounds like the same issue to me here in Mutt.
> 
> https://github.com/neomutt/neomutt/issues/485

I guess I'll try again, and differently :-)

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman & wood chipper / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o


Re: IMAP mailboxes in the sidebar

2018-09-16 Thread Arturo
On 09/16, Felix Finch wrote:
> On Sun, Sep 16, 2018 at 06:54:51PM -0500, Arturo wrote:
> > On 09/16, Felix Finch wrote:
> > > Ubuntu 18.04, Mutt 1.9.4.
> > > 
> > > set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
> > > set sidebar_new_mail_only=no
> > > set sidebar_visible=yes
> > > 
> > > The sidebar shows only INBOX.  All other mailboxes are absent.  The same 
> > > mutt sidebar is fine for local maildirs with a different muttrc.
> > > 
> > > I tried setting
> > > 
> > > sidebar_whitelist =INBOX "=All Mail"
> > > 
> > > and that makes no difference.  I can change to that mailbox using 
> > > "=All", so mutt knows it's a valid name, just can't see it in the 
> > > sidebar.
> > > 
> > > I can only guess it's something to do with IMAP or Lookout (it's a 
> > > Lookout IMAP server).
> > 
> > Does it work if you put the full path?
> > 
> > sidebar_whitelist imaps://imap.gmail.com:993/Devel 
> > imaps://imap.gmail.com:993/Family 
> > imaps://imap.gmail.com:993/[Gmail]/Starred 
> 
> I tried variations on that, no difference.  But if it can pick up =INBOX, why 
> would it need the full path to others?
> 

Well I had a similar issue.  IIRC, INBOX was always there regardless for me, 
but I had to use the full path to get anything else to work. There was a
bug (since fixed) in NeoMutt where it wasnt' expanding = or + to
the full path.  Sounds like the same issue to me here in Mutt.

https://github.com/neomutt/neomutt/issues/485


Re: IMAP mailboxes in the sidebar

2018-09-16 Thread Felix Finch
On Sun, Sep 16, 2018 at 06:54:51PM -0500, Arturo wrote:
> On 09/16, Felix Finch wrote:
> > Ubuntu 18.04, Mutt 1.9.4.
> > 
> > set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
> > set sidebar_new_mail_only=no
> > set sidebar_visible=yes
> > 
> > The sidebar shows only INBOX.  All other mailboxes are absent.  The same 
> > mutt sidebar is fine for local maildirs with a different muttrc.
> > 
> > I tried setting
> > 
> > sidebar_whitelist =INBOX "=All Mail"
> > 
> > and that makes no difference.  I can change to that mailbox using 
> > "=All", so mutt knows it's a valid name, just can't see it in the 
> > sidebar.
> > 
> > I can only guess it's something to do with IMAP or Lookout (it's a Lookout 
> > IMAP server).
> 
> Does it work if you put the full path?
> 
> sidebar_whitelist imaps://imap.gmail.com:993/Devel 
> imaps://imap.gmail.com:993/Family imaps://imap.gmail.com:993/[Gmail]/Starred 

I tried variations on that, no difference.  But if it can pick up =INBOX, why 
would it need the full path to others?

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman & wood chipper / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o


Re: IMAP mailboxes in the sidebar

2018-09-16 Thread Arturo
On 09/16, Felix Finch wrote:
> Ubuntu 18.04, Mutt 1.9.4.
> 
> set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
> set sidebar_new_mail_only=no
> set sidebar_visible=yes
> 
> The sidebar shows only INBOX.  All other mailboxes are absent.  The same mutt 
> sidebar is fine for local maildirs with a different muttrc.
> 
> I tried setting
> 
> sidebar_whitelist =INBOX "=All Mail"
> 
> and that makes no difference.  I can change to that mailbox using 
> "=All", so mutt knows it's a valid name, just can't see it in the 
> sidebar.
> 
> I can only guess it's something to do with IMAP or Lookout (it's a Lookout 
> IMAP server).
> 
> -- 
> ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
>  Felix Finch: scarecrow repairman & wood chipper / fe...@crowfix.com
>   GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
> I've found a solution to Fermat's Last Theorem but I see I've run out of room 
> o

Does it work if you put the full path?

sidebar_whitelist imaps://imap.gmail.com:993/Devel 
imaps://imap.gmail.com:993/Family imaps://imap.gmail.com:993/[Gmail]/Starred 



IMAP mailboxes in the sidebar

2018-09-16 Thread Felix Finch
Ubuntu 18.04, Mutt 1.9.4.

set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
set sidebar_new_mail_only=no
set sidebar_visible=yes

The sidebar shows only INBOX.  All other mailboxes are absent.  The same mutt 
sidebar is fine for local maildirs with a different muttrc.

I tried setting

sidebar_whitelist =INBOX "=All Mail"

and that makes no difference.  I can change to that mailbox using "=All", 
so mutt knows it's a valid name, just can't see it in the sidebar.

I can only guess it's something to do with IMAP or Lookout (it's a Lookout IMAP 
server).

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman & wood chipper / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o


Re: find matched message in all mailboxes and put them into a separate mailbox

2018-01-20 Thread Yubin Ruan
On Thu, Jan 18, 2018 at 09:12:36AM -0500, Ben Boeckel wrote:
> On Thu, Jan 18, 2018 at 17:29:38 +0800, Yubin Ruan wrote:
> > I know one can hit / or l (i.e., limit) and then apply a search pattern to
> > search for messages in the current mailbox. But can we apply this to 
> > multiple
> > mailboxes? I would like to search for matched messages in all mailboxes and
> > then put them into a separate mailbox. For example, I have 10 mailboxes and
> > now I want to search in these 10 mailboxes for messages that have me in the
> > "To: " field and then put them into a separate mailbox.
> 
> I use notmuch for this (using Maildir):
> 
> https://notmuchmail.org/

Thanks Ben and all others in this thread,

I have taken a look at notmuch and it work well. 

> with these bindings:
> 
> macro index \Cn "\
>  set my_wait_key = \$wait_key\
>  unset wait_key\
> notmuch-mutt --prompt search\
> ~/.cache/notmuch/mutt/results\
>  set wait_key = \$my_wait_key\
>  unset my_wait_key\
> " "search mail (using notmuch)"
> macro index  "\
>  set my_wait_key = \$wait_key\
>  unset wait_key\
> notmuch-mutt thread\
> ~/.cache/notmuch/mutt/results\
>  set wait_key = \$my_wait_key\
>  unset my_wait_key\
> " "search and reconstruct owning thread (using notmuch)"
> 
> Notmuch reindexing is triggered by offlineimap, but whatever fetches
> email for you should also be able to trigger a reindex.

Ben, I believe this is from a script from Stefano Zacchiroli at

https://upsilon.cc/~zack/blog/posts/2011/01/how_to_use_Notmuch_with_Mutt/

right? That works well, except for the bug below.

[added Stefano Zacchiroli to the Cc: ...]

Hi Stefano,

how about the patch below? I believe it is safer to escape special character
such as whitespace when passing filename through bash pipe (e.g., Gmail has
the "Sent Mail" folder)

--- /tmp/mutt-notmuch-old   2018-01-21 17:52:11.946415454 +0800
+++ /tmp/mutt-notmuch-new   2018-01-21 17:40:12.926430126 +0800
@@ -35,6 +35,7 @@
 
 empty_maildir($maildir);
 system("notmuch search --output=files $query"
+  . " | sed -e \'s/ / /\' "
. " | xargs --no-run-if-empty ln -s -t $maildir/cur/");
 }

Another thing I find sorry is that modifications in the search results listing
do not carry over (i.e., modifications in ~/.cache/mutt_result do not carry
over to the original mail, even though mails in ~/.cache/mutt_results/ are
symlinked to their origins). I can change  to
, but it doesn't work. I don't know what a modification should
be for the Maildir format, so hopefully anyone can help here...

Yubin



Re: find matched message in all mailboxes and put them into a separate mailbox

2018-01-18 Thread Ben Boeckel
On Thu, Jan 18, 2018 at 13:19:22 -0500, Patrick Shanahan wrote:
> the OP has mbox which notmuch doesn't support

OP said that it's maildir:

On Thu, Jan 18, 2018 at 05:29:38PM +0800, Yubin Ruan wrote:
> Oh, I am using Maildir. So maybe some standalone script will help?

--Ben


Re: find matched message in all mailboxes and put them into a separate mailbox

2018-01-18 Thread Patrick Shanahan
* Ben Boeckel <maths...@gmail.com> [01-18-18 11:40]:
> On Thu, Jan 18, 2018 at 17:29:38 +0800, Yubin Ruan wrote:
> > I know one can hit / or l (i.e., limit) and then apply a search pattern to
> > search for messages in the current mailbox. But can we apply this to 
> > multiple
> > mailboxes? I would like to search for matched messages in all mailboxes and
> > then put them into a separate mailbox. For example, I have 10 mailboxes and
> > now I want to search in these 10 mailboxes for messages that have me in the
> > "To: " field and then put them into a separate mailbox.
> 
> I use notmuch for this (using Maildir):
> 
> https://notmuchmail.org/
> 
> with these bindings:
> 
> macro index \Cn "\
>  set my_wait_key = \$wait_key\
>  unset wait_key\
> notmuch-mutt --prompt search\
> ~/.cache/notmuch/mutt/results\
>  set wait_key = \$my_wait_key\
>  unset my_wait_key\
> " "search mail (using notmuch)"
> macro index  "\
>  set my_wait_key = \$wait_key\
>  unset wait_key\
> notmuch-mutt thread\
> ~/.cache/notmuch/mutt/results\
>  set wait_key = \$my_wait_key\
>  unset my_wait_key\
> " "search and reconstruct owning thread (using notmuch)"
> 
> Notmuch reindexing is triggered by offlineimap, but whatever fetches
> email for you should also be able to trigger a reindex.

the OP has mbox which notmuch doesn't support

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
Registered Linux User #207535@ http://linuxcounter.net
Photos: http://wahoo.no-ip.org/piwigo   paka @ IRCnet freenode


Re: find matched message in all mailboxes and put them into a separate mailbox

2018-01-18 Thread Ben Boeckel
On Thu, Jan 18, 2018 at 17:29:38 +0800, Yubin Ruan wrote:
> I know one can hit / or l (i.e., limit) and then apply a search pattern to
> search for messages in the current mailbox. But can we apply this to multiple
> mailboxes? I would like to search for matched messages in all mailboxes and
> then put them into a separate mailbox. For example, I have 10 mailboxes and
> now I want to search in these 10 mailboxes for messages that have me in the
> "To: " field and then put them into a separate mailbox.

I use notmuch for this (using Maildir):

https://notmuchmail.org/

with these bindings:

macro index \Cn "\
 set my_wait_key = \$wait_key\
 unset wait_key\
notmuch-mutt --prompt search\
~/.cache/notmuch/mutt/results\
 set wait_key = \$my_wait_key\
 unset my_wait_key\
" "search mail (using notmuch)"
macro index  "\
 set my_wait_key = \$wait_key\
 unset wait_key\
notmuch-mutt thread\
~/.cache/notmuch/mutt/results\
 set wait_key = \$my_wait_key\
 unset my_wait_key\
" "search and reconstruct owning thread (using notmuch)"

Notmuch reindexing is triggered by offlineimap, but whatever fetches
email for you should also be able to trigger a reindex.

--Ben


Re: find matched message in all mailboxes and put them into a separate mailbox

2018-01-18 Thread Ulrich Lauther
On Thu, Jan 18, 2018 at 05:29:38PM +0800, Yubin Ruan wrote:
> Hi,
> 
> I know one can hit / or l (i.e., limit) and then apply a search pattern to
> search for messages in the current mailbox. But can we apply this to multiple
> mailboxes? I would like to search for matched messages in all mailboxes and
> then put them into a separate mailbox. For example, I have 10 mailboxes and
> now I want to search in these 10 mailboxes for messages that have me in the
> "To: " field and then put them into a separate mailbox.
> 
> Yubin

Take a look at grepm http://www.barsnick.net/sw/grepm.html.

grepm puts the matching messages into a temporay mailbox under /tmp.

ulrich


Re: find matched message in all mailboxes and put them into a separate mailbox

2018-01-18 Thread Darac Marjal

On Thu, Jan 18, 2018 at 05:29:38PM +0800, Yubin Ruan wrote:

Hi,

I know one can hit / or l (i.e., limit) and then apply a search pattern to
search for messages in the current mailbox. But can we apply this to multiple
mailboxes? I would like to search for matched messages in all mailboxes and
then put them into a separate mailbox. For example, I have 10 mailboxes and
now I want to search in these 10 mailboxes for messages that have me in the
"To: " field and then put them into a separate mailbox.


mutt might not be able to do this, but mairix[1] is geared around this 
work flow. Here are some notes on using it [2]. And, additionally to 
that, you might find it comfortable to set up and alias that calls 
Mairix, then opens mutt on the search folder.



[1] http://www.rpcurnow.force9.co.uk/mairix/
[2] https://gitlab.com/muttmua/mutt/wikis/UseCases/SearchingMail#mairix



   Yubin


--
For more information, please reread.


signature.asc
Description: PGP signature


Re: find matched message in all mailboxes and put them into a separate mailbox

2018-01-18 Thread Patrick Shanahan
* Yubin Ruan <ablacktsh...@gmail.com> [01-18-18 04:31]:
>
> I know one can hit / or l (i.e., limit) and then apply a search pattern to
> search for messages in the current mailbox. But can we apply this to multiple
> mailboxes? I would like to search for matched messages in all mailboxes and
> then put them into a separate mailbox. For example, I have 10 mailboxes and
> now I want to search in these 10 mailboxes for messages that have me in the
> "To: " field and then put them into a separate mailbox.

mairix is what you are looking for
-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
Registered Linux User #207535@ http://linuxcounter.net
Photos: http://wahoo.no-ip.org/piwigo   paka @ IRCnet freenode


Re: find matched message in all mailboxes and put them into a separate mailbox

2018-01-18 Thread Jörg Sommer
Hi Yubin,

Yubin Ruan hat am Thu 18. Jan, 17:49 (+0800) geschrieben:
> On Thu, Jan 18, 2018 at 05:29:38PM +0800, Yubin Ruan wrote:
> > Hi,
> > 
> > I know one can hit / or l (i.e., limit) and then apply a search pattern to
> > search for messages in the current mailbox. But can we apply this to 
> > multiple
> > mailboxes? I would like to search for matched messages in all mailboxes and
> > then put them into a separate mailbox. For example, I have 10 mailboxes and
> > now I want to search in these 10 mailboxes for messages that have me in the
> > "To: " field and then put them into a separate mailbox.
> 
> Oh, I am using Maildir. So maybe some standalone script will help?

If it's Maildir, it's pretty simple. Create a new mailbox

mkdir -p /tmp/matches/cur /tmp/matches/new /tmp/matches/tmp

and copy all matching files there

cp $(grep -rli PATTERN ~/Mail) /tmp/matches/new
mutt -f /tmp/matches

Bye Jörg


signature.asc
Description: PGP signature


Re: find matched message in all mailboxes and put them into a separate mailbox

2018-01-18 Thread Yubin Ruan
On Thu, Jan 18, 2018 at 12:27:35PM +0100, Ulrich Lauther wrote:
> On Thu, Jan 18, 2018 at 05:29:38PM +0800, Yubin Ruan wrote:
> > Hi,
> > 
> > I know one can hit / or l (i.e., limit) and then apply a search pattern to
> > search for messages in the current mailbox. But can we apply this to 
> > multiple
> > mailboxes? I would like to search for matched messages in all mailboxes and
> > then put them into a separate mailbox. For example, I have 10 mailboxes and
> > now I want to search in these 10 mailboxes for messages that have me in the
> > "To: " field and then put them into a separate mailbox.
> > 
> > Yubin
> 
> Take a look at grepm http://www.barsnick.net/sw/grepm.html.
> 
> grepm puts the matching messages into a temporay mailbox under /tmp.

Thanks Ulrich,

but I am using the Maildir format while grepmail can only handle mbox format.

Yubin


Re: find matched message in all mailboxes and put them into a separate mailbox

2018-01-18 Thread Yubin Ruan
On Thu, Jan 18, 2018 at 05:29:38PM +0800, Yubin Ruan wrote:
> Hi,
> 
> I know one can hit / or l (i.e., limit) and then apply a search pattern to
> search for messages in the current mailbox. But can we apply this to multiple
> mailboxes? I would like to search for matched messages in all mailboxes and
> then put them into a separate mailbox. For example, I have 10 mailboxes and
> now I want to search in these 10 mailboxes for messages that have me in the
> "To: " field and then put them into a separate mailbox.

Oh, I am using Maildir. So maybe some standalone script will help?

Yubin


find matched message in all mailboxes and put them into a separate mailbox

2018-01-18 Thread Yubin Ruan
Hi,

I know one can hit / or l (i.e., limit) and then apply a search pattern to
search for messages in the current mailbox. But can we apply this to multiple
mailboxes? I would like to search for matched messages in all mailboxes and
then put them into a separate mailbox. For example, I have 10 mailboxes and
now I want to search in these 10 mailboxes for messages that have me in the
"To: " field and then put them into a separate mailbox.

Yubin


Re: Subscription file handling for shared mailboxes

2018-01-04 Thread Thomas Leuxner
* Thomas Leuxner  2018.01.04 09:29:

> subscriptions:
> :shared/rou...@domain.tld/INBOX
> 
> It appears Mutt struggles with the @ sign in the subscription file and cuts 
> off the TLD in this light, trying to login as a new user:
> 
> Jan  4 09:20:41 edi dovecot: auth: Error: passwd-file(router@domain):

I think I found the culprit, dropping '.' from the defaults:

set imap_delim_chars = "/"

Will need to monitor if this fully solves the issue:

Regards
Thomas


signature.asc
Description: PGP signature


Subscription file handling for shared mailboxes

2018-01-04 Thread Thomas Leuxner
Hi,

I recently had to introduce shared mailboxes on IMAP accounts. While other MUAs 
seem to be fine with the subscriptions file entry, Mutt (1.9.2) seems to handle 
special characters differently:

subscriptions:
:shared/rou...@domain.tld/INBOX

It appears Mutt struggles with the @ sign in the subscription file and cuts off 
the TLD in this light, trying to login as a new user:

Jan  4 09:20:41 edi dovecot: auth: Error: passwd-file(router@domain):

Regards
Thomas


signature.asc
Description: PGP signature


Sort mailboxes vs. file browser

2016-09-06 Thread Derek Martin
Hi all,

It's bugged me forever that when I set sort_browser=unsorted, so that
my mailboxes are shown to me in the order I list them, Mutt also shows
me file listings in the file browser unsorted.  I think this is
insane.  Mailboxes list != file list; the two have different
properties and should be treated (and sorted) separately.

Is there an existing patch or other solution to this problem?

-- 
Derek D. Martinhttp://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.



pgpw8UJD2cy4o.pgp
Description: PGP signature


Re: Using wildcards for the mailboxes command

2016-08-31 Thread Chris Green
On Wed, Aug 31, 2016 at 10:11:47AM +0200, Thomas Glanzmann wrote:
> Hello,
> I would like to use wildcards in mailboxes command, Is there a non
> obvious way to obtain that?
> 
> mailboxes /home/sithglan/Maildir/.lists.*.mailing.dhl.de
> 
> (infra) [~/work/briefe] ls -ald /home/sithglan/Maildir/.lists.*.mailing.dhl.de
> drwx-- 5 sithglan sithglan 4096 Nov 30 2015 
> /home/sithglan/Maildir/.lists.1CZ4Z7YB-1DYLQB8.mailing.dhl.de/ 
> 
> drwx-- 5 sithglan sithglan 4096 Aug 31 09:21 
> /home/sithglan/Maildir/.lists.1CZ4Z7ZG-1563Q35.mailing.dhl.de/ 
> 
> ...
> 
I have the following in my muttrc :-

mailboxes  /var/mail/chris ~/Mail/In/inbox `echo ~/Mail/Li/*` `echo ~/Mail/In/*`

I.e. use the back-quote to get wildcards.

-- 
Chris Green


Using wildcards for the mailboxes command

2016-08-31 Thread Thomas Glanzmann
Hello,
I would like to use wildcards in mailboxes command, Is there a non
obvious way to obtain that?

mailboxes /home/sithglan/Maildir/.lists.*.mailing.dhl.de

(infra) [~/work/briefe] ls -ald /home/sithglan/Maildir/.lists.*.mailing.dhl.de
drwx-- 5 sithglan sithglan 4096 Nov 30  2015 
/home/sithglan/Maildir/.lists.1CZ4Z7YB-1DYLQB8.mailing.dhl.de/
drwx-- 5 sithglan sithglan 4096 Aug 31 09:21 
/home/sithglan/Maildir/.lists.1CZ4Z7ZG-1563Q35.mailing.dhl.de/
...

Or can I run a shell script which returns mutt configuration for me?

Cheers,
Thomas


Re: omit empty mailboxes from list

2016-03-27 Thread Jon LaBadie
On Sun, Mar 27, 2016 at 06:49:30PM +1100, Erik Christiansen wrote:
> On 26.03.16 10:02, Christian Ebert wrote:
> > * Erik Christiansen on Saturday, March 26, 2016 at 19:54:16 +1100
> > > To return to a mailbox which was read earlier in the mutt session,
> > > in the index, press 'c' to initiate a mailbox change, then either:
> > > 
> > > a) type in the full name of the desired mailbox,
> > > b) type a few characters, then hit  for autocompletion,
> > > c) if b) meets multiple alternatives, hit  again, for a list.
> > > d) hit , to cycle through visited mailboxes, till you're back.
> > 
> > e) hit - to go back to the previously visited mailbox
> 
> Ah, e) can go back only _one_ mailbox, then goes into an endless back
> and forth loop with the last mailbox. That fails entirely to return
> further up the history list of previously visited mailboxes. (The
> express use-case presented.)
> 

Assuming I have already visited more than two mailboxes,
my up arrow key goes back through the history.  Even
including a "-" that was used along the way.

jl
-- 
Jon H. LaBadie j...@jgcomp.com
 11226 South Shore Rd.  (703) 787-0688 (H)
 Reston, VA  20190  (703) 935-6720 (C)


Re: omit empty mailboxes from list

2016-03-27 Thread Jon LaBadie
On Sun, Mar 27, 2016 at 09:05:17PM +1100, Erik Christiansen wrote:
> On 26.03.16 15:10, Jon LaBadie wrote:
> > I can see what you both are referring to.  There are big differences
> > between 'c' and 'y' for my work style.  First, 'y' shows the files
> > defined by the "mailboxes" parameter, the ones I'm looking for.  In
> > contrast, 'c' shows the files defined by the "folder" parameter which
> > in my case is not the receiving mailboxes, but the previously saved
> > mail in ~/Mail (about 800 files). 
> 
> That's not what happens here, I hit 'c' and mutt immediately offers the
> mailbox with new mail which appears highest in the (one or more)
> "mailboxes" lines in my .muttrc. I.e. it not only serves as a serialised
> version of the 'y' list, restricted to those with new mail (your
> specified use-case),

No, I specifically asked about non-empty files,
not ones containing new mail.

> but also prioritises the list in the order given in
> the "mailboxes" parameter. (Bonus points for that!)
> 
...
> 
> If another delivery mailbox appears earlier in "mailboxes", and has
> mail, it'll take precedence. If no mailbox is proffered, then there is
> no new mail. (As '.' would then confirm.)
> 
> Are you hitting '?' to go to the 800 file list?

Im the earlier paragraph you quoted yes, I was refering to the
indexes generated by the 'y' command immediately or the 'c'
command after '?'.

Apologies for not recognizing that the files in the mailboxes 
list containing new mail were shown in the 'c' prompt.  The
earliest one in the list contains copies of my wife's mail
which I don't normally read and so skip quickly to the '?'.
(But it is nice to be able to more safely examine her suspicious
mail in mutt rather than her opening them in outlook)
> 
> > Another difference, 'y' immediately goes to the index where 'c' goes
> > to a prompt on the status line with a suggested path.  That is where
> > the '-' and up/down arrows can be used or a '?' entered to get to the
> > index.
> 
> Used with a "mailboxes" parameter, 'c' automates the use-case you're
> trying to achieve manually. (And very usefully adds priority)
> 
> > All useful learning thank you.  But I'll ask my original query again.
> > 
> > Is there a way to have the index shown by the 'y' command limited to
> > those files that are NOT empty?
> 
> Not empty, or not containing new mail?

Not empty
...
> If the use-case _must_ be "NOT empty", then just use the mailbox file
> format, rather than maildir. IIRC, a mailbox file from which all mails
> have been deleted, is also deleted. A non-exsistent file can hardly be
> listed by 'y'.

I read some mailboxes not "owned" by my login account.  While I haven't
checked in quite some time, in the past I found that when the mailboxes
are automatically created the permissions don't allow me full access.
Thus I set them manually to //world as 660 and leave
them in place when empty.

Jon
-- 
Jon H. LaBadie j...@jgcomp.com
 11226 South Shore Rd.  (703) 787-0688 (H)
 Reston, VA  20190  (703) 935-6720 (C)


Re: omit empty mailboxes from list

2016-03-27 Thread Erik Christiansen
On 27.03.16 21:05, Erik Christiansen wrote:
> That's not what happens here, I hit 'c' and mutt immediately offers the
> mailbox with new mail which appears highest in the (one or more)
> "mailboxes" lines in my .muttrc.

Jon, if mutt isn't detecting new mail in the delivery mailboxes, then
it may be necessary to:

set check_mbox_size# Set only if new mail detection is unreliable
   # or doesn't work.

> If the use-case _must_ be "NOT empty", then just use the mailbox file
> format, rather than maildir. IIRC, a mailbox file from which all mails
> have been deleted, is also deleted. A non-exsistent file can hardly be
> listed by 'y'.

On reflection, that'd need:

set save_empty=no   # So empty mailboxes disappear.

Erik




Re: omit empty mailboxes from list

2016-03-27 Thread Erik Christiansen
On 26.03.16 15:10, Jon LaBadie wrote:
> I can see what you both are referring to.  There are big differences
> between 'c' and 'y' for my work style.  First, 'y' shows the files
> defined by the "mailboxes" parameter, the ones I'm looking for.  In
> contrast, 'c' shows the files defined by the "folder" parameter which
> in my case is not the receiving mailboxes, but the previously saved
> mail in ~/Mail (about 800 files). 

That's not what happens here, I hit 'c' and mutt immediately offers the
mailbox with new mail which appears highest in the (one or more)
"mailboxes" lines in my .muttrc. I.e. it not only serves as a serialised
version of the 'y' list, restricted to those with new mail (your
specified use-case), but also prioritises the list in the order given in
the "mailboxes" parameter. (Bonus points for that!)

E.g.: Send myself a test mail. Now hitting '.' for a quick check shows:

"New mail in /var/spool/mail/erik"

And hitting 'c' prompts:

Open mailbox ('?' for list): /var/spool/mail/erik

If another delivery mailbox appears earlier in "mailboxes", and has
mail, it'll take precedence. If no mailbox is proffered, then there is
no new mail. (As '.' would then confirm.)

Are you hitting '?' to go to the 800 file list?

> Another difference, 'y' immediately goes to the index where 'c' goes
> to a prompt on the status line with a suggested path.  That is where
> the '-' and up/down arrows can be used or a '?' entered to get to the
> index.

Used with a "mailboxes" parameter, 'c' automates the use-case you're
trying to achieve manually. (And very usefully adds priority)

> All useful learning thank you.  But I'll ask my original query again.
> 
> Is there a way to have the index shown by the 'y' command limited to
> those files that are NOT empty?

Not empty, or not containing new mail? I leave some read mail in
incoming mailboxes, such as earlier posts in this thread, until the
thread traffic peters out. That makes it easier to tag several posts, as
I have done here, to quote in my reply, using ";r" or ";L". There's no
need to have such a non-empty mailbox served up if there's no new traffic.

Once the thread is dead, useful posts can be archived, the rest deleted.

If the use-case _must_ be "NOT empty", then just use the mailbox file
format, rather than maildir. IIRC, a mailbox file from which all mails
have been deleted, is also deleted. A non-exsistent file can hardly be
listed by 'y'.

On 25.03.16 13:37, Will Yardley wrote:
> 
> If you define mailboxes that you expect *incoming* mail in via
> 'mailboxes' (e.g., mailboxes +foo, or mailboxes +foo*), 'change-folder'
> (bound to c by default, I believe), will cycle through mailboxes with
> new mail in the order they're defined.

That's the mutt way of handling Jon's use-case. No lists to muck with;
it's just automated.

Erik



Re: omit empty mailboxes from list

2016-03-27 Thread Erik Christiansen
On 26.03.16 10:02, Christian Ebert wrote:
> * Erik Christiansen on Saturday, March 26, 2016 at 19:54:16 +1100
> > To return to a mailbox which was read earlier in the mutt session,
> > in the index, press 'c' to initiate a mailbox change, then either:
> > 
> > a) type in the full name of the desired mailbox,
> > b) type a few characters, then hit  for autocompletion,
> > c) if b) meets multiple alternatives, hit  again, for a list.
> > d) hit , to cycle through visited mailboxes, till you're back.
> 
> e) hit - to go back to the previously visited mailbox

Ah, e) can go back only _one_ mailbox, then goes into an endless back
and forth loop with the last mailbox. That fails entirely to return
further up the history list of previously visited mailboxes. (The
express use-case presented.)

On 26.03.16 15:07, Christian Ebert wrote:
> * Erik Christiansen on Saturday, March 26, 2016 at 23:56:51 +1100
> > On 26.03.16 12:11, Christian Ebert wrote:
> >> * Erik Christiansen on Saturday, March 26, 2016 at 21:52:40 +1100
>
> No, you have to hit 'c' first.
> 
> >>>   "Key is not bound.  Press '?' for help."
> >> 
> >> No, 'c', and then - at the prompt.

Whoops, I read that wrong: "No c". :-(

But now that I can drive "c-", I can only conclude that it serves only
for oscillating between two mailboxes - a use-case which I've not
encountered.

Erik


Re: omit empty mailboxes from list

2016-03-26 Thread Jon LaBadie
On Sat, Mar 26, 2016 at 12:11:55PM +, Christian Ebert wrote:
> * Erik Christiansen on Saturday, March 26, 2016 at 21:52:40 +1100
> > On 26.03.16 10:02, Christian Ebert wrote:
> >> * Erik Christiansen on Saturday, March 26, 2016 at 19:54:16 +1100
> >>> To return to a mailbox which was read earlier in the mutt session,
> >>> in the index, press 'c' to initiate a mailbox change, then either:
> >>> 
> >>> a) type in the full name of the desired mailbox,
> >>> b) type a few characters, then hit  for autocompletion,
> >>> c) if b) meets multiple alternatives, hit  again, for a list.
> >>> d) hit , to cycle through visited mailboxes, till you're back.
> >> 
> >> e) hit - to go back to the previously visited mailbox
> > 
> > OK, but that is d) mapped to a different key.
> 
> No it isn't, the binding is 'c' as you wrote above for
>  which presents the 'Open mailbox' prompt. When I
> enter - at the prompt it takes me back to the previous folder,
> very much like cd does.
> 
> > Incidentally,
> > here '-' gives:   "Key is not bound.  Press '?' for help."
> 
> No, 'c', and then - at the prompt.
> 
> > I'm on Mutt 1.5.21, and default bindings may have changed since then.
> > (I have no binding for  in the index, so d) would seem to be
> > default.)
> 
>  the prompt goes up in history, it's not a command binding,
> and will show you what you previously entered (somewhat like in a
> shell), entering - at the prompt will not present the previously
> visited mailbox, only '-', will not expand by hitting tab, but
> after hitting enter take me to the previous mailbox.
> 

I can see what you both are referring to.  There are big differences
between 'c' and 'y' for my work style.  First, 'y' shows the files
defined by the "mailboxes" parameter, the ones I'm looking for.  In
contrast, 'c' shows the files defined by the "folder" parameter which
in my case is not the receiving mailboxes, but the previously saved
mail in ~/Mail (about 800 files). 

Another difference, 'y' immediately goes to the index where 'c' goes
to a prompt on the status line with a suggested path.  That is where
the '-' and up/down arrows can be used or a '?' entered to get to the
index.

All useful learning thank you.  But I'll ask my original query again.

Is there a way to have the index shown by the 'y' command limited to
those files that are NOT empty?

Jon
-- 
Jon H. LaBadie j...@jgcomp.com
 11226 South Shore Rd.  (703) 787-0688 (H)
 Reston, VA  20190  (703) 935-6720 (C)


Re: omit empty mailboxes from list

2016-03-26 Thread Christian Ebert
* Erik Christiansen on Saturday, March 26, 2016 at 23:56:51 +1100
> On 26.03.16 12:11, Christian Ebert wrote:
>> * Erik Christiansen on Saturday, March 26, 2016 at 21:52:40 +1100
>>> OK, but that is d) mapped to a different key.
>> 
>> No it isn't, the binding is 'c' as you wrote above for
>>  which presents the 'Open mailbox' prompt. When I
>> enter - at the prompt it takes me back to the previous folder,
>> very much like cd does.
> 
> You're right - according to the manual, I see. _But_ even when I change
> mailbox, then hit '-' without touching any other key, I still get:

No, you have to hit 'c' first.

>>>   "Key is not bound.  Press '?' for help."
>> 
>> No, 'c', and then - at the prompt.
> 
> There isn't any prompt when just sitting in the index.
> Pressing only '-' gives the error.

After hitting 'c' in pager or index I get this 'menu' or
'prompt':

Open mailbox ('?' for list): 

Then I can override some mailbox with a mailbox location or by
cycling through history with  and  ... or I enter '-'
and return takes me to the previously visited mailbox.

>>> I'm on Mutt 1.5.21, and default bindings may have changed since then.
>>> (I have no binding for  in the index, so d) would seem to be
>>> default.)
>> 
>>  the prompt goes up in history, it's not a command binding,
>> and will show you what you previously entered (somewhat like in a
>> shell), entering - at the prompt will not present the previously
>> visited mailbox, only '-', will not expand by hitting tab, but
>> after hitting enter take me to the previous mailbox.
> 
> Is that paragraph setting out to conflate 'c'  with some other use
> of , in an unrelated context?

No,  - or  for that matter cycle through history and
show the corresponding mailbox in the 'menu' or 'prompt' which
you can edit or tab complete etc. The '-' could be seen as an
unexpandable (no mailbox name is displayed) shortcut for 
once.

> When it's working, do repeated '-' step backwards through the previously
> visited mailboxes, as 'c'  does? (The manual is unclear, and I can't
> test it.)

No. It's like `cd -` in a shell: it does not cycle through
history, it always takes you to the previous mailbox, if done
repeatedly it toggles current mailbox with the previous one.

This seems outdated, I think also for your version:
http://www.mutt.org/doc/manual/manual-2.html#ss2.1

But here it's documented:
https://dev.mutt.org/hg/mutt/file/484b34e23f2a/doc/manual.xml.head#l505

-- 
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions


Re: omit empty mailboxes from list

2016-03-26 Thread Erik Christiansen
On 26.03.16 12:11, Christian Ebert wrote:
> * Erik Christiansen on Saturday, March 26, 2016 at 21:52:40 +1100
> > OK, but that is d) mapped to a different key.
> 
> No it isn't, the binding is 'c' as you wrote above for
>  which presents the 'Open mailbox' prompt. When I
> enter - at the prompt it takes me back to the previous folder,
> very much like cd does.

You're right - according to the manual, I see. _But_ even when I change
mailbox, then hit '-' without touching any other key, I still get:

> >"Key is not bound.  Press '?' for help."
> 
> No, 'c', and then - at the prompt.

There isn't any prompt when just sitting in the index.
Pressing only '-' gives the error.

> > I'm on Mutt 1.5.21, and default bindings may have changed since then.
> > (I have no binding for  in the index, so d) would seem to be
> > default.)
> 
>  the prompt goes up in history, it's not a command binding,
> and will show you what you previously entered (somewhat like in a
> shell), entering - at the prompt will not present the previously
> visited mailbox, only '-', will not expand by hitting tab, but
> after hitting enter take me to the previous mailbox.

Is that paragraph setting out to conflate 'c'  with some other use
of , in an unrelated context?

When it's working, do repeated '-' step backwards through the previously
visited mailboxes, as 'c'  does? (The manual is unclear, and I can't
test it.)

Erik


Re: omit empty mailboxes from list

2016-03-26 Thread Christian Ebert
* Erik Christiansen on Saturday, March 26, 2016 at 21:52:40 +1100
> On 26.03.16 10:02, Christian Ebert wrote:
>> * Erik Christiansen on Saturday, March 26, 2016 at 19:54:16 +1100
>>> To return to a mailbox which was read earlier in the mutt session,
>>> in the index, press 'c' to initiate a mailbox change, then either:
>>> 
>>> a) type in the full name of the desired mailbox,
>>> b) type a few characters, then hit  for autocompletion,
>>> c) if b) meets multiple alternatives, hit  again, for a list.
>>> d) hit , to cycle through visited mailboxes, till you're back.
>> 
>> e) hit - to go back to the previously visited mailbox
> 
> OK, but that is d) mapped to a different key.

No it isn't, the binding is 'c' as you wrote above for
 which presents the 'Open mailbox' prompt. When I
enter - at the prompt it takes me back to the previous folder,
very much like cd does.

> Incidentally,
> here '-' gives:   "Key is not bound.  Press '?' for help."

No, 'c', and then - at the prompt.

> I'm on Mutt 1.5.21, and default bindings may have changed since then.
> (I have no binding for  in the index, so d) would seem to be
> default.)

 the prompt goes up in history, it's not a command binding,
and will show you what you previously entered (somewhat like in a
shell), entering - at the prompt will not present the previously
visited mailbox, only '-', will not expand by hitting tab, but
after hitting enter take me to the previous mailbox.

-- 
\black\trash movie_MORALISK  ANSTALT_
"Nix verstanden."

--->> http://www.blacktrash.org/underdogma/moraliskanstalt.php


Re: omit empty mailboxes from list

2016-03-26 Thread Erik Christiansen
On 26.03.16 10:02, Christian Ebert wrote:
> * Erik Christiansen on Saturday, March 26, 2016 at 19:54:16 +1100
> > To return to a mailbox which was read earlier in the mutt session,
> > in the index, press 'c' to initiate a mailbox change, then either:
> > 
> > a) type in the full name of the desired mailbox,
> > b) type a few characters, then hit  for autocompletion,
> > c) if b) meets multiple alternatives, hit  again, for a list.
> > d) hit , to cycle through visited mailboxes, till you're back.
> 
> e) hit - to go back to the previously visited mailbox

OK, but that is d) mapped to a different key. Incidentally,
here '-' gives:   "Key is not bound.  Press '?' for help."

I'm on Mutt 1.5.21, and default bindings may have changed since then.
(I have no binding for  in the index, so d) would seem to be
default.)

Erik


Re: omit empty mailboxes from list

2016-03-26 Thread Christian Ebert
* Erik Christiansen on Saturday, March 26, 2016 at 19:54:16 +1100
> To return to a mailbox which was read earlier in the mutt session,
> in the index, press 'c' to initiate a mailbox change, then either:
> 
> a) type in the full name of the desired mailbox,
> b) type a few characters, then hit  for autocompletion,
> c) if b) meets multiple alternatives, hit  again, for a list.
> d) hit , to cycle through visited mailboxes, till you're back.

e) hit - to go back to the previously visited mailbox

-- 
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions


Re: omit empty mailboxes from list

2016-03-26 Thread Erik Christiansen
On 25.03.16 22:26, Jon LaBadie wrote:
> It isn't quite what I was looking for.  Sometimes I leave read
> mail in the mailbox and want to go back to it.  If I understand
> this function, the box I want may be skipped over.

To return to a mailbox which was read earlier in the mutt session,
in the index, press 'c' to initiate a mailbox change, then either:

a) type in the full name of the desired mailbox,
b) type a few characters, then hit  for autocompletion,
c) if b) meets multiple alternatives, hit  again, for a list.
d) hit , to cycle through visited mailboxes, till you're back.

Note that c) only presents the completion alternatives, not all 1197
mailboxes that I have. OK, only a few of them are delivery mailboxes.

And you've already found 'y' as a way back, as well.

Erik


Re: omit empty mailboxes from list

2016-03-25 Thread Jon LaBadie
On Fri, Mar 25, 2016 at 04:16:27PM -0700, Will Yardley wrote:
> On Fri, Mar 25, 2016 at 11:12:34PM +, Christian Ebert wrote:
> > 
> > May not be exactly what you want, but are you aware of the
> > next-unread-mailbox command?
> 
> Hah, does the same thing as the macro I posted that I have been using
> forever always something new to learn.
> 
Ain't that the truth!!

jl
-- 
Jon H. LaBadie j...@jgcomp.com
 11226 South Shore Rd.  (703) 787-0688 (H)
 Reston, VA  20190  (703) 935-6720 (C)


Re: omit empty mailboxes from list

2016-03-25 Thread Jon LaBadie
On Fri, Mar 25, 2016 at 11:12:34PM +, Christian Ebert wrote:
> * Jon LaBadie on Friday, March 25, 2016 at 14:36:17 -0400
...
> > 
> > Recently I've been trying to adapt to using the "y"
> > mutt command to list my mailboxes and select the one
> > I want to read next.  Unfortunately the mailbox list
> > includes the empty ones as well as ones with readable
> > mail.  Is there a way to eliminate the empty files
> > from the list prepared by the "y" command?
> 
> May not be exactly what you want, but are you aware of the
> next-unread-mailbox command?
> 
>>> End of included message <<<

No I was not.  Found it in the list of unbound functions.
Thanks, I've mapped it to a function key and will try it out.

It isn't quite what I was looking for.  Sometimes I leave read
mail in the mailbox and want to go back to it.  If I understand
this function, the box I want may be skipped over.  But I can
always fall back to one of the 50 aliases in my ".mailiases"
file.

jl
-- 
Jon H. LaBadie j...@jgcomp.com
 11226 South Shore Rd.  (703) 787-0688 (H)
 Reston, VA  20190  (703) 935-6720 (C)


Re: omit empty mailboxes from list

2016-03-25 Thread Will Yardley
On Fri, Mar 25, 2016 at 11:12:34PM +, Christian Ebert wrote:
> 
> May not be exactly what you want, but are you aware of the
> next-unread-mailbox command?

Hah, does the same thing as the macro I posted that I have been using
forever always something new to learn.

w



Re: omit empty mailboxes from list

2016-03-25 Thread Christian Ebert
* Jon LaBadie on Friday, March 25, 2016 at 14:36:17 -0400
> Like many others, procmail splits my incoming mail
> into many mailboxes.  My way of reading them is a
> set of shell aliases doing "mutt -f ..."  All begin
> with "m" (e.g. mm for this list) and "m" by itself
> lists the non-empty mailboxes.
> 
> So my mail reading consists of starting and quitting
> mutt many times as I switch among the mailboxes.
> 
> Recently I've been trying to adapt to using the "y"
> mutt command to list my mailboxes and select the one
> I want to read next.  Unfortunately the mailbox list
> includes the empty ones as well as ones with readable
> mail.  Is there a way to eliminate the empty files
> from the list prepared by the "y" command?

May not be exactly what you want, but are you aware of the
next-unread-mailbox command?

-- 
\black\trash movie _SAME  TIME  SAME  PLACE_
 --->> http://www.blacktrash.org/underdogma/stsp.php
\black\trash audio   _ANOTHER  TIME  ANOTHER  PLACE_
--->> http://www.blacktrash.org/underdogma/atap.html


Re: omit empty mailboxes from list

2016-03-25 Thread Will Yardley
On Fri, Mar 25, 2016 at 02:36:17PM -0400, Jon LaBadie wrote:
> So my mail reading consists of starting and quitting mutt many times
> as I switch among the mailboxes.
> 
> Recently I've been trying to adapt to using the "y" mutt command to
> list my mailboxes and select the one I want to read next.
> Unfortunately the mailbox list includes the empty ones as well as ones
> with readable mail.  Is there a way to eliminate the empty files from
> the list prepared by the "y" command?

If you define mailboxes that you expect *incoming* mail in via
'mailboxes' (e.g., mailboxes +foo, or mailboxes +foo*), 'change-folder'
(bound to c by default, I believe), will cycle through mailboxes with
new mail in the order they're defined. Or, if you do
=, tab should switch between a view of all mailboxes
and a list of mailboxes with new mail (with the count of new messages on
them).

macro index g "\r"
macro pager g "\r"

You can also do =f to complete to mailboxes starting
with 'f', or =foo to go to the mailbox 'foo'.

HTH.

w



omit empty mailboxes from list

2016-03-25 Thread Jon LaBadie
Like many others, procmail splits my incoming mail
into many mailboxes.  My way of reading them is a
set of shell aliases doing "mutt -f ..."  All begin
with "m" (e.g. mm for this list) and "m" by itself
lists the non-empty mailboxes.

So my mail reading consists of starting and quitting
mutt many times as I switch among the mailboxes.

Recently I've been trying to adapt to using the "y"
mutt command to list my mailboxes and select the one
I want to read next.  Unfortunately the mailbox list
includes the empty ones as well as ones with readable
mail.  Is there a way to eliminate the empty files
from the list prepared by the "y" command?

Jon
-- 
Jon H. LaBadie j...@jgcomp.com
 11226 South Shore Rd.  (703) 787-0688 (H)
 Reston, VA  20190  (703) 935-6720 (C)


eliminate empty mailboxes from 'y' index

2016-03-01 Thread Jon LaBadie
I have a large set of aliases to start mutt on my
collection of mail boxes.  So I typically enter
and exit mutt many times.

I've been looking at the 'y' command to see if I
should change my behavior.  One problem for me is
the index displays all my mail boxes including
empty ones.

Is there a way to eliminate empty mail boxes from
the index display?

Jon
-- 
Jon H. LaBadie j...@jgcomp.com
 11226 South Shore Rd.  (703) 787-0688 (H)
 Reston, VA  20190  (703) 935-6720 (C)


How to refresh mailboxes view (y)

2016-01-13 Thread mutt-users
Hello,

I am mutt user since many many years. And I discover always some new
features. Recently I was started using key (y) to view some mailboxes.
And I get the view.

Something like this:

1   5 imaps://mail.example.com:993/INBOX 
2   0 imaps://mail.example.com:993/INBOX.Archive
3   0 imaps://mail.example.com:993/INBOX.Drafts 
4   0 imaps://mail.example.com:993/INBOX.folder1 
5   0 imaps://mail.example.com:993/INBOX.folder2.com 
6   5 imaps://mail.example.com:993/INBOX.folder4

Now, some of those folders are not accurate any more. But I cannot
delete them from the list or refresh the list. I get the error: mailbox
does not exist, or must be subscribed to. And it does not exist, but it
is still on the list.

I am using headercache. Those are IMAP folders.

I would like to refresh the list to get it accurate. Imagine, I have
many folders there I need to manage.

The keycode is (y). I have tried searching for option, but could not
find.

Thank you much.
Rosario


Re: How to refresh mailboxes view (y)

2016-01-13 Thread mutt-users
I guess, I did not try the option (u), to simply the unsubscribe the
folder, and after (y) (y) I could see the new fresh list of accurate
folders.

On Wed, Jan 13, 2016 at 10:37:02PM +0100, Tomas Nordin wrote:
> > features. Recently I was started using key (y) to view some mailboxes.
> > And I get the view.
> 
> Thanks, great new discovery now for me too.
> 
> > Something like this:
> > 
> > 1   5 imaps://mail.example.com:993/INBOX 
> > 2   0 imaps://mail.example.com:993/INBOX.Archive
> > 3   0 imaps://mail.example.com:993/INBOX.Drafts 
> > 4   0 imaps://mail.example.com:993/INBOX.folder1 
> > 5   0 imaps://mail.example.com:993/INBOX.folder2.com 
> > 6   5 imaps://mail.example.com:993/INBOX.folder4


Re: How to refresh mailboxes view (y)

2016-01-13 Thread Tomas Nordin
> features. Recently I was started using key (y) to view some mailboxes.
> And I get the view.

Thanks, great new discovery now for me too.

> Something like this:
> 
> 1   5 imaps://mail.example.com:993/INBOX 
> 2   0 imaps://mail.example.com:993/INBOX.Archive
> 3   0 imaps://mail.example.com:993/INBOX.Drafts 
> 4   0 imaps://mail.example.com:993/INBOX.folder1 
> 5   0 imaps://mail.example.com:993/INBOX.folder2.com 
> 6   5 imaps://mail.example.com:993/INBOX.folder4
> 
> Now, some of those folders are not accurate any more. But I cannot
> delete them from the list or refresh the list. I get the error: mailbox
> does not exist, or must be subscribed to. And it does not exist, but it
> is still on the list.

I have in my muttrc a line such as:

mailboxes "+posteo/Drafts" "+posteo/INBOX" "+posteo/Sent" ...

using a local Maildir, offlineimap helped me produce the list, which I
can of course tune once produced. Now, when I tried (y), I get exactly
the boxes I have specified as mailboxes.

Point being, does a line like that in your muttrc maybe help?


signature.asc
Description: Digital signature


Re: mutt and mailboxes

2015-08-03 Thread Joel Dahl
On Sun, Aug 02, 2015 at 07:18:26PM -0700, Ian Zimmerman wrote:
 On 2015-08-01 14:33 +0200, Joel Dahl wrote:
 
  I have lots of mailboxes, and I'm used to pressing y to bring up the list of
  mailboxes in order to switch between them. With mutt IMAP, my list of
  mailboxes looks like this:
  
http://mirror.vnode.se/upload/mutt-mailbox-imap.png
 
 Really?  What version of mutt is this?  I haven't been able to get this,
 or even a yes/no new mail flag column for the IMAP browser view.  This
 is by far the main reason for my current setup, that is running mutt
 over ssh to the server.

This is Mutt 1.5.23 (2014-03-12) running on FreeBSD 10.1. Installed with the
FreeBSD pkg tool. There isn't much IMAP specific configuration in my .muttrc, 
except
for set folder to imaps:// etc. Only thing I found was:

unset imap_passive
set imap_check_subscribed

  It's very easy to see how many unread mails I have in each mailbox. With
  offlineimap and a local Maildir it isn't quite so clear though, this is what
  it looks like if I press y:
  
http://mirror.vnode.se/upload/mutt-mailbox-maildir.png
 
 The problem is clearly the 4th field (or 3rd if counting from 0).  It
 looks like the file size; is that really important to you?  If not I'd
 just omit it from folder_format.  You can see its current value by doing
 :enterset ?folder_formatenter.  Just remove the %s bit and set the
 modified value in your .muttrc.

Yea, folder_format fixed most of my problems, except for not being able to see
exactly how may new mails each folder has. Thanks.

-- 
Joel


Re: mutt and mailboxes

2015-08-02 Thread Ian Zimmerman
On 2015-08-01 14:33 +0200, Joel Dahl wrote:

 I have lots of mailboxes, and I'm used to pressing y to bring up the list of
 mailboxes in order to switch between them. With mutt IMAP, my list of
 mailboxes looks like this:
 
   http://mirror.vnode.se/upload/mutt-mailbox-imap.png

Really?  What version of mutt is this?  I haven't been able to get this,
or even a yes/no new mail flag column for the IMAP browser view.  This
is by far the main reason for my current setup, that is running mutt
over ssh to the server.

 It's very easy to see how many unread mails I have in each mailbox. With
 offlineimap and a local Maildir it isn't quite so clear though, this is what
 it looks like if I press y:
 
   http://mirror.vnode.se/upload/mutt-mailbox-maildir.png

The problem is clearly the 4th field (or 3rd if counting from 0).  It
looks like the file size; is that really important to you?  If not I'd
just omit it from folder_format.  You can see its current value by doing
:enterset ?folder_formatenter.  Just remove the %s bit and set the
modified value in your .muttrc.

If the file size _is_ relevant, the solution is to use a fixed-width
field and justify the contents, something like (untested) %8.8s

-- 
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.



Re: mutt and mailboxes

2015-08-01 Thread spaceman

Hi Joel,


What a mess. Is it possible to get list of mailboxes looking more similar to
the first example?


Nope,
http://dev.mutt.org/trac/wiki/MuttFaq/Display

Having seen the IMAP folder format I wanted something similar, but apparently 
it ain't possible. The variable which controls it folder_format which is 
documented in the man page for muttrc.


Regards,
spaceman


pgpeWMYbYfYJ0.pgp
Description: PGP signature


Re: mutt and mailboxes

2015-08-01 Thread Patrick Shanahan
* Joel Dahl j...@vnode.se [08-01-15 08:37]:
 Hi,
 
 I've been using mutt with IMAP for many years and I haven't touched the
 .muttrc config for ~5 years or so because it's basically working. However,
 today I played around with offlineimap because lately I've been traveling a
 lot and need access to all my mail while offline, and it seems to do the job
 just fine. Changing my mutt config to offlineimap and a local Maildir instead 
 of
 the built-in IMAP support was quite easy, but I noticed one annoying thing 
 that
 I haven't been able to properly fix yet.
 
 I have lots of mailboxes, and I'm used to pressing y to bring up the list of
 mailboxes in order to switch between them. With mutt IMAP, my list of
 mailboxes looks like this:
 
   http://mirror.vnode.se/upload/mutt-mailbox-imap.png
 
 It's very easy to see how many unread mails I have in each mailbox. With
 offlineimap and a local Maildir it isn't quite so clear though, this is what
 it looks like if I press y:
 
   http://mirror.vnode.se/upload/mutt-mailbox-maildir.png
 
 What a mess. Is it possible to get list of mailboxes looking more similar to
 the first example?

I am guessing, but perhaps adjust/play with index_format.

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://linuxcounter.net


mutt and mailboxes

2015-08-01 Thread Joel Dahl
Hi,

I've been using mutt with IMAP for many years and I haven't touched the
.muttrc config for ~5 years or so because it's basically working. However,
today I played around with offlineimap because lately I've been traveling a
lot and need access to all my mail while offline, and it seems to do the job
just fine. Changing my mutt config to offlineimap and a local Maildir instead of
the built-in IMAP support was quite easy, but I noticed one annoying thing that
I haven't been able to properly fix yet.

I have lots of mailboxes, and I'm used to pressing y to bring up the list of
mailboxes in order to switch between them. With mutt IMAP, my list of
mailboxes looks like this:

  http://mirror.vnode.se/upload/mutt-mailbox-imap.png

It's very easy to see how many unread mails I have in each mailbox. With
offlineimap and a local Maildir it isn't quite so clear though, this is what
it looks like if I press y:

  http://mirror.vnode.se/upload/mutt-mailbox-maildir.png

What a mess. Is it possible to get list of mailboxes looking more similar to
the first example?

Thanks, :-)
-- 
Joel


Re: mutt and mailboxes

2015-08-01 Thread Joel Dahl
On Sat, Aug 01, 2015 at 07:32:16PM +0100, spaceman wrote:
 Hi Joel,
 
 What a mess. Is it possible to get list of mailboxes looking more similar to
 the first example?
 
 Nope,
 http://dev.mutt.org/trac/wiki/MuttFaq/Display
 
 Having seen the IMAP folder format I wanted something similar, but apparently 
 it ain't possible. The variable which controls it folder_format which is 
 documented in the man page for muttrc.
 
 Regards,
 spaceman

Thank you. With folder_format I can at least improve the format somewhat.

-- 
Joel


Re: mutt and mailboxes

2015-08-01 Thread Jon LaBadie
On Sat, Aug 01, 2015 at 10:06:36PM +0200, Joel Dahl wrote:
 On Sat, Aug 01, 2015 at 07:32:16PM +0100, spaceman wrote:
  Hi Joel,
  
  What a mess. Is it possible to get list of mailboxes looking more similar 
  to
  the first example?
  
  Nope,
  http://dev.mutt.org/trac/wiki/MuttFaq/Display
  
  Having seen the IMAP folder format I wanted something similar, but 
  apparently 
  it ain't possible. The variable which controls it folder_format which is 
  documented in the man page for muttrc.
  
  Regards,
  spaceman
 
 Thank you. With folder_format I can at least improve the format somewhat.
 

You could lie to mutt about the width of your terminal screen and
see if it messes anything else up.

  $ COLUMNS=200 mutt

Jon
-- 
Jon H. LaBadie j...@jgcomp.com
 11226 South Shore Rd.  (703) 787-0688 (H)
 Reston, VA  20190  (703) 935-6720 (C)


Organize mailboxes

2013-09-21 Thread Josef Bailey
Hello all 

Today i have been adding lables in gmail (e.g Mutt_users)

Today in mutt im looking at the sidebar and all my mailboxes are there but 
there all out of wack

i have


Subscried folders up here
Below i have

INBOX
ALL/Mail
TRASH

 Under trash i have a subscribed mailbox ?

How can i organize my mailboxes in mutt where all my subsribed mailboxes are on 
top of lets say INBOX / ALL Mail / Trash

Thanks
Josef


Re: Unsetting mailboxes?

2013-07-09 Thread Tycho Andersen
On Mon, Jul 08, 2013 at 11:36:49AM -0700, Gary Johnson wrote:
 On 2013-07-08, Tycho Andersen wrote:
  Hi all,
  
  I'm switching between two different imap servers which have some
  different mailboxes that I would like to monitor. Unfortunately, mutt
  has no way to monitor two imap servers at once, so I'd like to create
  two modes, one for each server, where when you're in one mode, you see
  one list of mail boxes, and vise versa.
  
  To do this, I need to clear the `mailboxes' list and set it to
  something new, so that only the mailboxes for that server are present.
  Is there a way to do this?
 
 You can use the unmailboxes command.  See the mutt manual.

Ah, yes, thanks very much!

\t


Unsetting mailboxes?

2013-07-08 Thread Tycho Andersen
Hi all,

I'm switching between two different imap servers which have some
different mailboxes that I would like to monitor. Unfortunately, mutt
has no way to monitor two imap servers at once, so I'd like to create
two modes, one for each server, where when you're in one mode, you see
one list of mail boxes, and vise versa.

To do this, I need to clear the `mailboxes' list and set it to
something new, so that only the mailboxes for that server are present.
Is there a way to do this?

Thanks,

Tycho


Re: Unsetting mailboxes?

2013-07-08 Thread Gary Johnson
On 2013-07-08, Tycho Andersen wrote:
 Hi all,
 
 I'm switching between two different imap servers which have some
 different mailboxes that I would like to monitor. Unfortunately, mutt
 has no way to monitor two imap servers at once, so I'd like to create
 two modes, one for each server, where when you're in one mode, you see
 one list of mail boxes, and vise versa.
 
 To do this, I need to clear the `mailboxes' list and set it to
 something new, so that only the mailboxes for that server are present.
 Is there a way to do this?

You can use the unmailboxes command.  See the mutt manual.

Regards,
Gary



Re: mutt and not really read only mailboxes

2012-08-28 Thread Derek Martin
On Fri, Aug 24, 2012 at 08:06:58AM +0200, Joerg Dorchain wrote:
 On Thu, Aug 23, 2012 at 01:49:07PM -0500, Derek Martin wrote:
  
  Not really.  You can't really fix this.  If mutt can't lock the folder
  then other processes (e.g. the MDA) can change the contents out from
  under Mutt while it's reading the file, potentially resulting in an
  inconsistent state.
 
 Actually the MTA just appends to the file. It can get messy when a
 second mutt or so with write access changes the mbox more
 arbitrarily.

You can't assume that.  Well, YOU can -- it's probably true in most
cases -- but Mutt can't assume that it will always be true.  Someone
may have an MDA (not MTA, FWIW) that makes arbitrary changes to the
mail spool based on some criteria.  Mutt doesn't know what programs
are accessing the mail spool, or how, or why.  Another instance of
Mutt is far from the only thing that could rewrite your mailbox out
from under you.

  But, there's probably not really any good reason to read mail from a
  read-only NFS mount, so just stop doing that, and your problem should
  go away. 
 
 The main reason is to see non-text without IO-redirection.

I don't really understand what you mean by this...  Seeing non-text
involves writing a copy of the attachment/message part to a temp file
and running a viewer on it... there's no I/O redirection AFAIK, and
I'm not sure why it would matter if there were...  In any event, I
stand by what I said: there's probably no good reason to do this, and
certainly mutt makes the assumption that it can write to the
filesystem -- a very reasonable assumption, given what it does.

 Readonly because I liked to try with least possible privileges.

Well as you're seeing, read-only actually is not the least possible
privileges.  For some operations you need to lock, and you can't do
that without write access on the filesystem.  Or, there might be a
hack to make it work, but if so it's not something that belongs in
Mutt generally.

   - Dot-locking is (or at least was, and may still be) unreliable over NFS
   - POSIX locking (i.e. fctnl()) is not.
 
 I know. From reading the source, I am more puzzled what is really
 happening. The mx_lock_file function tries fcntl first, and only if this
 fails tries dotlocking. fcntl()-locking works at least once upon
 startup. I'll do more debugging to get more insight into this.

A read-only lock should succeed IIRC...  My guess is, after you do
some operations to the mail box, mutt is trying to obtain a write lock
so that it can update message flags, or what have you, and it can't.
I'd need to study the code to really be sure what's going on, but I
don't think it's worth my time to do so...  I don't think this is
going to work with Mutt today, and I don't think it's worth anyone's
time to try to make it work in future Mutt.  

-- 
Derek D. Martinhttp://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.



pgpQwsPxfyvMw.pgp
Description: PGP signature


Re: mutt and not really read only mailboxes

2012-08-24 Thread Joerg Dorchain
On Thu, Aug 23, 2012 at 01:49:07PM -0500, Derek Martin wrote:
 
 Not really.  You can't really fix this.  If mutt can't lock the folder
 then other processes (e.g. the MDA) can change the contents out from
 under Mutt while it's reading the file, potentially resulting in an
 inconsistent state.

Actually the MTA just appends to the file. It can get messy when a
second mutt or so with write access changes the mbox more
arbitrarily.
 
 But, there's probably not really any good reason to read mail from a
 read-only NFS mount, so just stop doing that, and your problem should
 go away. 

The main reason is to see non-text without IO-redirection.
Readonly because I liked to try with least possible privileges.

  - Dot-locking is (or at least was, and may still be) unreliable over NFS
  - POSIX locking (i.e. fctnl()) is not.

I know. From reading the source, I am more puzzled what is really
happening. The mx_lock_file function tries fcntl first, and only if this
fails tries dotlocking. fcntl()-locking works at least once upon
startup. I'll do more debugging to get more insight into this.

Bye,

Joerg


signature.asc
Description: Digital signature


mutt and not really read only mailboxes

2012-08-23 Thread Joerg Dorchain
Hello,

I have a setup where my MTA delivers mail to an mbox file, which
then is in turn exported via nfs read only to the client where
mutt is running. Main purpose of this construction is viewing
certain attachments.

While all this works fine the first time mutt is started, after a
while there is the situation that new mail arrives, however the
mutt instance with the read only filesystem does not notice.

Would it be possible to make mutt check for changes to the
mailbox, even when this is located on a read-only filesystem?

Bye,

Joerg


signature.asc
Description: Digital signature


Re: mutt and not really read only mailboxes

2012-08-23 Thread Christian Brabandt
On Thu, August 23, 2012 08:53, Joerg Dorchain wrote:
 I have a setup where my MTA delivers mail to an mbox file, which
 then is in turn exported via nfs read only to the client where
 mutt is running. Main purpose of this construction is viewing
 certain attachments.

 While all this works fine the first time mutt is started, after a
 while there is the situation that new mail arrives, however the
 mutt instance with the read only filesystem does not notice.

 Would it be possible to make mutt check for changes to the
 mailbox, even when this is located on a read-only filesystem?

Try the check_mbox_size option.

regards,
Christian



Re: mutt and not really read only mailboxes

2012-08-23 Thread Joerg Dorchain
On Thu, Aug 23, 2012 at 10:28:35AM +0200, Christian Brabandt wrote:
 On Thu, August 23, 2012 08:53, Joerg Dorchain wrote:
  I have a setup where my MTA delivers mail to an mbox file, which
  then is in turn exported via nfs read only to the client where
  mutt is running. Main purpose of this construction is viewing
  certain attachments.
 
  While all this works fine the first time mutt is started, after a
  while there is the situation that new mail arrives, however the
  mutt instance with the read only filesystem does not notice.
 
  Would it be possible to make mutt check for changes to the
  mailbox, even when this is located on a read-only filesystem?
 
 Try the check_mbox_size option.

Does not have any effects. The exported filesystem has relatime
option set, which are correct according ls -lu.

If just seems that mutt does not check for new mails at all when
it considers a mailbox read only.

Bye,

Joerg



signature.asc
Description: Digital signature


Re: mutt and not really read only mailboxes

2012-08-23 Thread Joerg Dorchain
On Thu, Aug 23, 2012 at 11:39:25AM +0200, Joerg Dorchain wrote:
 
 If just seems that mutt does not check for new mails at all when
 it considers a mailbox read only.

I need to correct myself: With an strace, I see that mutt does a
stat() on the mbox file with every keypress while in the index
screen, the stat() returns the proper size and times.

However, it then forks the mutt_dotlock process, which fails
because it the filesystem with the mbox is readonly. 

The source from mbox.c reads
if (mbox_lock_mailbox (ctx, 0, 0) == -1)
{
  mutt_unblock_signals ();
  /* we couldn't lock the mailbox, but nothing serious happened:
   * probably the new mail arrived: no reason to wait till we can
   * parse it: we'll get it on the next pass
   */
  return (M_LOCKED);
}

Needless to say the assumption expressed in the comments does not
hold.

Would this finding justify a bug report?
A solution might be to add a special case for following readonly
mailboxes (both read only file and file on read only filesystem),
The rest of the logic in the check_mailbox function is correct
here. 

The current workaround of exiting and restarting mutt seems quite
cumbersome to me.

Bye,

Joerg


signature.asc
Description: Digital signature


Re: mutt and not really read only mailboxes

2012-08-23 Thread Derek Martin
On Thu, Aug 23, 2012 at 01:24:40PM +0200, Joerg Dorchain wrote:
 However, it then forks the mutt_dotlock process, which fails
 because it the filesystem with the mbox is readonly. 
 
 The source from mbox.c reads
 if (mbox_lock_mailbox (ctx, 0, 0) == -1)
 {
   mutt_unblock_signals ();
   /* we couldn't lock the mailbox, but nothing serious happened:
* probably the new mail arrived: no reason to wait till we can
* parse it: we'll get it on the next pass
*/
   return (M_LOCKED);
 }
 
 Needless to say the assumption expressed in the comments does not
 hold.
 
 Would this finding justify a bug report?

Not really.  You can't really fix this.  If mutt can't lock the folder
then other processes (e.g. the MDA) can change the contents out from
under Mutt while it's reading the file, potentially resulting in an
inconsistent state.

But, there's probably not really any good reason to read mail from a
read-only NFS mount, so just stop doing that, and your problem should
go away.  If the mail is local, read it locally; if you must use NFS,
then there are some other considerations.  You may want to swtich to
maildir to avoid locking problems entirely.  Or if not, and you're on
Linux, you should know that:

 - Dot-locking is (or at least was, and may still be) unreliable over NFS
 - POSIX locking (i.e. fctnl()) is not.

So Mutt's default locking options should work for you, since it uses
both dot-locking (unreliable) and fcntl() (reliable).  Also note that
on other Unix systems, the opposite has historically been typically
true, so you'll get plenty of people telling you not to trust that.
But the Linux open() man page documents the reason why the dot locking
doesn't work, and tells you to use fcntl() instead.  There WERE some
serious bugs in Linux's lockd that made all forms of locking over NFS
not reliable on Linux, but those were fixed c. 2001 or so.


-- 
Derek D. Martinhttp://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.



pgp29MsZGsYzW.pgp
Description: PGP signature


Re: SOLVED Re: gmail imap specifying mailboxes

2012-05-06 Thread Indulekha
On Sat, May 05, 2012 at 11:21:35AM -0500, Indulekha wrote:
 I can't imagine why, but it works very well for me now.
 The solution was as follows:
 
 set spoolfile =imaps://imap.gmail.com:993  
 set folder =imaps://imap.gmail.com:993/ 
 unmailboxes +[Gmail]/All Mail
 mailboxes imaps://imap.gmail.com:993/INBOX 
 imaps://imap.gmail.com:993/[Gmail]/Sent Mail 
 imaps://imap.gmail.com:993/[Gmail]/Drafts 
 imaps://imap.gmail.com:993/bhakti imaps://imap.gmail.com:993/debian-user 
 imaps://imap.gmail.com:993/family imaps://imap.gmail.com:993/mutt-users 
 imaps://imap.gmail.com:993/reference 
  
 I'd swear I'd tried exactly this before, but perhaps it was the trailing '/' 
 at the end of 'set folder' vs specifying 'INBOX that did it
 Wen through so many permutations I'm not sure anymore...
 

Also, the shorthand form of +family, +[Gmail]/Sent Mail, etc is 
just fine.

Apologies for the noise, it's working as it's supposed to no problem.
Guess I was just having a senior moment, not sure if it was my eyes 
or my brain that was to blame...

-- 
❤ ♫ ❤ ♫ ❤ ♫ ❤   
 Indulekha 



gmail imap specifying mailboxes

2012-05-05 Thread Indulekha
Greetings,

Been mostly happy using mutt with gmail, except for the 
listing of all subscribed mailboxes -- I want to list only 
certain mailboxes, including a few user-created ones. 
All the instructions I've found for the mailboxes command 
fail to result in fully functional listings. I seem to have 
succeeded at getting them to show in the sidebar (using the 
patch, of course), and I can use that to switch to them, but 
when I hit 'c' followed by '?' INBOX is the only one that 
shows. Anyone here succeed at manually specifying gmail imap 
boxes (labels)?

Whn I try the 'normal' way (+nameofmailbox, =[Gmail]/Drafts, 
etc) I get non-functional listings in the sidebar, nothing 
from using 'c' '?', and nothing from 'c' =nameofmailbox. 

Here's the relevant portion of muttrc:

mailboxes imaps://imap.gmail.com:993/INBOX 
imaps://imap.gmail.com:993/[Gmail]/Sent Mail 
imaps://imap.gmail.com:993/[Gmail]/Drafts imaps://imap.gmail.com:993/bhakti 
imaps://imap.gmail.com:993/debian-user imaps://imap.gmail.com:993/family 
imaps://imap.gmail.com:993/mutt-users imaps://imap.gmail.com:993/reference

TIA!
-- 
❤ ♫ ❤ ♫ ❤ ♫ ❤   
 Indulekha 



Re: gmail imap specifying mailboxes

2012-05-05 Thread David Champion
* On 05 May 2012, Indulekha wrote: 
 
 mailboxes imaps://imap.gmail.com:993/INBOX 
 imaps://imap.gmail.com:993/[Gmail]/Sent Mail 
 imaps://imap.gmail.com:993/[Gmail]/Drafts 
 imaps://imap.gmail.com:993/bhakti imaps://imap.gmail.com:993/debian-user 
 imaps://imap.gmail.com:993/family imaps://imap.gmail.com:993/mutt-users 
 imaps://imap.gmail.com:993/reference

So, this line works, but you want to use the shorthand =reference,
=mutt-users, etc?  Or neither works?

You should be able to use:

folder imaps://imap.gmail.com:993/
mailboxes +INBOX +[Gmail]/Sent Mail +[Gmail]/Drafts +bhakti ...

although I've never tried with gmail and am not sure whether there are
problems with [Gmail] or with spaces.

-- 
David Champion • d...@uchicago.edu • IT Services • University of Chicago


Re: gmail imap specifying mailboxes

2012-05-05 Thread Indulekha
On Sat, May 05, 2012 at 07:53:18AM -0500, David Champion wrote:
 * On 05 May 2012, Indulekha wrote: 
  
  mailboxes imaps://imap.gmail.com:993/INBOX 
  imaps://imap.gmail.com:993/[Gmail]/Sent Mail 
  imaps://imap.gmail.com:993/[Gmail]/Drafts 
  imaps://imap.gmail.com:993/bhakti 
  imaps://imap.gmail.com:993/debian-user 
  imaps://imap.gmail.com:993/family imaps://imap.gmail.com:993/mutt-users 
  imaps://imap.gmail.com:993/reference
 
 So, this line works, but you want to use the shorthand =reference,
 =mutt-users, etc?  Or neither works?
 
 You should be able to use:
 
 folder imaps://imap.gmail.com:993/
 mailboxes +INBOX +[Gmail]/Sent Mail +[Gmail]/Drafts +bhakti ...
 
 although I've never tried with gmail and am not sure whether there are
 problems with [Gmail] or with spaces.
 

Thanks for the reply, David.
Perhaps I was too brief, but yes, I started out with exactly 
what you suggest and it does not work. With or without quotes, 
using + or = before mailbox names, and just about every 
variation I could think of. I get listings when toggling sidebar
visibilty, but they are all fake, showing 0 messages, and 
'c' '?' shows nothing but INBOX (specified under 'set folder', 
of course). I'm thinking it's either an imap bug (compiled with 
mutt's built-in imap on debian) or Google has begun using some 
special sauce, so now it's imap_check_subscribed or you get 
locked out. I hope not the latter!

Hopefully, it's just something I overlooked but having tried 
so many variations and having read about 100 pages on the web 
about this, nothing has come up. It's rather vexing...

-- 
❤ ♫ ❤ ♫ ❤ ♫ ❤   
 Indulekha 



SOLVED Re: gmail imap specifying mailboxes

2012-05-05 Thread Indulekha
I can't imagine why, but it works very well for me now.
The solution was as follows:

set spoolfile =imaps://imap.gmail.com:993  
set folder =imaps://imap.gmail.com:993/ 
unmailboxes +[Gmail]/All Mail
mailboxes imaps://imap.gmail.com:993/INBOX 
imaps://imap.gmail.com:993/[Gmail]/Sent Mail 
imaps://imap.gmail.com:993/[Gmail]/Drafts imaps://imap.gmail.com:993/bhakti 
imaps://imap.gmail.com:993/debian-user imaps://imap.gmail.com:993/family 
imaps://imap.gmail.com:993/mutt-users imaps://imap.gmail.com:993/reference 
 
I'd swear I'd tried exactly this before, but perhaps it was the trailing '/' 
at the end of 'set folder' vs specifying 'INBOX that did it
Wen through so many permutations I'm not sure anymore...

-- 
❤ ♫ ❤ ♫ ❤ ♫ ❤   
 Indulekha 



Re: Utility to help building a list of mailboxes on the fly

2012-03-27 Thread Christian Ebert
* Dmitry Marakasov on Monday, March 26, 2012 at 21:12:24 +0400
 I have mutt set up to generate a list of mailboxes on the startup
 automatically (in a way similar to what is written under `Building
 a list of mailboxes on the fly' of http://wiki.mutt.org/?ConfigTricks).
 This is really convenient as I have many mailboxes which are created
 automatically with procmail, however with time it becomes uncomfortably
 slow, as find(1) has to stat()'s each file it encounters, and that
 includes all the mail message files, while in my case there're 250k
 of them. -maxdepth option of find won't help either, as I have
 maildirs on a different levels of filesystem hierarchy.

Not if you play around with find's -prune option:

mailboxes `$SHELL -c \`find ~/Maildir -type d \( -name cur -o -name tmp -o 
-name new -execdir pwd \; \) -prune \``

which can be further simplified if your find provides -printf.

 To fix that, I've written a simple utility which I'd like to announce.
 The utility traverses a directory hierarchy and prints names of
 mailboxes (maildirs) it finds in mutt-compatible format. Unlike
 find(1) method documented in the wiki it does not descend into
 maildirs themselves, thus is a lot faster.
 
  Invocation:
 $ findmaildirs ~/.mail
 +inbox +archives/foo +archives/bar +maillists/freebsd/ports
 +maillists/freebsd/announce +maillists/lkml ...
 
  Using in mutt:
 mailboxes `findmaildirs ~/.mail`
 
  GitHub project page:
 https://github.com/AMDmi3/findmaildirs
 
  FreeBSD port:
 http://www.freshports.org/mail/findmaildirs
 
  OpenSUSE build service page with some RPMs:
 https://build.opensuse.org/package/show?package=findmaildirsproject=home%3AAMDmi3

-- 
Python Mutt utilities --- https://bitbucket.org/blacktrash/muttils


Utility to help building a list of mailboxes on the fly

2012-03-26 Thread Dmitry Marakasov
Hi!

I have mutt set up to generate a list of mailboxes on the startup
automatically (in a way similar to what is written under `Building
a list of mailboxes on the fly' of http://wiki.mutt.org/?ConfigTricks).
This is really convenient as I have many mailboxes which are created
automatically with procmail, however with time it becomes uncomfortably
slow, as find(1) has to stat()'s each file it encounters, and that
includes all the mail message files, while in my case there're 250k
of them. -maxdepth option of find won't help either, as I have
maildirs on a different levels of filesystem hierarchy.

To fix that, I've written a simple utility which I'd like to announce.
The utility traverses a directory hierarchy and prints names of
mailboxes (maildirs) it finds in mutt-compatible format. Unlike
find(1) method documented in the wiki it does not descend into
maildirs themselves, thus is a lot faster.

  Invocation:
$ findmaildirs ~/.mail
+inbox +archives/foo +archives/bar +maillists/freebsd/ports
+maillists/freebsd/announce +maillists/lkml ...

  Using in mutt:
mailboxes `findmaildirs ~/.mail`

  GitHub project page:
https://github.com/AMDmi3/findmaildirs

  FreeBSD port:
http://www.freshports.org/mail/findmaildirs

  OpenSUSE build service page with some RPMs:
https://build.opensuse.org/package/show?package=findmaildirsproject=home%3AAMDmi3

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amd...@amdmi3.ru  ..:  jabber: amd...@jabber.ruhttp://www.amdmi3.ru


Re: Custom labels for mailboxes listed in sidebar

2012-01-17 Thread Andreas Kalex
Hi,
does anyone have a answer to this problem? I've a similar one.
I run dovecot as an imap-server and sort my mails in a folder in maildir format.
So some of the folders have longer names and looks like:
~/.Mailinglisten.emacs_orgmode ~/Maildir/.Mailinglisten.Mutt

When using them in the sidebar, I see only .Mailingli 
with a sidebar_width=22
Can I shorten the name or use an alias or something like this

Andreas
* postman_miler postmanmi...@gmail.com wrote on 29.01.2010 at 17:15:
 I'm using mutt version 1.5.18 with sidebar patch and have several Gmail IMAP 
 mailboxes (20+) listed in my muttrc file:
 
 ...
   set folder=imaps://f...@imap.gmail.com
   mailboxes =INBOX
 ...
   account-hook imaps://f...@imap.gmail.com/ 'set imap_user=f...@gmail.com 
 imap_pass=bar'
 ...
 
 
 In sidebar, they are all listed as INBOX and I can't be sure which is which 
 just by looking at them.
 Is there a way to change the text displayed for each listed mailbox or to 
 somehow distinguish between them, without accesing them first?
 


Re: add USER mail into mutt mailboxes list

2011-12-16 Thread stardiviner
= On [2011-12-15 23:36:59 -0500]:
 rj Said: 
 On Fri 16 at 09:43 AM +1100, Cameron Simpson c...@zip.com.au wrote:
 
  On 15Dec2011 22:00, stardiviner numbch...@gmail.com wrote:
  | I use mailboxes like this:
  | 
  | mailboxes =/var/mail/chris
  | mailboxes =Python
  | mailboxes =Python/python
  | mailboxes =Python/comp-lang-py
  | mailboxes =Python/Django
  
  It will be mbox.
  
  You need to drop the = from your mailboxes line for the system spool:
  
mailboxes /var/mail/chris
  
  This has nothing to do with the mailbox format and everything to do with
  the fact that = is shorthand for your mail folder directory.
 
 
 Would the following also work, and save space?
 
 mailboxes ! =Python =Python/python =Python/comp-lang-py =Python/Django
Thanks, ! is good, solved problem.
 
 
 The !, IINM, is shorthand for var/mail/chris.  And a + (plus-sign)
 can also be used in place of the =.  I use + but only because I think
 it looks cooler.
 
 -- 
   I am the owner of my shoulders, the tenant of my hips.
  -- Malcolm de Chazal   Sens-Plastique
 



-- 
 stardiviner   =GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


add USER mail into mutt mailboxes list

2011-12-15 Thread stardiviner
I want to add User's mails into mutt mailboxes list.
I use maildir for my gmail mails. But I don't know what type of /var/mail/chris 
use.
*/var/mail/chris* is just a file. not a directory. I guess this is mbox ...

I use mailboxes like this:

mailboxes =/var/mail/chris
mailboxes =Python
mailboxes =Python/python
mailboxes =Python/comp-lang-py
mailboxes =Python/Django


-- 
 stardiviner   =GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: add USER mail into mutt mailboxes list

2011-12-15 Thread Cameron Simpson
On 15Dec2011 22:00, stardiviner numbch...@gmail.com wrote:
| I want to add User's mails into mutt mailboxes list.
| I use maildir for my gmail mails. But I don't know what type of 
/var/mail/chris use.
| */var/mail/chris* is just a file. not a directory. I guess this is mbox ...
| 
| I use mailboxes like this:
| 
| mailboxes =/var/mail/chris
| mailboxes =Python
| mailboxes =Python/python
| mailboxes =Python/comp-lang-py
| mailboxes =Python/Django

It will be mbox.

You need to drop the = from your mailboxes line for the system spool:

  mailboxes /var/mail/chris

This has nothing to do with the mailbox format and everything to do with
the fact that = is shorthand for your mail folder directory.

Cheers,
-- 
Cameron Simpson c...@zip.com.au DoD#743
http://www.cskk.ezoshosting.com/cs/

Hag:Two things you must know about the wise woman.
First...she is a woman.  Second...she is...
Edmund Blackadder:  Wise?
Hag:Oh! You know her then?
Edmund Blackadder:  No, just a stab in the dark, which is what you'll be
getting in a minute if you don't become more helpful.
   - Edmund Blackadder to Old Hag, Bells, BA2


Re: add USER mail into mutt mailboxes list

2011-12-15 Thread rj
On Fri 16 at 09:43 AM +1100, Cameron Simpson c...@zip.com.au wrote:

 On 15Dec2011 22:00, stardiviner numbch...@gmail.com wrote:
 | I use mailboxes like this:
 | 
 | mailboxes =/var/mail/chris
 | mailboxes =Python
 | mailboxes =Python/python
 | mailboxes =Python/comp-lang-py
 | mailboxes =Python/Django
 
 It will be mbox.
 
 You need to drop the = from your mailboxes line for the system spool:
 
   mailboxes /var/mail/chris
 
 This has nothing to do with the mailbox format and everything to do with
 the fact that = is shorthand for your mail folder directory.


Would the following also work, and save space?

mailboxes ! =Python =Python/python =Python/comp-lang-py =Python/Django


The !, IINM, is shorthand for var/mail/chris.  And a + (plus-sign)
can also be used in place of the =.  I use + but only because I think
it looks cooler.

-- 
  I am the owner of my shoulders, the tenant of my hips.
 -- Malcolm de Chazal   Sens-Plastique



pgp1S9vKiCzjV.pgp
Description: PGP signature


Saving messages to a mailboxes

2011-12-02 Thread Alexander Pletnev
Hi guys.

I started to use mutt because i become a fan of vim. And it's awesome to use my 
favorite text editor for composing and asnwering emails. 

Im still newb in mutt. And have a question about it's usage. 

I have inbox folder, which is recieves any new email. Then if i read messages, 
they are stored in another mailbox (mbox). It's good, but i want to bind some 
emails to be saved in another mailbox, not in mbox. When im saving messages by 
s in index, mutt asks me to save current email to mailbox, which is named as 
mutt decide. And i want to bind senders with mailboxes. Which trick can help me 
solve this task ?



Re: Saving messages to a mailboxes

2011-12-02 Thread Rado Q
=- Alexander Pletnev wrote on Fri  2.Dec'11 at 16:08:58 +0400 -=

 I have inbox folder, which is recieves any new email. Then if i
 read messages, they are stored in another mailbox (mbox). It's
 good, but i want to bind some emails to be saved in another
 mailbox, not in mbox. When im saving messages by s in index,
 mutt asks me to save current email to mailbox, which is named as
 mutt decide. And i want to bind senders with mailboxes. Which
 trick can help me solve this task ?

General advice: read the docs once completely, so you get a graps of
what mutt can and can not do for you.

Then look for save-hook.

-- 
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.


Re: Saving messages to a mailboxes

2011-12-02 Thread Robert Holtzman
On Fri, Dec 02, 2011 at 04:08:58PM +0400, Alexander Pletnev wrote:
 Hi guys.
 
 I started to use mutt because i become a fan of vim. And it's awesome to use 
 my favorite text editor for composing and asnwering emails.

At the risk of posting heresy, have you checked out Alpine or Re-Alpine?
Text based and you can use any editor you want. Also, somewhat easier to
configure than Mutt but not as powerful.
 
 
 Im still newb in mutt. And have a question about it's usage. 
 
 I have inbox folder, which is recieves any new email. Then if i read 
 messages, they are stored in another mailbox (mbox). It's good, but i want to 
 bind some emails to be saved in another mailbox, not in mbox. When im saving 
 messages by s in index, mutt asks me to save current email to mailbox, 
 which is named as mutt decide. And i want to bind senders with mailboxes. 
 Which trick can help me solve this task ?

-- 
Bob Holtzman
If you think you're getting free lunch, 
check the price of the beer.
Key ID: 8D549279


signature.asc
Description: Digital signature


Re: Saving messages to a mailboxes

2011-12-02 Thread Will Fiveash
On Fri, Dec 02, 2011 at 02:30:53PM +0100, Rado Q wrote:
 =- Alexander Pletnev wrote on Fri  2.Dec'11 at 16:08:58 +0400 -=
 
  I have inbox folder, which is recieves any new email. Then if i
  read messages, they are stored in another mailbox (mbox). It's
  good, but i want to bind some emails to be saved in another
  mailbox, not in mbox. When im saving messages by s in index,
  mutt asks me to save current email to mailbox, which is named as
  mutt decide. And i want to bind senders with mailboxes. Which
  trick can help me solve this task ?
 
 General advice: read the docs once completely, so you get a graps of
 what mutt can and can not do for you.
 
 Then look for save-hook.

In my .muttrc I have a stanza like:

fcc-save-hook jeff\.brown@foo\.com =manager

which will automatically save a copy of e-mail I send to
jeff.br...@foo.com to my manager mailbox and will use that mailbox when
I save e-mail from him.

And yes, read the docs and check out online tutorials.  Once you
understand how to use mutt you'll find it very powerful.  I've turned a
few colleagues on to it and they are hooked (--- awesome pun).

-- 
Will Fiveash


RFE: RFC 6154: SPECIAL-USE Mailboxes

2011-12-02 Thread Patrick Ben Koetter
RFC 6154 [1] defines an IMAP LIST extension for SPECIAL-USE mailboxes.
SPECIAL-USE mailboxes can tell the MUA they are meant for \Sent, \Trash etc.
purposes.

It would be great if mutt supported this feature on the client side and mapped
its own special use mailboxes i.e. $record and $postponed when an IMAP
server announced the SPECIAL-USE capability string in response to an IMAP
CAPABILITY command.

p@rick

[1] http://tools.ietf.org/rfc/rfc6154.txt

-- 
Postfix - Einrichtung, Betrieb und Wartung
http://www.postfix-buch.com
saslfinger (debugging SMTP AUTH):
http://postfix.state-of-mind.de/patrick.koetter/saslfinger/


  1   2   3   4   5   6   7   8   9   10   >