Ticket #5922: twistd-mail-usage.patch

File twistd-mail-usage.patch, 772 bytes (added by Matt, 8 years ago)

improved twistd mail doc

  • twisted/mail/tap.py

    diff --git twisted/mail/tap.py twisted/mail/tap.py
    index fe525f3..cd3f6b5 100644
    class Options(usage.Options, strcred.AuthOptionMixin): 
    6666                               "certificate" : usage.CompleteFiles("*.pem")}
    6767                   )
    6868
    69     longdesc = "This creates a mail.tap file that can be used by twistd."
     69    longdesc = ("This creates a mail.tap file that can be used by twistd."
     70                "\n\nFor example, you can start a server that accepts emails"
     71                " to joe@foo.com and saves them to /tmp/foo.com with:"
     72                "\n\n"
     73                "  twistd mail -d 'foo.com=/tmp/foo.com' -u joe=password")
    7074
    7175    def __init__(self):
    7276        usage.Options.__init__(self)