def _prefix(subject):
 if email().prefix:
  return '{} {}'.format(email().prefix, subject)
 else:
  return subject

def _prefix ( subject ) : if email ( ) . prefix : return '{} {}' . format ( email ( ) . prefix , subject ) else : return subject
if the config has a special prefix for emails then this function adds this prefix .