from django.conf.urls.defaults import * # # FIXME: there is a big issue with this url mapping. If a folder's # name matches one of the first entries (from "compose" to # "attachments"), the associated folder will not be accessible. # urlpatterns = patterns('modoboa.extensions.webmail.views', #(r'^$', "index"), (r'^$', "newindex"), (r'^submailboxes', "submailboxes"), (r'^mailcontent', "getmailcontent"), # (r'^compose/$', "compose"), (r'^move/$', "move"), (r'^mark/(?P.+)/$', "mark"), (r'^empty/(?P.+)/$', "empty"), (r'^compact/(?P.+)/$', "compact"), (r'^newfolder/$', "newfolder"), (r'^editfolder/$', 'editfolder'), (r'^delfolder/$', 'delfolder'), (r'^attachments/$', 'attachments'), (r'^delattachment/$', 'delattachment'), (r'^(?P.+)/(?P[\w\-\+]+)/part/$', 'getattachment'), (r'^(?P.+)/(?P[\w\-\+]+)/delete/$', 'delete'), #(r'^(?P.+)/(?P[\w\-\+]+)/content/$', 'getmailcontent'), (r'^(?P.+)/(?P[\w\-\+]+)/forward/$', 'forward'), (r'^(?P.+)/(?P[\w\-\+]+)/reply/$', 'reply'), # (r'^(?P.+)/(?P[\w\-\+]+)/$', 'viewmail'), (r'^(?P.+)/$', "folder"), )