gremmie@1: """
gremmie@1: This file contains various helper utility functions for the messages
gremmie@1: application.
bgneal@566: 
gremmie@1: """
gremmie@1: 
gremmie@1: 
gremmie@1: def reply_subject(subject):
bgneal@566:     """
bgneal@566:     Builds a subject line for a reply.
bgneal@566:     If the subject already starts with Re: then return the subject.
bgneal@566:     Otherwise, prepend Re: to the subject and return it.
bgneal@566:     """
bgneal@566:     if subject.startswith('Re: '):
bgneal@566:         return subject
bgneal@566:     return 'Re: ' + subject