Displaying 2 results from an estimated 2 matches for "base_hash".
2015 Mar 04
0
Rebuilding SIS attachment links from log
...the trailing info
ATTACH_LINE_FILTER="s|.*$ATTACHMENT_STORAGE_BASE||"
ATTACH_LINE=$(echo "$ERR" | sed "$ATTACH_LINE_FILTER")
# Now extract the aa/bb/ prefix, the base attachment file name, and user hash
CATEGORY_PATH="${ATTACH_LINE:1:5}"
BASE_HASH="${ATTACH_LINE:7:40}"
USER_HASH="${ATTACH_LINE:48:32}"
ATTACH_SOURCE="$ATTACHMENT_STORAGE_BASE/$CATEGORY_PATH/$HASH_FOLDER/$BASE_HASH"
ATTACH_TARGET="$ATTACHMENT_STORAGE_BASE/$CATEGORY_PATH/$BASE_HASH-$USER_HASH"
# There appear to be duplica...
2015 Mar 03
3
Rebuilding SIS attachment links from log
This seems simple enough...I'm just not script wizard. If someone can
throw together a starting point I can test and tweak it from there. It
seems to me:
1. Read /var/mail/mail.err or specified logfile
2. For each "failed:
read(/var/mail/attachments/aa/bb/attachmentHash-userHash" line,
a. Confirm /var/mail/attachments/aa/bb/hashes/attachmentHash exists
i. If