Ticket #568 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

ewhtmlemail needs short message capability for some "region" email recipients

Reported by: paulf Owned by:
Priority: major Milestone: All Platforms
Component: ewhtmlemail Version:
Keywords: Cc:

Description

For the new region feature, we need a new simple text message (shortened) non html message to be sent to selected folks. This can be used for easier parsing than the HTML by programs and for sending to text message portals on mobile phones.

So, in addition to the new EmailRecipientWithinRegion? feature, we need an option in this to send either HTML or a short csv line of the following format:

QuakeID, origin time, lat, lon, dep, ML magnitude, num-phases, quality grade

Change History

comment:1 Changed 4 years ago by scott

Is the idea here to add an optional argument to the EmailRecipientWithinRegion command, to specify what kind of email (html or shortened csv line) to send when email get sent? Is this meant to be an option added to all commands for specifying email recipients? Is this meant to be some new command what specifies what kind of email to sent to the specified recipient, regardless of how the module decides to send mail to that recipient?

An example of the new short format (showing *how* each of the fields should appear) would also be helpful.

comment:2 Changed 4 years ago by paulf

Yes, add an optional: "html", or "csv" ,defaults to HTML at the end of the EmailRecipientWithinRegion? command.

For now, just add this to the region command. Thanks.

Example line:

evid 567, 2017/03/07 11:35:26 UTC, 36.1262, -98.1093, 1.8 km, 2.0 ML, 5 phases, D

comment:3 Changed 4 years ago by scott

  • Status changed from new to closed
  • Resolution set to fixed

Implemented in r6920. The new tags (csv & html) can appear anywhere in the region list; neither defaults to html, and it is an error to provide both.

Note: See TracTickets for help on using tickets.