Closed Bug 707197 Opened 13 years ago Closed 13 years ago

Send weekly OF reports to dev-tree-management newsgroup

Categories

(Tree Management Graveyard :: OrangeFactor, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mcote, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

The weekly OF report only goes to the dev-tree-management mailing list and doesn't show up in the newsgroup.  It should use NNTP to post directly to the group.
Attached patch NNTP support (obsolete) — Splinter Review
This adds NNTP support. You can now specify destination email addresses and/or
newsgroups.  I moved the username option into report/from so that it'll be
used by both email and NNTP.
Attachment #585532 - Flags: review?(jgriffin)
Attached patch NNTP supportSplinter Review
Oops, broke email there.  Since technically the username for email (for authenticated email) may be different from the From header, I put the email/username option back in but made it optional.
Attachment #585532 - Attachment is obsolete: true
Attachment #585532 - Flags: review?(jgriffin)
Attachment #585542 - Flags: review?(jgriffin)
Comment on attachment 585542 [details] [diff] [review]
NNTP support

Review of attachment 585542 [details] [diff] [review]:
-----------------------------------------------------------------

Yay, newsgroup support!

::: woo_mailer.py
@@ +127,5 @@
>      try:
>          mail_username = cfg.get('email', 'username')
>      except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
> +        mail_username = None
> +

Possibly this should be:

if mail_dest:
    sys.stderr.write('No "username" option defined in "email" section of file "%s".' % options.config_file)
    sys.exit(errno.EINVAL)
else:
    mail_username = None

Or are there cases where this could validly be None when sending e-mail?
Attachment #585542 - Flags: review?(jgriffin) → review+
mail_username is (now) only used for email authentication, along with mail_password.  Since brasstacks is behind a firewall, on the Mozilla network, the woo mailer has always been using plain SMTP.  It was only using mail_username for the From: header, which I moved to another section to share it with the NNTP config.  So yes, perfectly fine for it to be None now. :)

Pushed as http://hg.mozilla.org/automation/orangefactor/rev/63cc26e54206 and deployed.  Ran it immediately to send email and post to newsgroup, which worked perfectly.  Remind me to check this next Tuesday. ;)
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Would you mind announcing this on dev.platform please?  :-)
Done! :)
Product: Testing → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: