(self, from_, time_=None)
Set "From " line, formatting and appending time_ if specified.
Set "From " line, formatting and appending time_ if specified.
Set From line formatting and appending time_ if specified .
def set_from(self, from_, time_=None):
        """Set "From " line, formatting and appending time_ if specified."""
        if time_ is not None:
            if time_ is True:
                time_ = time.gmtime()
            from_ += ' ' + time.asctime(time_)
        self._from = from_
def set_from ( self , from_ , time_ = None ) : if time_ is not None : if time_ is True : time_ = time . gmtime ( ) from_ += ' ' + time . asctime ( time_ ) self . _from = from_