From b3a5c5519ed1f26f58751b4c46f86ae48dc8ddae Mon Sep 17 00:00:00 2001 From: Matheus Faria Date: Tue, 6 Oct 2015 15:48:13 -0300 Subject: [PATCH] Allowed the use of dots on mailman listnames --- colab/super_archives/management/commands/import_emails.py | 2 +- colab/super_archives/urls.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/colab/super_archives/management/commands/import_emails.py b/colab/super_archives/management/commands/import_emails.py index 063f22f..83ade23 100644 --- a/colab/super_archives/management/commands/import_emails.py +++ b/colab/super_archives/management/commands/import_emails.py @@ -117,7 +117,7 @@ class Command(BaseCommand, object): # Get messages from each mbox for mbox in mailing_lists_mboxes: mbox_path = os.path.join(mailinglist_dir, mbox, mbox) - mailinglist_name = mbox.split('.')[0] + mailinglist_name = os.path.splitext(mbox)[0] # Check if the mailinglist is set not to be imported if exclude_lists and mailinglist_name in exclude_lists: diff --git a/colab/super_archives/urls.py b/colab/super_archives/urls.py index 51dba05..0235a9a 100644 --- a/colab/super_archives/urls.py +++ b/colab/super_archives/urls.py @@ -6,7 +6,7 @@ from .views import (EmailView, EmailValidationView, ThreadView, urlpatterns = patterns( 'super_archives.views', - url(r'thread/(?P[-\w]+)/(?P[-\w]+)$', + url(r'thread/(?P[-.\w]+)/(?P[-.\w]+)$', ThreadView.as_view(), name="thread_view"), url(r'thread/$', ThreadDashboardView.as_view(), name='thread_list'), url(r'manage/email/validate/?$', EmailValidationView.as_view(), -- libgit2 0.21.2