ignore empty lines and #comments in tag-list.csv
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
CURDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
|
||||
DEBUG=false # use 'true' to echo verbose debug messages
|
||||
DEBUG=true # use 'true' to echo verbose debug messages
|
||||
|
||||
CSV="$CURDIR"/tag-list.csv # Table of tags/folders
|
||||
MAILDIR="$HOME/Mails/FSFE" # Maildir
|
||||
@@ -48,6 +48,7 @@ DATELIMIT="30d"
|
||||
echo "Datelimit for search set to $DATELIMIT"
|
||||
|
||||
while read line; do
|
||||
if $(echo "$line" | grep -qE "^\s*#|^\s*$"); then continue; fi
|
||||
TAG=$(echo $line | cut -d";" -f1)
|
||||
FOL=$(echo $line | cut -d";" -f2)
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ function notmuch_rule {
|
||||
}
|
||||
|
||||
while read line; do
|
||||
|
||||
if $(echo "$line" | grep -qE "^\s*#|^\s*$"); then continue; fi
|
||||
TAG=$(echo $line | cut -d";" -f1)
|
||||
FOL=$(echo $line | cut -d";" -f2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user