Bob Tennent | 8 Jun 14:59 2005
Picon
Picon

-r option

nail.1 says:

 -r address
	Sets the From address. Overrides any from variable specified  in  envi-
	ronment  or startup files.  Tilde escapes are disabled. 

What does "disabling" tilde escapes mean? All the ones I've tried (p,v,
etc.) seem to be functional. I conjectured that there was a specific
From-setting tilde escape that was disabled, but there doesn't seem to
be one.

Bob T.

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
Gunnar Ritter | 8 Jun 15:39 2005
Picon

Re: -r option

Bob Tennent <rdt@...> wrote:

> nail.1 says:
>
>  -r address
> 	Sets the From address. Overrides any from variable specified  in  envi-
> 	ronment  or startup files.  Tilde escapes are disabled. 
>
> What does "disabling" tilde escapes mean? All the ones I've tried (p,v,
> etc.) seem to be functional. I conjectured that there was a specific
> From-setting tilde escape that was disabled, but there doesn't seem to
> be one.

The CVS version now works as documented. Thanks for your report.

	Gunnar

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
Bob Tennent | 8 Jun 15:49 2005
Picon
Picon

Re: -r option

 >|> nail.1 says:
 >|>
 >|>  -r address
 >|> 	Sets the From address. Overrides any from variable specified  in  envi-
 >|> 	ronment  or startup files.  Tilde escapes are disabled. 
 >|>
 >|> What does "disabling" tilde escapes mean? All the ones I've tried (p,v,
 >|> etc.) seem to be functional. I conjectured that there was a specific
 >|> From-setting tilde escape that was disabled, but there doesn't seem to
 >|> be one.
 >|
 >|The CVS version now works as documented. Thanks for your report.

What is the motivation for disabling *all* tilde escapes? Presumably
this is as mandated by POSIX.

Bob

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
Gunnar Ritter | 9 Jun 01:05 2005
Picon

Re: -r option

Bob Tennent <rdt@...> wrote:

> What is the motivation for disabling *all* tilde escapes? Presumably
> this is as mandated by POSIX.

No, -r is not part of the POSIX mailx specification; it originates
from System V mailx and is part of SVID3, which demands to disable
tilde escapes. -r also uses a special (obsolete) method of passing
the "From" address to sendmail. It exists for compatibility only.
The sane way to set a "From" address with nail is to use the "from"
variable.

	Gunnar

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
Bob Tennent | 9 Jun 03:30 2005
Picon
Picon

Re: -r option

 >|The sane way to set a "From" address with nail is to use the "from"
 >|variable.

I can't get this to work from outside nail.  The man page says

   An option is also set if it is passed to nail as part of
       the environment 

but not for me. 

Bob

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
Bob Tennent | 9 Jun 08:43 2005
Picon
Picon

Re: -r option

 >| >|The sane way to set a "From" address with nail is to use the "from"
 >| >|variable.
 >|
 >|I can't get this to work from outside nail.  The man page says
 >|
 >|   An option is also set if it is passed to nail as part of
 >|       the environment 
 >|
 >|but not for me. 

I see why: 

  A value given in a startup file overrides a value imported
  from the environment

and the right way to do what I want is to do it inside nail as follows:

~:set from="..."

Shouldn't the From header be included in the ~h process and the ~p
listing when it has been changed?

Bob

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
(Continue reading)

Gunnar Ritter | 9 Jun 12:11 2005
Picon

Re: -r option

Bob Tennent <rdt@...> wrote:

> and the right way to do what I want is to do it inside nail as follows:
>
> ~:set from="..."
>
> Shouldn't the From header be included in the ~h process and the ~p
> listing when it has been changed?

What exactly do you mean with "when it has been changed"? The default
is not to generate a From field at all when using sendmail; it is made
from "login <at> currenthost" when using SMTP. This is not useful for most
people today since most email addresses have nothing to do with the
current host anymore. Most people will thus set "from". But once it
has been set, it is rarely changed again.

I think it is a good idea to put "from" etc. it in the ~p listing if
they are set, but I would find it rather disturbing to have to skip
it nearly every time I use ~h. But I could introduce a ~H escape which
allows to configure more fields.

Anyway, what do you want to achieve? The "account" command offers a
convenient way to manage different from addresses etc.

	Gunnar

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
(Continue reading)

Bob Tennent | 9 Jun 16:41 2005
Picon
Picon

Re: -r option

 >|> Shouldn't the From header be included in the ~h process and the ~p
 >|> listing when it has been changed?
 >|
 >|What exactly do you mean with "when it has been changed"? 

Changed from its startup setting by a from command.

 >|I think it is a good idea to put "from" etc. in the ~p listing if
 >|they are set, but I would find it rather disturbing to have to skip
 >|it nearly every time I use ~h. But I could introduce a ~H escape
 >|which allows to configure more fields.
 >|
 >|Anyway, what do you want to achieve? The "account" command offers a
 >|convenient way to manage different from addresses etc.

Thanks for pointing that out. On first glance, it didn't seem
applicable.

Bob

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
Bill Schoolfield | 9 Jun 20:38 2005

inline html?

Is there a way to send mail in formats other than straight text in line? 
In the case of html, I'd like to send that inline as opposed to an 
attachment.

Bill

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
Gunnar Ritter | 10 Jun 02:46 2005
Picon

Re: -r option

Gunnar Ritter <Gunnar.Ritter@...> wrote:

> I think it is a good idea to put "from" etc. it in the ~p listing if
> they are set, but I would find it rather disturbing to have to skip
> it nearly every time I use ~h. But I could introduce a ~H escape which
> allows to configure more fields.

These are now available in the CVS repository, just in case somebody
wants to try them out.

	Gunnar

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

Gmane