Implement auto-forward and auto-reply

This commit is contained in:
Pierre Jaury
2016-04-20 21:20:02 +02:00
parent d2e6bf01e2
commit 3a4703b764
9 changed files with 85 additions and 4 deletions

View File

@@ -42,11 +42,15 @@ class UserPasswordForm(Form):
class UserForwardForm(Form):
forward = fields.StringField('Destination', [validators.Email()])
forward_enabled = fields.BooleanField('Enable forwarding', default=False)
forward = fields.StringField(
'Destination', [validators.Optional(), validators.Email()]
)
submit = fields.SubmitField('Update')
class UserReplyForm(Form):
reply_enabled = fields.BooleanField('Enable reply', default=False)
reply_subject = fields.StringField('Reply subject')
reply_body = fields.StringField('Reply body', widget=widgets.TextArea())
submit = fields.SubmitField('Update')