From b824a53292367a5d0859696438a2177fdf841e32 Mon Sep 17 00:00:00 2001 From: Ross Poulton Date: Mon, 18 Aug 2008 21:34:41 +0000 Subject: [PATCH] Fixed #9 BUG ugettext no longer automatically imported in trunk. --- management/commands/get_email.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/management/commands/get_email.py b/management/commands/get_email.py index a457d3e8..5e5957b2 100644 --- a/management/commands/get_email.py +++ b/management/commands/get_email.py @@ -9,17 +9,21 @@ scripts/get_email.py - Designed to be run from cron, this script checks the helpdesk, creating tickets from the new messages (or adding to existing tickets if needed) """ -import poplib + +import email import imaplib +import mimetypes +import poplib +import re from datetime import datetime, timedelta -import email, mimetypes, re from email.Utils import parseaddr -from helpdesk.models import Queue, Ticket, FollowUp, Attachment -from helpdesk.lib import send_templated_mail from django.core.files.base import ContentFile - from django.core.management.base import BaseCommand +from django.utils.translation import ugettext as _ + +from helpdesk.lib import send_templated_mail +from helpdesk.models import Queue, Ticket, FollowUp, Attachment class Command(BaseCommand): def handle(self, *args, **options):