]> git.madduck.net Git - etc/mutt.git/blobdiff - .mutt/list-mailboxes

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

rework saving/storing message keybindings
[etc/mutt.git] / .mutt / list-mailboxes
index 5e2460cf45a653b8cb0b3dcecc5bf91222b03c14..497a253c5f5d638000bc33ba65c3547dc28be00b 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-find "$1" -type d -name cur -printf '%h\n' | \
+find "$1/" -type d -name cur -printf '%h\n' | \
   sed -e "s,^$1/,=,g" -e "s,^$1\$,$2," | \
-  egrep -v '^=(spool|discard|retrain(/(sp|h)am)?)$' | \
+  egrep -v '^=(sp(ool|am)|discard|retrain(/(sp|h)am)?)$' | \
   sort | xargs echo mailboxes