Complete.Org: Mailing Lists: Archives: offlineimap: May 2004:
Re: problems with threads
Home

Re: problems with threads

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: offlineimap@xxxxxxxxxxxx
Subject: Re: problems with threads
From: Aron Griffis <agriffis@xxxxxxxxxx>
Date: Thu, 6 May 2004 14:22:32 -0400

John Goerzen wrote:     [Tue May 04 2004, 04:55:04PM EDT]
> This problem is likely unrelated to threading.  Can you send me a -d
> imap log showing the weird flags attempted to be set?

I'm sorry, I fixed the problem but didn't make a backup first of the
metadata directory or the maildir itself.  Now I've written a wrapper
for offlineimap so that I'll always be running with debugging in hopes
of reproducing the problem...

    #!/bin/bash

    # Keep track of things for debugging.  No point in writing any header
    # to the logfile because it gets overwritten by offlineimap anyway.
    mkdir -p ~/log/offlineimap
    acct=$(echo "$*" | grep -Eo '(Home|Work)[^ ]*')
    logfile=~/log/offlineimap/$(date +'%Y%m%d_%H%M')_${acct:-All}
    [[ -e $logfile || -e ${logfile}.bz2 ]] && logfile=${logfile}_$$

    # Run offlineimap
    /usr/bin/offlineimap -d thread,imap,maildir -l $logfile "$@"
    retval=$?

    # Compress the logfile, otherwise it's >20M
    bzip2 $logfile

    # Return exit status of offlineimap
    exit $retval

Regards,
Aron

--
Aron Griffis
Gentoo Linux Developer (alpha / baselayout / ia64 / mozilla / mutt / ruby / vim)



[Prev in Thread] Current Thread [Next in Thread]