Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Re: ImapGrab

15 views
Skip to first unread message

Daniel Roesler

unread,
May 15, 2009, 12:03:25 PM5/15/09
to Ross Peoples, ImapGrab Mailing List
Okay, sorry for the late reply (work doesn't let me use Linux). I've
been able to recreate the bug. It is a pretty significant bug, so
thanks a bunch for the catch! I'm working on a patch now. With the new
version you should be able to create a username folder without any
modification of the code.

Avast!
Daniel Roesler
dia...@gmail.com

On Thu, May 14, 2009 at 7:32 AM, Ross Peoples <ross.p...@gmail.com> wrote:
> Here's the DEBUG info:
>
> DEBUG_000: parsed options:
> {'username': 'ross.p...@valves.net', 'all': None, 'maildir': None,
> 'debug': True, 'list': None, 'mailboxes': 'BNL Announcements', 'server':
> 'imap.gmail.com', 'quiet': None, 'ssl': True, 'version': None, 'download':
> True, 'about': None, 'folder': 'rosstest', 'password': '(removed)', 'mbox':
> None, 'port': None, 'verbose': None}
> DEBUG: parsed arguments:
> []
> IMAP Grab 0.1.3
> ---
> DEBUG_005: -d parsed, calling download function
> DEBUG_014: getting list of mailboxes:
> ['Apple Mail To Do', 'BNL Announcements', 'BNL Conversations', 'Backups',
> 'Code', 'Deleted Messages', 'Forwarded', 'Fran Conversations', 'INBOX',
> 'Lenny BNL Related', 'Lenny Outside', 'Notes To Self', 'Outside
> Conversations', 'Purchasing', 'Reports', 'Signups', 'Support', 'Symantec
> Support', '[Gmail]', '[Gmail]/All Mail', '[Gmail]/Drafts', '[Gmail]/Sent
> Mail', '[Gmail]/Spam', '[Gmail]/Starred', '[Gmail]/Trash']
> DEBUG_015: removed non-separating commas: "BNL Announcements"
> DEBUG_017: List of mailboxes to download:
> ['BNL Announcements']
> DEBUG_018: checking -m list against available mailboxes on server
> DEBUG_019: found all items in -m
> DEBUG_021: folder does not exist, creating new folder
> DEBUG_023: creating rc files for getmail
> DEBUG_024: Contents of "rosstest/BNL Announcements.rc":
> --------------------
> [retriever]
> type = SimpleIMAPSSLRetriever
> server = imap.gmail.com
> port = 993
> username = ross.p...@valves.net
> password = (removed)
> mailboxes = ("BNL Announcements",)
>
> [destination]
> type = Mboxrd
> path = rosstest/BNL Announcements.mbox
>
> [options]
> read_all = false
> verbose = 2
>
> --------------------
> DEBUG_025: "rosstest/BNL Announcements.mbox" doesn't exist
> Downloading mailbox "BNL Announcements"
> DEBUG_027: calling "getmail -g rosstest -r rosstest/BNL Announcements.rc"
> Error: configuration file rosstest/rosstest/BNL Announcements.rc does not
> exist
> Downloads complete
>
>
>
> On May 14, 2009, at 12:44 AM, Daniel Roesler wrote:
>
>> Howdy!
>>
>> Do you mind if I put this conversation on the mailing list
>> (http://groups.google.com/group/imapgrab)?
>>
>> Thanks for the bug report, I'm looking into it. Would you mind posting
>> the debug output of your error? Just add the --debug option to the
>> command.
>>
>> I'm glad you like the program. It's out there to be used, and I would
>> love to add any improvements and fix any bugs.
>>
>> Avast!
>> Daniel Roesler
>> dia...@gmail.com
>> http://www.daylightpirates.org/index.php/Programs/ImapGrab
>>
>> On Wed, May 13, 2009 at 8:49 PM, Ross Peoples <ross.p...@gmail.com>
>> wrote:
>>>
>>> I couldn't find anywhere to file a bug report, so I sent you this :)
>>>
>>> Specifying the --folder option kept giving me the error:
>>> "Error: configuration file myfolder/myfolder/The Test Label.rc does not
>>> exist."
>>>
>>> Since I want the folder name to be the username, I changed the line that
>>> sets "ig_options.folder" to read the following:
>>> "ig_options.folder = os.getcwd() + os.sep + ig_options.username"
>>>
>>> That seems to work very well. Other than this small little setback, I've
>>> found ImapGrab to be exactly what I was looking for. I'm going to use it
>>> to
>>> backup multiple Gmail accounts to a local mail server for archiving
>>> purposes
>>> and this is by far the best solution and I thank you for putting in the
>>> hard
>>> work that I would have had to do myself (probably with PHP because I'm
>>> new
>>> with Python) in creating it.
>>>
>>> So thank you again for your hard work!
>>>
>>> Ross Peoples
>>>
>
>

Daniel Roesler

unread,
May 15, 2009, 12:24:42 PM5/15/09
to Ross Peoples, ImapGrab Mailing List
Ok, I've attached an update imapgrab.py file that should fix your
problem. Please test it and let me know if it works. I only added one
line.

-------------------Line 396-------------------
rc_file_loc = rc_file_loc.replace(ig_options.folder + os.sep , "")
#Removes working directory (-g option in getmail) from -r option in
getmail
--------------------------------------

Avast!
Daniel Roesler
dia...@gmail.com

imapgrab_with_folder_fix.py

Daniel Roesler

unread,
May 15, 2009, 12:39:10 PM5/15/09
to Ross Peoples, ImapGrab Mailing List
Ok, I'm going to wait about a week before releasing a new version with
this fix. However, I'm putting the fix immediately on the svn.

Avast!
Daniel Roesler
dia...@gmail.com

On Fri, May 15, 2009 at 11:35 AM, Ross Peoples <ross.p...@gmail.com> wrote:
> It appears to be working perfectly now. Thanks for the quick response. Soon,
> I 'll be using this to backup 20+ email accounts every night so this script
> will get plenty of testing. I'll let you know if I run into any more
> problems.
>
> Thanks again,
> Ross Peoples

>> <imapgrab_with_folder_fix.py>
>
>

Reply all
Reply to author
Forward
0 new messages