X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/112c0f88e879d6d3dd90e57bf022eb8d241f8916..f44295774f814c854c0cde49fc59b5a756ffcda8:/.lbdbrc?ds=inline diff --git a/.lbdbrc b/.lbdbrc index f169a48..6420898 100644 --- a/.lbdbrc +++ b/.lbdbrc @@ -1,17 +1,14 @@ -CONTACTS_DIR=$HOME/contacts +METHODS=m_gpg : ${TMPDIR:=/tmp} +CONTACTS_DIR=$HOME/contacts if [ -d $CONTACTS_DIR ]; then METHODS="$METHODS m_vcf" VCF_FILES="$TMPDIR/lbdbq.vcf" - - VCF_TEMP="$(tempfile -d $TMPDIR -p lbdbq -s .vcf)" - cleanup() { rm -f $VCF_TEMP; trap - EXIT; } - - for i in $CONTACTS_DIR/*; do case "${i##*/}" in ICE*) continue;; esac; cat "$i"; echo ; done >| "$VCF_TEMP" + VCF_TEMP="$tmpdir/contacts.vcf" + for i in $CONTACTS_DIR/*; do case "${i##*/}" in ICE*) continue;; esac; cat "$i"; done >| "$VCF_TEMP" if ! cmp --quiet "$VCF_FILES" "$VCF_TEMP"; then mv "$VCF_TEMP" "$VCF_FILES" fi - cleanup fi