Commit b3a5c5519ed1f26f58751b4c46f86ae48dc8ddae

Authored by Matheus de Sousa Faria
Committed by Lucas Kanashiro
1 parent fb4122b5

Allowed the use of dots on mailman listnames

Signed-off-by: Lucas Moura <lucas.moura128@gmail.com>
Signed-off-by: Matheus Faria <matheus.sousa.faria@gmail.com>
colab/super_archives/management/commands/import_emails.py
... ... @@ -117,7 +117,7 @@ class Command(BaseCommand, object):
117 117 # Get messages from each mbox
118 118 for mbox in mailing_lists_mboxes:
119 119 mbox_path = os.path.join(mailinglist_dir, mbox, mbox)
120   - mailinglist_name = mbox.split('.')[0]
  120 + mailinglist_name = os.path.splitext(mbox)[0]
121 121  
122 122 # Check if the mailinglist is set not to be imported
123 123 if exclude_lists and mailinglist_name in exclude_lists:
... ...
colab/super_archives/urls.py
... ... @@ -6,7 +6,7 @@ from .views import (EmailView, EmailValidationView, ThreadView,
6 6  
7 7 urlpatterns = patterns(
8 8 'super_archives.views',
9   - url(r'thread/(?P<mailinglist>[-\w]+)/(?P<thread_token>[-\w]+)$',
  9 + url(r'thread/(?P<mailinglist>[-.\w]+)/(?P<thread_token>[-.\w]+)$',
10 10 ThreadView.as_view(), name="thread_view"),
11 11 url(r'thread/$', ThreadDashboardView.as_view(), name='thread_list'),
12 12 url(r'manage/email/validate/?$', EmailValidationView.as_view(),
... ...