parameters: (line)
return_statement: return newline + line[pos:]
docstring: Decode a header line to 8bit.
docstring_summary: Decode a header line to 8bit.
docstring_tokens: Decode a header line to 8bit .
function: def mime_decode_header(line):
      """Decode a header line to 8bit."""
      newline = ''
      pos = 0
      while 1:
          res = mime_head.search(line, pos)
          if res is None:
              break
          match = res.group(1)
          # convert underscores to spaces (before =XX conversion!)
          match = ' '.join(match.split('_'))
          newline = newline + line[pos:res.start(0)] + mime_decode(match)
          pos = res.end(0)
      return newline + line[pos:]
function_tokens: def mime_decode_header ( line ) : newline = '' pos = 0 while 1 : res = mime_head . search ( line , pos ) if res is None : break match = res . group ( 1 ) # convert underscores to spaces (before =XX conversion!) match = ' ' . join ( match . split ( '_' ) ) newline = newline + line [ pos : res . start ( 0 ) ] + mime_decode ( match ) pos = res . end ( 0 ) return newline + line [ pos : ]