On Thursday 27.08.15   15:54, Ian Zimmerman wrote:
> On 2015-08-28 00:36 +0200, Joe wrote:
> 
> > set folder = $HOME/Mail
> 
> > set spoolfile = +inbox
> 
> > mailboxes `echo +*`
> 
> Manual section 3.14:
> 
>   Note
> 
>   The folders in the mailboxes command are resolved when the command is
>   executed, so if these names contain shortcut characters (such as “=” and
>   “!”), any variable definition that affects these characters (like
>   $folder and $spoolfile) should be set before the mailboxes command. If
>   none of these shortcuts are used, a local path should be absolute as
>   otherwise Mutt tries to find it relative to the directory from where
>   Mutt was started which may not always be desired.

Likely since my bad english, I don't well understand the above sentence:

- I defined, set $folder before use mailboxes command
- I had used shortcut "+" to "expand" "$HOME/Mail/" directory

So I expected something resolved like this:

/home/joe/Mail/mbox_1 /home/joe/Mail/mbox_2 ...and so on...

It doesn't seem to work like that...
So, frankly I don't well understand the quoted manual sentence.


 
> try this:
> 
> mailboxes `echo $HOME/Mail/+*`

This doesn't work for me...
Peraphs you included a "+" that has to be removed, indeed I tried
the following:

mailboxes `echo $HOME/Mail/*`

This finally works!    :)
Now I can view N-flags properly also in browser menu.
I've tested "buffy-list" and "check-new"... seems all works as
expected now.

So, mutt needs "mailboxes" command is in its rc file to consider
files in Mail directory as real mailboxes and show if they contain
new message.



Side effect of that new mailboxes command was that I had to
edit some macros used to quit/exit cause they didn't work as
before...
I also added some macro to remap the function of arrow keys:
---
set sendmail="/usr/bin/formail -s /usr/bin/procmail -t -m 
/home/joe/.procmailoutrc"
set mbox_type = mbox
set folder = $HOME/Mail
set spoolfile = +inbox
set move = no
set record = ""
set use_from = no
push "c?"
macro browser q '<exit><exit>'
macro browser <right> <enter>
macro index <right> <enter>
macro pager <left> <exit>
macro pager <down> <enter>
macro index <left> "<change-folder>?" "open another folder"
macro index q "<change-folder>?" "open another folder"
set mail_check_recent = "no"
mailboxes `echo $HOME/Mail/*`
macro generic,browser,index,pager ò "<check-new>"
set date_format = "!%A %d.%m.%y   %H:%M"
set index_format = "%4C %Z %30D  %-30.30L (%4l) %s"
set sort_aux=last-date-received
set folder_format = "%4C %t %-35.35f %15.15d %10N"
set sort_browser = reverse-date
set mask = '!^\.'
set sort = "threads"
set strict_threads = "yes"
set alias_file = ~/.mail/aliases.mutt
set sort_alias = alias
set reverse_alias = yes
source $alias_file
macro generic,index,pager,browser \ea "!vim $HOME/.mail/aliases.mutt\n:source 
$HOME/.mail/aliases.mutt\n"
macro index,pager,browser,generic G "!fetchmail &>/dev/null &\n" "Invoke 
fetchmail"
folder-hook  address1@domain "my_hdr From: <address1@domain>"
folder-hook  address2@domain "my_hdr From: <address2@domain>"
folder-hook  address3@domain "my_hdr From: <address3@domain>"
auto_view text/html
set mailcap_path = ~/.mailcap:/etc/mailcap:/usr/lib/mime/mailcap
---

Thanks again for your help!
Hope this thread could be usefull for other users too.

Bye.

Reply via email to