last improvements
This commit is contained in:
parent
388277afc6
commit
7e3041c271
@ -131,6 +131,7 @@ for DIR in ${DIRS} ; do
|
|||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# Create target folder structure recursively:
|
# Create target folder structure recursively:
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
# because fls does not support "-0" we have to improve...
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
for dir in ${dirs} ; do
|
for dir in ${dirs} ; do
|
||||||
path="$( echo "${dir}" | cut -d "|" -f 2 )"
|
path="$( echo "${dir}" | cut -d "|" -f 2 )"
|
||||||
@ -154,6 +155,7 @@ for DIR in ${DIRS} ; do
|
|||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# Extract files recursively into target folder(s):
|
# Extract files recursively into target folder(s):
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
# because fls does not support "-0" we have to improve...
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
for file in ${files} ; do
|
for file in ${files} ; do
|
||||||
inode="$( echo "${file}" | cut -d "|" -f 3 )"
|
inode="$( echo "${file}" | cut -d "|" -f 3 )"
|
||||||
@ -179,16 +181,9 @@ done
|
|||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
echo "Indexing mails... please wait..."
|
echo "Indexing mails... please wait..."
|
||||||
|
|
||||||
mailboxes="$( find "${T_PRE}${S_PRE}/${user}" \
|
find "${T_PRE}${S_PRE}/${user}" \
|
||||||
-type d \( -name "cur" -or -name "new" -or -name "tmp" \) \
|
-type d \( -name "cur" -or -name "new" -or -name "tmp" \) \
|
||||||
-exec dirname '{}' \; )"
|
-exec mu index --quiet --muhome="${PRE}/mu" --maildir="'{}'" \;
|
||||||
|
|
||||||
IFS=$'\n'
|
|
||||||
for mailbox in ${mailboxes} ; do
|
|
||||||
# \""${mailbox}\"" because: spaces are more evil as expected
|
|
||||||
mu index --quiet --muhome="${PRE}/mu" --maildir=\""${mailbox}\""
|
|
||||||
done
|
|
||||||
unset IFS
|
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user