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 



Re: throw away signature in reply

2018-09-16 Thread mutt
Michael Wagner wrote:

> Hello folks,
> 
> I edit my mails here in mutt with vim. When I reply to a message I don't 
> want to delete the signature from the original poster by myself. Can this 
> be done in mutt or must it be done in vim.
> 
> TIA Michael

hi,

you could define your muttrc editor variable to be a program that locates
and removes signatures before invoking vim on the result. you just have
to write the program.

i used to have procmail filter emails through a program that deleted
signatures and legal notices upon arrival. i had to add new signatures
to be recognised whenever new ones turned up.

so it can be automated but it requires some effort.

cheers,
raf



Re: imap unread count in folder view?

2018-09-16 Thread Ben Fitzgerald
On Sun, Sep 16, 2018 at 10:36:16AM -0700, Kevin J. McCarthy wrote:
> On Sun, Sep 16, 2018 at 01:24:57PM -0400, Ben Fitzgerald wrote:
> > any way to get the number of unread messages in the 
> > view?
> > 
> > I'm happy to have the unread count in the cache, it doesn't have to
> > be the server's count.
> 
> Check out %n in $folder_format.  The behavior of %N changed in 1.7.0.
> 

fabulous, works a treat. Thanks.

I'll be greedy and ask another. It's related.

Is there a way to hide folders where %n == 0 ?

I have config for imap that shows all the folders by default:

set imap_check_subscribed=yes

Regards,

-- 
Ben Fitzgerald


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: throw away signature in reply

2018-09-16 Thread Michael Tatge
* On Sat, Sep 15, 2018 01:26PM +0200 Michael Wagner (wagner_m_bre...@web.de) 
muttered:
> I edit my mails here in mutt with vim. When I reply to a message I don't 
> want to delete the signature from the original poster by myself.

I do this in vim.

" strip quoted signature
autocmd BufRead ~/tmp/mutt* execute 'silent g/^> --\s\=$/,/^$/-1d'

 ^ or whatever your $TMPDIR is

Michael
-- 
PGP-Key-ID: DE3C3D3BEEE7D043
Jabber: in...@jabber.de


Re: imap unread count in folder view?

2018-09-16 Thread Kevin J. McCarthy
On Sun, Sep 16, 2018 at 01:24:57PM -0400, Ben Fitzgerald wrote:
> any way to get the number of unread messages in the 
> view?
> 
> I'm happy to have the unread count in the cache, it doesn't have to
> be the server's count.

Check out %n in $folder_format.  The behavior of %N changed in 1.7.0.

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


signature.asc
Description: PGP signature


imap unread count in folder view?

2018-09-16 Thread Ben Fitzgerald
Hi

any way to get the number of unread messages in the 
view?

I'm happy to have the unread count in the cache, it doesn't have to
be the server's count.

regards,

-- 
Ben Fitzgerald