m: sorting Maildirs is useless as msort is called later on
While at it, inline the only remaining call to _mdirs
This commit is contained in:
parent
78c51d09c7
commit
4a86e6f983
11
mblaze/m.sh
11
mblaze/m.sh
@ -22,11 +22,6 @@ Usage:
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
_mdirs()
|
|
||||||
{
|
|
||||||
mdirs "$@" | sort -t /
|
|
||||||
}
|
|
||||||
|
|
||||||
m_fetch_usage()
|
m_fetch_usage()
|
||||||
{
|
{
|
||||||
printf "Usage: %s f|fetch\n" "${0##*/}" >&2
|
printf "Usage: %s f|fetch\n" "${0##*/}" >&2
|
||||||
@ -58,7 +53,7 @@ m_list()
|
|||||||
{
|
{
|
||||||
pwd=$(pwd)
|
pwd=$(pwd)
|
||||||
# cut(1) lists are 1-based, and +1 for leading slash
|
# cut(1) lists are 1-based, and +1 for leading slash
|
||||||
_mdirs "${@:-.}" | cut -c $((${#pwd} + 2))- | mlist -i
|
mdirs "${@:-.}" | sort -t / | cut -c $((${#pwd} + 2))- | mlist -i
|
||||||
}
|
}
|
||||||
|
|
||||||
m_read()
|
m_read()
|
||||||
@ -67,7 +62,7 @@ m_read()
|
|||||||
m_read_usage
|
m_read_usage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_mdirs "$@" | mlist -s | msort -d | mthread | mless
|
mdirs "$@" | mlist -s | msort -d | mthread | mless
|
||||||
}
|
}
|
||||||
|
|
||||||
m_scan()
|
m_scan()
|
||||||
@ -89,7 +84,7 @@ m_scan()
|
|||||||
m_scan_usage
|
m_scan_usage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_mdirs "$@" | mlist $mlist_flags | msort -d | mthread | mseq -S | mscan
|
mdirs "$@" | mlist $mlist_flags | msort -d | mthread | mseq -S | mscan
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $# -lt 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user