id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
6631	The setting `always_notify_author` is not respected initially for blogs	rjollos	rjollos	Steps to reproduce:\r\n\r\n 1. Create a new user and login to create a new blog post (see Log 1 below). User does not receive an email notification.\r\n 1. Navigate to Preferences > Announcements. The blog subscription preferences are as shown in ''!BlogSubscriptionInitialPreferences.png'', below.\r\n 1. Don't make any changes to the settings, just press '''Save changes'''.\r\n 1. Create another blog post and you'll receive a notification this time.\r\n\r\nI've reproduced these steps twice using two new usernames.\r\n\r\nLog 1:\r\n{{{\r\n09:54:32 PM Trac[model] DEBUG: Saving new version 1 of blog post u'Post8' from author u'admin'\r\n09:54:32 PM Trac[api] DEBUG: AnnouncementSystem found the following subscribers capable of handling 'blog, post created': StaticTicketSubscriber, BlogSubscriber\r\n09:54:32 PM Trac[ticket_compat] DEBUG: StaticTicketSubscriber added 'ryano@physiosonics.com' because of rule: smtp_always_cc\r\n09:54:32 PM Trac[subscriber] DEBUG: BlogSubscriber added 'admin (None)' for 'My Post Subscription'\r\n09:54:32 PM Trac[api] DEBUG: AnnouncementSystem has found the following subscriptions: [admin(not authenticated) via email], [ryano@physiosonics.com(not authenticated) via email]\r\n09:54:32 PM Trac[email_distributor] DEBUG: EmailDistributor has found the following formats capable of handling 'email' of 'blog': text/plain\r\n09:54:32 PM Trac[email_distributor] DEBUG: EmailDistributer format text/html not availablefor email blog, looking for an alternative\r\n09:54:32 PM Trac[email_distributor] DEBUG: EmailDistributor found the address 'admin@physiosonics.com' for 'admin (not authenticated)' via: DefaultDomainEmailResolver\r\n09:54:32 PM Trac[email_distributor] DEBUG: EmailDistributer format text/html not availablefor email blog, looking for an alternative\r\n09:54:32 PM Trac[email_distributor] DEBUG: EmailDistributor found the address 'ryano@physiosonics.com' for 'None (not authenticated)' via: NoneType\r\n09:54:32 PM Trac[api] DEBUG: AnnouncementSystem sent event in 0.01 seconds.\r\n}}}\r\n\r\nBlogSubscriptionInitialPreferences.png:\r\n\r\n[[Image(BlogSubscriptionInitialPreferences.png)]]\r\n\r\nLog 2:\r\n{{{\r\n10:05:04 PM Trac[main] DEBUG: Dispatching <Request "POST u'/blog/create'">\r\n10:05:04 PM Trac[web_ui] DEBUG: Blog debug: command=u'create', pagename=u'Post10', path_items=[u'create']\r\n10:05:04 PM Trac[model] DEBUG: Saving new version 1 of blog post u'Post10' from author u'admin'\r\n10:05:04 PM Trac[api] DEBUG: AnnouncementSystem found the following subscribers capable of handling 'blog, post created': StaticTicketSubscriber, BlogSubscriber\r\n10:05:04 PM Trac[ticket_compat] DEBUG: StaticTicketSubscriber added 'ryano@physiosonics.com' because of rule: smtp_always_cc\r\n10:05:04 PM Trac[subscriber] DEBUG: BlogSubscriber added 'admin (True)' for 'My Post Subscription'\r\n10:05:04 PM Trac[api] DEBUG: AnnouncementSystem has found the following subscriptions: [ryano@physiosonics.com(not authenticated) via email], [admin(authenticated) via email]\r\n10:05:04 PM Trac[email_distributor] DEBUG: EmailDistributor has found the following formats capable of handling 'email' of 'blog': text/plain\r\n10:05:04 PM Trac[email_distributor] DEBUG: EmailDistributor determined the preferred format for 'admin (authenticated)' is: text/plain\r\n10:05:04 PM Trac[email_distributor] DEBUG: EmailDistributor found the address 'admin@physiosonics.com' for 'admin (authenticated)' via: DefaultDomainEmailResolver\r\n10:05:04 PM Trac[email_distributor] DEBUG: EmailDistributer format text/html not availablefor email blog, looking for an alternative\r\n10:05:04 PM Trac[email_distributor] DEBUG: EmailDistributor found the address 'ryano@physiosonics.com' for 'None (not authenticated)' via: NoneType\r\n10:05:04 PM Trac[email_distributor] DEBUG: EmailDistributor is sending event as '<generator object get_format_alternative at 0x225bfa0>' to: admin@physiosonics.com\r\n10:05:06 PM Trac[email_distributor] DEBUG: EmailDistributor took 2.13 seconds to send.\r\n10:05:06 PM Trac[api] DEBUG: AnnouncementSystem sent event in 2.19 seconds.\r\n10:05:06 PM Trac[session] DEBUG: Retrieving session for ID u'admin'\r\n}}}\r\n\r\nAdditional details: I'm running the t:TracStandalone development environment configued with authentication as described on t:TracStandalone#UsingAuthentication.  The development environment is configured as described in t:TracDev/DevelopmentEnvironmentSetup.\r\n\r\nAll of the settings below were copied from the ''About'' page:\r\n\r\n{{{\r\nTrac:  _0.11.7stable-r9170\r\nPython: _2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1]\r\nsetuptools: _0.6c11\r\nSQLite: _3.6.16\r\npysqlite: _2.5.5\r\nGenshi: _0.6dev-r1092\r\nPygments: _1.0\r\nSubversion: _1.6.5 (r38866)\r\nFullBlog: _0.1.1-r7225\r\njQuery:_1.2.6\r\n}}}\r\n\r\n`[Announcer]`\r\n{{{\r\nadmit_domains  _\r\nalways_notify_component_owner _true\r\nalways_notify_owner _true\r\nalways_notify_reporter _true\r\nalways_notify_updater _true\r\nctxtnav_names _Watch ThisUnwatch This\r\ncustom_cc_fields _\r\ndefault_email_format _text/html\r\nemail_address_resolvers _SpecifiedEmailResolver, SessionEmailResolver, DefaultDomainEmailResolver\r\nemail_sender _SmtpEmailSender\r\nignore_cc_changes _false\r\nignore_domains _\r\njoinable_groups _\r\nmime_encoding _base64\r\nsendmail_path _sendmail\r\nsmtp_always_bcc _\r\nsmtp_always_cc _ryano@physiosonics.com\r\nsmtp_debuglevel _\r\nsmtp_default_domain _physiosonics.com\r\nsmtp_enabled _true\r\nsmtp_from _tracadmin@physiosonics.com\r\nsmtp_from_name _Trac Admin\r\nsmtp_password _XXXXXXX\r\nsmtp_port _587\r\nsmtp_replyto _tracadmin@physiosonics.com\r\nsmtp_server _smtpx17.msoutlookonline.net\r\nsmtp_subject_prefix ___default__\r\nsmtp_timeout _10\r\nsmtp_to _\r\nsmtp_user _ryano@physiosonics.com\r\nticket_email_header_fields _owner, reporter, milestone, priority, severity\r\nticket_email_subject _Ticket #${ticket.id}: ${ticket['summary']} {% if action %}[${action}]{% end %}\r\nticket_subject_template _$prefix #$ticket.id: $summary\r\nuse_public_cc _false\r\nuse_short_addr _false\r\nuse_threaded_delivery _false\r\nuse_tls _true\r\nwatchable_paths _wiki/*,ticket/*\r\nwiki_email_diff _true\r\nwiki_email_subject _Page: ${page.name} ${action}\r\n}}}\r\n\r\n`[fullblog-announcement]`\r\n{{{\r\nalways_notify_author  _enabled\r\nblog_email_subject _Blog: ${blog.name} ${action}\r\n}}}\r\n\r\nIt also appears that I'm not receiving a notification through the address added in the `smtp_always_cc` parameter.	defect	new	high	AnnouncerPlugin	major		blog, FullBlogPlugin		0.11
