Package: offlineimap Version: 6.3.4-1 Severity: normal Hi again,
I wanted to ask if I need to avoid some email encoding in my maildir. I'm now getting the error: ---------------------------------------------------------------------------------------------- Copy message -191 Maildir[Babel] -> Gmail[Babel] WARNING: ERROR attempting to copy message -191 for account Acc-Main:Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/offlineimap/folder/Base.py", line 255, in copymessageto newuid = dstfolder.savemessage(uid, message, flags, rtime) File "/usr/lib/pymodules/python2.6/offlineimap/folder/IMAP.py", line 459, in savemessage date, content) File "/usr/lib/pymodules/python2.6/offlineimap/imaplib2.py", line 577, in append return self._simple_command(name, mailbox, flags, date_time, **kw) File "/usr/lib/pymodules/python2.6/offlineimap/imaplib2.py", line 1549, in _simple_command return self._command_complete(self._command(name, *args), kw) File "/usr/lib/pymodules/python2.6/offlineimap/imaplib2.py", line 1310, in _command_complete typ, dat = rqb.get_response('command: %s => %%s' % rqb.name) File "/usr/lib/pymodules/python2.6/offlineimap/imaplib2.py", line 172, in get_response raise typ(exc_fmt % str(val)) abort: command: APPEND => socket error: <type 'exceptions.IOError'> - Too many read 0 WARNING: ERROR attempting to sync flags for account Acc-Main:Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/offlineimap/folder/Base.py", line 421, in syncmessagesto action(dstfolder, statusfolder) File "/usr/lib/pymodules/python2.6/offlineimap/folder/Base.py", line 318, in syncmessagesto_copy self.copymessageto(uid, dstfolder, statusfolder, register = 0) File "/usr/lib/pymodules/python2.6/offlineimap/folder/Base.py", line 255, in copymessageto newuid = dstfolder.savemessage(uid, message, flags, rtime) File "/usr/lib/pymodules/python2.6/offlineimap/folder/IMAP.py", line 459, in savemessage date, content) File "/usr/lib/pymodules/python2.6/offlineimap/imaplib2.py", line 577, in append return self._simple_command(name, mailbox, flags, date_time, **kw) File "/usr/lib/pymodules/python2.6/offlineimap/imaplib2.py", line 1549, in _simple_command return self._command_complete(self._command(name, *args), kw) File "/usr/lib/pymodules/python2.6/offlineimap/imaplib2.py", line 1310, in _command_complete typ, dat = rqb.get_response('command: %s => %%s' % rqb.name) File "/usr/lib/pymodules/python2.6/offlineimap/imaplib2.py", line 172, in get_response raise typ(exc_fmt % str(val)) abort: command: APPEND => socket error: <type 'exceptions.IOError'> - Too many read 0 WARNING: ERROR in syncfolder for Acc-Main folder Babel: Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/offlineimap/accounts.py", line 355, in syncfolder localfolder.syncmessagesto(remotefolder, statusfolder) File "/usr/lib/pymodules/python2.6/offlineimap/folder/Base.py", line 421, in syncmessagesto action(dstfolder, statusfolder) File "/usr/lib/pymodules/python2.6/offlineimap/folder/Base.py", line 318, in syncmessagesto_copy self.copymessageto(uid, dstfolder, statusfolder, register = 0) File "/usr/lib/pymodules/python2.6/offlineimap/folder/Base.py", line 255, in copymessageto newuid = dstfolder.savemessage(uid, message, flags, rtime) File "/usr/lib/pymodules/python2.6/offlineimap/folder/IMAP.py", line 459, in savemessage date, content) File "/usr/lib/pymodules/python2.6/offlineimap/imaplib2.py", line 577, in append return self._simple_command(name, mailbox, flags, date_time, **kw) File "/usr/lib/pymodules/python2.6/offlineimap/imaplib2.py", line 1549, in _simple_command return self._command_complete(self._command(name, *args), kw) File "/usr/lib/pymodules/python2.6/offlineimap/imaplib2.py", line 1310, in _command_complete typ, dat = rqb.get_response('command: %s => %%s' % rqb.name) File "/usr/lib/pymodules/python2.6/offlineimap/imaplib2.py", line 172, in get_response raise typ(exc_fmt % str(val)) abort: command: APPEND => socket error: <type 'exceptions.IOError'> - Too many read 0 ---------------------------------------------------------------------------------------------- and I think it has to be with file encodings. I used the script below to obtain the number of emails in each encoding and I got: $ ./convert_encodings_to_utf8.sh "false" ... 134 /home/vpablos/secured/encrypted/Mail-Backup/Logs/encodings//binary 6098 /home/vpablos/secured/encrypted/Mail-Backup/Logs/encodings//iso-8859-1 657 /home/vpablos/secured/encrypted/Mail-Backup/Logs/encodings//unknown-8bit 46954 /home/vpablos/secured/encrypted/Mail-Backup/Logs/encodings//us-ascii 5622 /home/vpablos/secured/encrypted/Mail-Backup/Logs/encodings//utf-8 59465 total but I still do not know why some of them are problematic and some of them are not :-( Maybe if they do not contain special characters the encoding is not a problem? Which encoding should then work always with offlineimap when having special characters? Thanks. Script: ---------------------------------------------------------------------------------------------- #!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:~/bin DATE=`date` BASE_DIRECTORY="$SECURED"/encrypted/Mail-Backup MAIL_DIRECTORY="$BASE_DIRECTORY"/Mail RESULTS_DIR="$BASE_DIRECTORY"/Logs/encodings/ CONVERT_TO="utf8" # Security issues: pushd $BASE_DIRECTORY if [ ! -d $RESULTS_DIR ]; then mkdir $RESULTS_DIR else rm -f $RESULTS_DIR/* fi function convert_main () { if [ -d $1 ]; then NAME_1=`basename $1` if [ "$NAME_1" == "new" ] || [ "$NAME_1" == "cur" ] || [ "$NAME_1" == "tmp" ]; then echo "# Evaluating files in $1/* " for file in $1/*; do NAME_2=`basename $file` if [ "$NAME_2" != "." ] && [ "$NAME_2" != ".." ] && [ "$NAME_2" != "*" ]; then if [ -f $file ]; then ## file -bi $file ENC=`file -b --mime-encoding $file ` if [ -z "$ENC" ] || [ "$ENC" == "" ]; then echo "# unknown encoding of file $file " else echo "encoding of $file is $ENC " >> $RESULTS_DIR/$ENC if [ "$ENC" != "utf8" ] && [ "$2" == "true" ]; then CONTENTS=`iconv -f $ENC -t ${CONVERT_TO} ${file} -o ${file}.${CONVERT_TO} ` rm -v ${file} mv ${file}.utf8 ${file} fi fi else echo "# Not a file: $file" fi else echo "# not analised: $file" fi done else for file in $1/*; do if [ -d $file ]; then convert_main $file else echo "# Not a directory: $file" fi done fi else echo "# Not a directory: $1 " fi } function usage_info () { echo "$0: usage: $0 true or $0 false " } if [ -z "$1" ] || [ "$1" == "" ]; then usage_info exit 0 fi if [ "$1" == "true" ] || [ "$1" == "false" ]; then convert_main $MAIL_DIRECTORY $1 echo " " echo " Previous encoding of files was: " wc -l $RESULTS_DIR/* else usage_info fi popd ---------------------------------------------------------------------------------------------- -- System Information: Debian Release: 6.0.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'squeeze'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.39-bpo.2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages offlineimap depends on: ii python 2.6.6-3+squeeze6 interactive high-level object-orie ii python-support 1.0.10 automated rebuilding support for P offlineimap recommends no packages. Versions of packages offlineimap suggests: ii doc-base 0.9.5 utilities to manage online documen ii python-kerberos 1.1+svn4895-1+b1 A GSSAPI interface module for Pyth -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org