from __future__ import absolute_import import logging import poplib import re import socket import sys from email.parser import Parser from bugmail.models import BugmailStat from scrum.models import ALL_COMPONENTS, Bug, BZProduct from scrum.utils import get_setting_or_env PARSER = Parser() BUGMAIL_HOST = get_setting_or_env('BUGMAIL_HOST') BUGMAIL_USER = get_setting_or_env('BUGMAIL_USER') BUGMAIL_PASS = get_setting_or_env('BUGMAIL_PASS') BUGMAIL_MAX_MESSAGES = get_setting_or_env('BUGMAIL_MAX_MESSAGES', 1000) BUG_ID_RE = re.compile(r'\[Bug\s+(\d+)\]') BUG_SUMMARY_RE = re.compile(r'{0}(?:\s+New:)?\s+(.+)$'.format(BUG_ID_RE)) # 'admin' also comes through but is for account creation. BUGZILLA_TYPES = ( 'new', 'changed', ) BUGZILLA_INFO_HEADERS = ( 'product', 'component', 'severity', 'status',
from __future__ import absolute_import import logging import poplib import re from email.parser import Parser from bugmail.models import BugmailStat from scrum.models import BZProduct from scrum.utils import get_setting_or_env BUGMAIL_HOST = get_setting_or_env('BUGMAIL_HOST') BUGMAIL_USER = get_setting_or_env('BUGMAIL_USER') BUGMAIL_PASS = get_setting_or_env('BUGMAIL_PASS') BUG_ID_RE = re.compile(r'\[Bug (\d+)\]') BUG_SUMMARY_RE = re.compile(r'[^\]]+\](?: New:)? (.+)$') # 'admin' also comes through but is for account creation. BUGZILLA_TYPES = ( 'new', 'changed', ) BUGZILLA_INFO_HEADERS = ( 'product', 'component', 'severity', 'status', 'priority', 'assigned-to', 'target-milestone',
from __future__ import absolute_import import logging import poplib import re import socket import sys from email.parser import Parser from bugmail.models import BugmailStat from scrum.models import ALL_COMPONENTS, Bug, BZProduct from scrum.utils import get_setting_or_env PARSER = Parser() BUGMAIL_HOST = get_setting_or_env('BUGMAIL_HOST') BUGMAIL_USER = get_setting_or_env('BUGMAIL_USER') BUGMAIL_PASS = get_setting_or_env('BUGMAIL_PASS') BUGMAIL_MAX_MESSAGES = get_setting_or_env('BUGMAIL_MAX_MESSAGES', 1000) BUG_ID_RE = re.compile(r'\[Bug\s+(\d+)\]') BUG_SUMMARY_RE = re.compile(r'{0}(?:\s+New:)?\s+(.+)$'.format(BUG_ID_RE)) # 'admin' also comes through but is for account creation. BUGZILLA_TYPES = ( 'new', 'changed', ) BUGZILLA_INFO_HEADERS = ( 'product', 'component', 'severity', 'status', 'priority',