The email processor should allow messages without to element

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

The email processor should allow messages without to element

Eric van der Vlist
Hi,

Title says it all...

There are cases were you don't want to display a list of recipients and
you provide only bcc's.

One case that comes to mind is a "recommend this site" page that accepts
multiple recipients: to preserve the confidentiality of the recipients,
many sites chose hide the list of recipients in that case.

In such a case, that would be nice to be able to either provide a "to"
with a "name" and without "email" or no "to" elements but the schema for
the email processor forbids these two options.

Eric
--
Lisez-moi sur XMLfr.
                       http://xmlfr.org/index/person/eric+van+der+vlist/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: The email processor should allow messages without to element

Erik Bruchez
Administrator
I don't know if/how you can just specify a name without an address with
javax.mail (the other option you were suggesting):

http://java.sun.com/products/javamail/javadocs/javax/mail/internet/package-summary.html

So I fixed using the other option. There must be at least one of "to",
"cc", or "bcc", which you can interleave, as follows (email.rng):

<oneOrMore>
     <choice>
         <element name="to">
             <ref name="address"/>
         </element>
         <element name="cc">
             <ref name="address"/>
         </element>
         <element name="bcc">
             <ref name="address"/>
         </element>
     </choice>
</oneOrMore>

Hopefully this is good enough!

-Erik

Eric van der Vlist wrote:

> Hi,
>
> Title says it all...
>
> There are cases were you don't want to display a list of recipients and
> you provide only bcc's.
>
> One case that comes to mind is a "recommend this site" page that accepts
> multiple recipients: to preserve the confidentiality of the recipients,
> many sites chose hide the list of recipients in that case.
>
> In such a case, that would be nice to be able to either provide a "to"
> with a "name" and without "email" or no "to" elements but the schema for
> the email processor forbids these two options.
>
> Eric


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: The email processor should allow messages without to element

Eric van der Vlist
Hi Erik,

Le lundi 26 septembre 2005 à 18:23 -0700, Erik Bruchez a écrit :
> I don't know if/how you can just specify a name without an address with
> javax.mail (the other option you were suggesting):
>
> http://java.sun.com/products/javamail/javadocs/javax/mail/internet/package-summary.html

Hmmm... I had not checked in JavaMail and was just assuming that it
could do all what the sendmail command can do, sorry if that was a wrong
assumption!

> So I fixed using the other option. There must be at least one of "to",
> "cc", or "bcc", which you can interleave, as follows (email.rng):
>
> <oneOrMore>
>      <choice>
>          <element name="to">
>              <ref name="address"/>
>          </element>
>          <element name="cc">
>              <ref name="address"/>
>          </element>
>          <element name="bcc">
>              <ref name="address"/>
>          </element>
>      </choice>
> </oneOrMore>
>
> Hopefully this is good enough!
Yes, definitely!

Thanks.

Eric

--
Curious about Relax NG? Read my book online.
                                   http://books.xmlschemata.org/relaxng/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws