Commits

Richard Shea  committed d012e08

#2 resolution

  • Participants
  • Parent commits 1b8f18c

Comments (0)

Files changed (1)

File findBadAddresses.py

     string = string.strip()
     return string
 
-def strip_from_verbose_message(sin, comp_obj_verbose_msg):
-    '''
-    This is an unused function which should be refactored
-    into a more general purpose function or removed
-    '''
-    match_obj = comp_obj_verbose_msg.search(sin)
-    try:
-        mailto_address = match_obj.group('MAILTOADDRESS')
-    except AttributeError: 
-        mailto_address = sin
-
-    return mailto_address
-
-def parse_error_component1(in_msg, dic_diag):
-    '''
-    This is an unused function which should be refactored
-    into a more general purpose function or removed
-    '''
-    #Do stupid stuff to convert
-    #a generator to a list
-    list_parts = []
-    for elem in in_msg.walk():
-        list_parts.append(elem)
-
-    items = list_parts[2].items()
-    print items
-    for item in items:
-        if dic_diag.has_key(item[0]):
-            dic_diag[item[0]].append(item[1]) 
-        else:
-            dic_diag[item[0]] = [] 
-
-    return dic_diag
-
 def find_email(instr):
     '''
     Given a string searches for all email addresses contained
     Returns a hard-coded list of file names which will be ignored
     in subsequent processing
 
-    This is an, effectively, an unused function which should be refactored
-    into a more general purpose function or removed
+    This is not currently used but is left in place as it supports        
+    the 'ignore me' structure which is in place    
     '''
     lst = []
     return lst