Displaying 2 results from an estimated 2 matches for "attachment_storage_base".
2015 Mar 04
0
Rebuilding SIS attachment links from log
...hashes/attachmentHash
> 3. Continue to end of file
>
> Can this be done via "pure" BASH? Need sed/awk as well?
>
-------------- next part --------------
#!/bin/bash
# These variables need to be customized for your particular installation
LOGFILE='/var/log/mail.err'
ATTACHMENT_STORAGE_BASE='/var/mail/attachments'
# These variables are based on current Dovecot behaviour and should not require changing
HASH_FOLDER='hashes'
# Initialization
PREVIOUS_ERR=''
ERR=''
function usage
{
echo "Dovecot Single-Instance-Storage Attachment Repair"...
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