angelos.lib.storage.mail

Vault.

class angelos.lib.storage.mail.MailStorage(facade: angelos.lib.facade.base.BaseFacade, home_dir: pathlib.Path, secret: bytes, delete=<Delete.HARD: 2>)

Bases: angelos.lib.storage.storage.StorageFacadeExtension

Mail box interface.

Mail is the archive that is used to store messages on the server. Clients will push and pull their messages to the server for routing within the community.

ATTRIBUTE = ('mail',)
CONCEAL = ('mail.ar7',)
INIT_HIERARCHY = ()
USEFLAG = (109,)
delete(filename: pathlib.PurePosixPath)

Remove a document at a certain location.

issuer(issuer, path: pathlib.PurePosixPath = PurePosixPath('/'), limit=1)

Search a folder for documents by issuer.

save(filename: pathlib.PurePosixPath, document, document_file_id_match=True)

Save a document at a certain location.

Parameters
  • filename

  • document

  • document_file_id_match

Returns:

search(issuer: Optional[uuid.UUID] = None, path: pathlib.PurePosixPath = PurePosixPath('/'), limit: int = 1) → List[bytes]

Search a folder for documents by issuer and path.

update(filename: pathlib.PurePosixPath, document)

Update a document on file.