[REBOL] Re: Morpheus (was: set-net question. No, TWOquestions)
From: petr:krenzelok:trz:cz at: 30-Oct-2001 13:29
Cal Dixon wrote:
> > Setting headers like this is a bit dumb. I even feel that 'send should be
> > simpler. When I want to send an email with, say "X-diddely-do: hello!" in
> > the header, I am forced to make a complete header-object, thus:
> >
> > send/header [hallvard--ystad--helpinhand--com] "test" make object!
> > [X-diddely-do: "hello!" from: none to: none date: none]
> >
> > The three nones are there for rebol to use my default settings. A simpler
> > and more reasonable way to do it, in my opinion, would be like this:
> >
> > send/header [hallvard--ystad--helpinhand--com] "test" [X-diddely-do: "hello!"]
>
> well, we can already do:
>
> send/header [hallvard--ystad--helpinhand--com] "test" make
> system/standard/email [X-diddely-do: "hello!"]
>
OK, then everything is solvable - put following into your user.r
using: func [blk][make system/standard/email blk]
send/header [hallvard--ystad--helpinhand--com] "test" using [X-diddely-do: "hello!"]
btw: as for 3 nones - you don't need to use none 3 times. Rebol allowes you to
use following construct too - context [a: b: c: d: none] to explicitly set all
values ...
-pekr-