Changeset 490 for trunk/email2trac.py.in
- Timestamp:
- 11/03/10 16:18:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/email2trac.py.in
r489 r490 509 509 message_parts = self.get_message_parts(message) 510 510 message_parts = self.unique_attachment_names(message_parts) 511 body_text = self. body_text(message_parts)511 body_text = self.get_body_text(message_parts) 512 512 self.debug_body(body_text, True) 513 513 self.debug_attachments(message_parts) … … 869 869 message_parts.insert(0, self.email_header_txt(m)) 870 870 871 body_text = self. body_text(message_parts)871 body_text = self.get_body_text(message_parts) 872 872 873 873 error_with_attachments = self.attach_attachments(message_parts) … … 1059 1059 message_parts.insert(0, head) 1060 1060 1061 body_text = self. body_text(message_parts)1061 body_text = self.get_body_text(message_parts) 1062 1062 1063 1063 tkt['description'] = body_text … … 1223 1223 1224 1224 message_parts = self.get_message_parts(m) 1225 comment.comment = self. body_text(message_parts)1225 comment.comment = self.get_body_text(message_parts) 1226 1226 1227 1227 blog.create_comment(req, comment) … … 1239 1239 1240 1240 message_parts = self.get_message_parts(m) 1241 post.body = self. body_text(message_parts)1241 post.body = self.get_body_text(message_parts) 1242 1242 1243 1243 blog.create_post(req, post, self.author, u'Created by email2trac', False) … … 1274 1274 'author' : self.author, 1275 1275 'subscribers' : [self.email_addr], 1276 'body' : self. body_text(context.content_parts)}1276 'body' : self.get_body_text(context.content_parts)} 1277 1277 1278 1278 ## Add topic to DB and commit it. … … 1309 1309 'time' : to_timestamp(datetime.now(utc)), 1310 1310 'author' : self.author, 1311 'body' : self. body_text(context.content_parts)}1311 'body' : self.get_body_text(context.content_parts)} 1312 1312 1313 1313 ## Add message to DB and commit it. … … 1344 1344 'time' : to_timestamp(datetime.now(utc)), 1345 1345 'author' : self.author, 1346 'body' : self. body_text(context.content_parts)}1346 'body' : self.get_body_text(context.content_parts)} 1347 1347 1348 1348 ## Add message to DB and commit it. … … 1955 1955 ########## TRAC Ticket Text ########################################################### 1956 1956 1957 def body_text(self, message_parts):1957 def get_body_text(self, message_parts): 1958 1958 body_text = [] 1959 1959 … … 1966 1966 body_text.append("") 1967 1967 continue 1968 1968 1969 1969 (original, filename, part) = part 1970 1970 inline = self.inline_part(part) … … 1978 1978 body_text.append('[attachment:"%s"]' % filename) 1979 1979 body_text.append("") 1980 1980 1981 1981 body_text = '\r\n'.join(body_text) 1982 1982 return body_text
Note: See TracChangeset
for help on using the changeset viewer.