""" This module defines the URL patterns for mailbox and mail address related views. """ from __future__ import absolute_import from django.urls import re_path from .views import ( AddMailAddress, ChangeMailboxPassword, CreateMailbox, DeleteMailAddress, EditMailAddress, ) urlpatterns = [ re_path( r"^(?P\d+)/mailbox/create$", CreateMailbox.as_view(), name="create_mailbox", ), re_path( r"^(?P\d+)/mailbox/(?P[\w0-9]+)/setpassword$", ChangeMailboxPassword.as_view(), name="change_mailbox_password", ), re_path( r"^(?P\d+)/mailaddress/(?P[\w0-9-.]+)/create$", AddMailAddress.as_view(), name="add_mailaddress", ), re_path( r"^(?P\d+)/mailaddress/(?P[\w0-9-.]+)/(?P\d+)" r"/edit$", EditMailAddress.as_view(), name="edit_mailaddress", ), re_path( r"^(?P\d+)/mailaddress/(?P[\w0-9-.]+)/(?P\d+)" r"/delete$", DeleteMailAddress.as_view(), name="delete_mailaddress", ), ]