Package: python-libgmail Version: 0.1.5.1-2 Severity: important I mount gmailfs: mount.gmailfs none /mnt/gmail -o username=my_username,password=my_password,fsname=fs_name
Copy a file to gmail: cp ~/test.txt /mnt/gmail However, when trying to read a file: cat /mnt/gmail/test.txt I get this error: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/gmailfs.py", line 983, in read buf = f.read(readlen,offset) File "/usr/lib/python2.4/site-packages/gmailfs.py", line 489, in read outbuf[upto:] = self.readFromGmail((offset+upto)/self.blocksize,0)[readoffset:readoffset+thisread] File "/usr/lib/python2.4/site-packages/gmailfs.py", line 519, in readFromGmail a = msg.attachments[0] IndexError: list index out of range Therefore I compared libgmail.py from v0.1.5.1-1 with the one from v0.1.5.1-2 (and also v0.1.5.1+cvs20070102) and found out, that there is a difference which causes this error: 0.1.5.1-1: line 1418 self.attachments = [GmailAttachment(self, attachmentInfo) for attachmentInfo in msgData[MI_ATTACHINFO]] 0.1.5.1-2: line 1430 self.attachments = [GmailAttachment(self, attachmentInfo) for attachmentInfo in msgData[MI_ATTACHINFO-1]] If I change MI_ATTACHINFO-1 to MI_ATTACHINFO I can read files from GmailFS and everything works for me. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-3-686 Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Versions of packages python-libgmail depends on: ii python 2.4.4-2 An interactive high-level object-o ii python-central 0.5.12 register and build utility for Pyt python-libgmail recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]