"""

Agent running periodically on a server with installed python-zimbra libs,
that looks on the server for emails, that have reached their followup time,
moves them to the inbox and tags them.

"""

import logging
from optparse import OptionParser
import re
from datetime import datetime

from pythonzimbra.tools import auth
from pythonzimbra.communication import Communication

ZIMBRA_INBOX_ID = 2

if __name__ == "__main__":

    # Interpret arguments

    parser = OptionParser(
        usage="Usage: %prog [options] SERVER USERNAME PREAUTH",
        description="SERVER: Name/IP of Zimbra-Server, "