Loading...

atom-syntax@imc.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: to/cc/bcc extension James Snell Mon Oct 25 14:00:09 2010

Aristotle, the email application messed up the markup... it's supposed to be
just...

  <to> acct: john.doe @ example.org </to>

(I added some spaces to try to keep the example from being messed up again)

- James

On Mon, Oct 25, 2010 at 12:52 PM, Aristotle Pagaltzis <[EMAIL PROTECTED]>wrote:

>
> * James Snell <[EMAIL PROTECTED]> [2010-10-15 23:05]:
> > Wanted to draw attention to this:
> >
> >   http://tools.ietf.org/html/draft-norris-atompub-audience-00.html
> >
> > It introduces to/cc/bcc elements to an Atom entry.
> >
> >   <entry>
> >     ...
> >     <to>acct:[EMAIL PROTECTED] <[EMAIL PROTECTED]> <
> [EMAIL PROTECTED] <[EMAIL PROTECTED]>></to>
> >     <to>acct:[EMAIL PROTECTED] <[EMAIL PROTECTED]> <
> [EMAIL PROTECTED] <[EMAIL PROTECTED]>></to>
> >     <cc>acct:[EMAIL PROTECTED] <[EMAIL PROTECTED]> <
> [EMAIL PROTECTED] <[EMAIL PROTECTED]>></cc>
> >     <cc>acct:[EMAIL PROTECTED] <[EMAIL PROTECTED]> <
> [EMAIL PROTECTED] <[EMAIL PROTECTED]>></cc>
> >     <bcc>acct:[EMAIL PROTECTED] <[EMAIL PROTECTED]> <
> [EMAIL PROTECTED] <[EMAIL PROTECTED]>></bcc>
> >     <bcc>acct:[EMAIL PROTECTED] <[EMAIL PROTECTED]> <
> [EMAIL PROTECTED] <[EMAIL PROTECTED]>></bcc>
> >     ...
> >   </entry>
> >
> > Comments are welcomed and requested.
>
> First: your example XML is broken. (Unescaped angle brackets in
> content.)
>
> Next: microparsing, and of text content no less (as opposed to
> attribute values)? How hideous.
>
> I will suggest something like
>
>    <audience rel="to"
>        address="acct:[EMAIL PROTECTED] <[EMAIL PROTECTED]>"
>        label="acct:[EMAIL PROTECTED] <[EMAIL PROTECTED]>" />
>
> The label should be optional of course.
>
> Now you have something tractable to XML tools, eg. you can write
> reasonable XPath queries across these elements.
>
> Regards,
> --
> Aristotle Pagaltzis // <http://plasmasturm.org/>
>
>