search for: attach_target

Displaying 2 results from an estimated 2 matches for "attach_target".

2015 Mar 04
0
Rebuilding SIS attachment links from log
...a/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 duplicate lines - so to try to filter some out. if [ "$PREVIOUS_TARGET" = "$ATTACH_TARGET" ]; then if [ "$DEBUG" = 1 ]; then echo "Skipping 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