zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Andy Spiegl <zsh.Andy@spiegl.de>, zsh-workers@sunsite.auc.dk
Subject: Re: bug in _mutt ?
Date: Wed, 21 Jun 2000 15:21:06 +0000	[thread overview]
Message-ID: <1000621152106.ZM31139@candle.brasslantern.com> (raw)
In-Reply-To: <20000621095529.A27178@br-online.de>

On Jun 21,  9:55am, Andy Spiegl wrote:
} Subject: Re: bug in _mutt ?
}
} trace _mua_mailboxes:35(case)> mbox_names=( Mailboxes mailboxes

Please note those first two entries in mbox_names, it's important later.

} =sub/cus/rundbriefe =sub/cus/rundbriefe.muc =sub/mutt =sub/zsh
} =sub/zsh-workers =sub/linux/linux-ug =sub/linux/debian.security
} =sub/linux/debian.announce =sub/linux/debian.commercial
} =sub/linux/debian.user.de =sub/linux/debian.user =sub/kira =sub/akte )
}
} is being reduced to
} 
} =sub =sub =sub =sub =sub =sub =sub =sub =sub =sub =sub =sub =sub
}
} Is that intended?

Yes.  That's the whole point of _multi_parts: it works like _path_files,
but on strings that aren't necessarily file names.  So you should find
that if you type

% mutt -f =sub<TAB>

it'll append the slash, and offer completions of

cus  mutt  zsh  zsh-workers  linux  kira  akte

} It would sound more logical to me if the full paths were kept.

Why?  (Some people have very wide and deep mailbox hierarchies ...)

} And after
}  % muttf -f  m<TAB>
} I get these completions offered:
}  mailbox specification
}  mailboxes 
}  mailbox file
}  Mail/            movies/          mutt_1.2-1.deb 
} 
} Where does that "mailboxes" come from?

It comes from _mbox_names, up above.  I don't know why "Mailboxes" is
not also offered, since "Mail/" seems to be.

Now, how it got into _mbox_names is a different question.  In the
_mua_mailboxes helper function, you'll see

    (*:mutt:*)
      mbox_names=( "${_mutt_cache[@]}" "${_mailbox_cache[@]}"
      		   "${_maildir_cache[@]}" )

The _mutt_cache is initialized by grepping your .muttrc (or the file that
you name in the $muttrc variable, which you should set somewhere in your
.zshrc file if it's not ~/.muttrc) for the string "mailboxes" and then
throwing away the first word of the result.  So it could be coming from
there, if the grep is finding more words in .muttrc than Clint expected
(he wrote the original _mailboxes, I don't use mutt and have no idea
what a .muttrc file looks like).

The _mailbox_cache is all the files and directories under ~/Mail in your
home directory (again, set $maildirectory in your .zshrc to change this).
Unfortunately this caching means that you can't easily complete newly-
created mailbox names, but it's intended to speed things up for people
who have large numbers of mailboxes.  (Myabe the new enhancements to
_path_files are enough that we could do away with this?)

Finally, the _maildir_cache is all the *subdirectories* of ~/Mail (or
$maildirectory) that contain further subdirectories named "cur".  This
is crude support for a qmail mailbox format that stores messages as
individual files in three subdirectories of a directory named for the
mailbox.  This is imprecise, as it means that if you happen to have a
directory named "cur" it'll guess that the parent is a qmail mailbox.
You have a directory named "cus" ... do you also have a "cur"?

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


  reply	other threads:[~2000-06-21 15:21 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20000619211650.A5701@br-online.de>
2000-06-19 20:18 ` Bart Schaefer
2000-06-20 11:28   ` Andy Spiegl
2000-06-20 11:53     ` Peter Stephenson
2000-06-20 13:33       ` Bart Schaefer
2000-06-21 15:24       ` Bart Schaefer
2000-06-22  1:56         ` Clint Adams
2000-06-22  3:55         ` Geoff Wing
2000-06-22  3:59           ` Clint Adams
2000-06-20 14:02     ` Clint Adams
2000-06-20 15:18       ` Andy Spiegl
2000-06-21  7:55         ` Andy Spiegl
2000-06-21 15:21           ` Bart Schaefer [this message]
2000-06-21 15:30             ` Bart Schaefer
2000-06-22  1:50             ` Clint Adams
2000-06-22  2:27             ` PATCH: multiple mailbox lines in muttrc Clint Adams
2000-06-22  4:07               ` PATCH: multiple mailbox lines in muttrc and more Clint Adams
2000-06-26 19:43             ` bug in _mutt ? Andy Spiegl
2000-06-27  0:51               ` Bart Schaefer
2000-06-20  8:01 Sven Wischnowsky
2000-06-20 12:21 Sven Wischnowsky
2000-06-20 12:28 Sven Wischnowsky
2000-06-22  8:36 Sven Wischnowsky
2000-06-22  9:48 ` Bart Schaefer
2000-06-22 13:43   ` Clint Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1000621152106.ZM31139@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.auc.dk \
    --cc=zsh.Andy@spiegl.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).