예제 #1
0
    def clear_mailbox(cls, directory):
        """
        Method clears mailbox by removing symlinks.

        Args:
            directory (str): Path to directory for clearing the mailbox
        """
        mailbox = Maildir(directory)
        mailbox.clear()
예제 #2
0
def empty_dir(directory):
    box = Maildir(directory)
    box.clear()
예제 #3
0
def empty_dir(directory):
    box = Maildir(directory)
    box.clear()
예제 #4
0
def process(gen, output):
    box = Maildir(output)
    box.clear()
    for filename in gen:
        os.symlink(filename, join(box._path, "cur", basename(filename)))