= Question messages = Question messages are plain text. They are formatted as HTML for web pages. Many messages originate from emails where unwanted or unnecessary content is included. Note: This set of tests is generally the same rules as xx-bug-comments-truncated.txt; changes here may require changes to that test. Let's have an authenticated user create a message in the style of an email post to examine the markup rules. This message contains a quoted passage, and a signature with an email address in it. >>> user_browser.open('http://answers.launchpad.dev/ubuntu/+question/11') >>> print user_browser.title.decode('utf-8') Question #11 : ... >>> user_browser.getControl('Message').value = ( ... "Top quoting is bad netiquette.\n" ... "The leading text will be displayed\n" ... "normally--no markup to hide it from view.\n" ... "\n" ... "Somebody said sometime ago:\n" ... "> 1. Remove the letters c, j, q, x, w\n" ... "> from the English Language.\n" ... "> 2. Remove the penny from US currency.\n" ... "\n" ... "--\n" ... "______________________\n" ... "human@somewhere.org\n" ... "Witty signatures rock!\n") >>> user_browser.getControl('Add Information Request').click() == Email addresses are only shown to authenticated users == Email addresses are visible to authenticated users. Sample Person is authenticated already, He will see 'human@somewhere.org' >>> print user_browser.title.decode('utf-8') Question #11 : ... >>> text = find_tags_by_class( ... user_browser.contents, 'boardCommentBody')[-1] >>> print extract_text(text.findAll('p')[-1]) -- ______________________ human@somewhere.org Witty signatures rock! Unauthenticated users, such as a bot will see the mock email address of 'person@domain.dom'. The anonymous user is unauthenticated, he will see the obfuscated email address (