Package duplicity :: Package backends :: Module imapbackend :: Class ImapBackend
[hide private]
[frames] | no frames]

Class ImapBackend

source code


Instance Methods [hide private]
 
__init__(self, parsed_url) source code
 
_resetConnection(self) source code
 
_prepareBody(self, f, rname) source code
 
put(self, source_path, remote_filename=None)
Transfer source_path (Path object) to remote_filename (string)
source code
 
get(self, remote_filename, local_path)
Retrieve remote_filename and place in local_path
source code
 
list(self)
Return list of filenames (strings) present in backend
source code
 
_imapf(self, fun, *args) source code
 
_delete_single_mail(self, i) source code
 
_expunge(self) source code
 
delete(self, filename_list)
Delete each filename in filename_list, in order if possible.
source code
 
close(self)
Close the backend, releasing any resources held and invalidating any file objects obtained from the backend.
source code

Inherited from backend.Backend: get_data, get_fileobj_read, get_fileobj_write, get_password, munge_password, popen, popen_persist, put_data, run_command, run_command_persist

Method Details [hide private]

__init__(self, parsed_url)
(Constructor)

source code 
Overrides: backend.Backend.__init__

put(self, source_path, remote_filename=None)

source code 

Transfer source_path (Path object) to remote_filename (string)

If remote_filename is None, get the filename from the last path component of pathname.
Overrides: backend.Backend.put
(inherited documentation)

get(self, remote_filename, local_path)

source code 
Retrieve remote_filename and place in local_path
Overrides: backend.Backend.get
(inherited documentation)

list(self)

source code 
Return list of filenames (strings) present in backend
Overrides: backend.Backend.list
(inherited documentation)

delete(self, filename_list)

source code 
Delete each filename in filename_list, in order if possible.
Overrides: backend.Backend.delete
(inherited documentation)

close(self)

source code 
Close the backend, releasing any resources held and invalidating any file objects obtained from the backend.
Overrides: backend.Backend.close
(inherited documentation)