gaubert / gmvault

gmail backup software
http://www.gmvault.org
GNU Affero General Public License v3.0
3.57k stars 285 forks source link

Unable to export to offline imap in Windows #162

Open mpfraser opened 10 years ago

mpfraser commented 10 years ago

I have set permissions on the folder and sub-folders to Full for "everyone" as well as my user.

gmvault-shell>gmvault.bat export -t offlineimap c:\temp

Export gmvault-db as a offlineimap mailbox. Start emails export for default labels. Error: [Error 123] The filename, directory name, or volume label syntax is incorrect.

=== Exception traceback === Traceback (most recent call last): File "gmv\gmv_cmd.pyc", line 771, in run File "gmv\gmv_cmd.pyc", line 616, in _export File "gmv\gmvault_export.pyc", line 69, in export File "gmv\gmvault_export.pyc", line 104, in export_ids File "gmv\gmvault_export.pyc", line 177, in add File "mailbox.pyc", line 279, in add WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect

=== End of Exception traceback ===

gaubert commented 10 years ago

@mpfraser export has been developed by a contributor and it is a bit broken. I will check

paulbeard commented 9 years ago

Me, too, but in OS X. Also FreeBSD.

Details follow.

argent:~ paul$ pwd 
/Users/paul

argent:~ paul$ gmvault export -t dovecot ~/dovecot/paul

lots of promising messages

Error: [Errno 2] No such file or directory. 
=== Exception traceback ===
Traceback (most recent call last):
  File "gmv/gmv_cmd.pyc", line 771, in run
  File "gmv/gmv_cmd.pyc", line 616, in _export
  File "gmv/gmvault_export.pyc", line 69, in export
  File "gmv/gmvault_export.pyc", line 104, in export_ids
  File "gmv/gmvault_export.pyc", line 177, in add
  File "mailbox.pyc", line 276, in add
OSError: [Errno 2] No such file or directory

=== End of Exception traceback ===

Gmvault v1.8.1-beta

Darwin argent 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64 i386 MacBookPro9,2 Darwin

Python 2.7.6 (default, Sep 9 2014, 15:04:36)

== Processed 36200 emails in 9m 47s, 146600 left (time estimate 39m 37s). ==

Error: [Errno 2] No such file or directory: '/usr/home/paul/dovecot/paul/tmp/1419226881.M509536P32680Q36289.www'. 

=== Exception traceback ===
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/gmvault-1.8.1_beta-py2.7.egg/gmv/gmv_cmd.py", line 771, in run
    self._export(args)
  File "/usr/local/lib/python2.7/site-packages/gmvault-1.8.1_beta-py2.7.egg/gmv/gmv_cmd.py", line 616, in _export
    exporter.export()
  File "/usr/local/lib/python2.7/site-packages/gmvault-1.8.1_beta-py2.7.egg/gmv/gmvault_export.py", line 69, in export
    default_folder = self.GM_ALL, use_labels = True)
  File "/usr/local/lib/python2.7/site-packages/gmvault-1.8.1_beta-py2.7.egg/gmv/gmvault_export.py", line 104, in export_ids
    self.mailbox.add(msg, folder, meta[gmvault_db.GmailStorer.FLAGS_K])
  File "/usr/local/lib/python2.7/site-packages/gmvault-1.8.1_beta-py2.7.egg/gmv/gmvault_export.py", line 177, in add
    self.subdir(folder).add(mmsg)
  File "/usr/local/lib/python2.7/mailbox.py", line 269, in add
    tmp_file = self._create_tmp()
  File "/usr/local/lib/python2.7/mailbox.py", line 490, in _create_tmp
    return _create_carefully(path)
  File "/usr/local/lib/python2.7/mailbox.py", line 2021, in _create_carefully
    fd = os.open(path, os.O_CREAT | os.O_EXCL | os.O_RDWR, 0666)
OSError: [Errno 2] No such file or directory: '/usr/home/paul/dovecot/paul/tmp/1419226881.M509536P32680Q36289.www'

=== End of Exception traceback ===
wds52 commented 5 years ago

Offlineimap not working in version 1.9.1 as well:

_gmvault-shell>gmvault export -t offlineimap C:\mail-OIM-dir

Create defaults in C:\Documents and Settings\Owner/.gmvault/gmvault_defaults.conf. Please touch this file only if you know what to do. Export gmvault-db as a offlineimap mailbox. Start emails export for default labels. Error: [Error 123] The filename, directory name, or volume label syntax is incorrect.

=== Exception traceback === Traceback (most recent call last): File "c:\Users\toto\Dev\gmvault\build\gmv_runner\out00-PYZ.pyz\gmv.gmv_cmd", line 758, in run File "c:\Users\toto\Dev\gmvault\build\gmv_runner\out00-PYZ.pyz\gmv.gmv_cmd", line 606, in _export File "c:\Users\toto\Dev\gmvault\build\gmv_runner\out00-PYZ.pyz\gmv.gmvault_export", line 69, in export File "c:\Users\toto\Dev\gmvault\build\gmv_runner\out00-PYZ.pyz\gmv.gmvault_export", line 104, in export_ids File "c:\Users\toto\Dev\gmvault\build\gmv_runner\out00-PYZ.pyz\gmv.gmvault_export", line 177, in add File "c:\Users\toto\Dev\gmvault\build\gmv_runner\out00-PYZ.pyz\mailbox", line 298, in add WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect

=== End of Exception traceback ===_

Any insight as to a fix or workaround?