procmail
[Top] [All Lists]

Re: Help with formail -X (another forwarding to phone)

1999-06-09 06:39:10
Thanks for your reply!

On Wed, 9 Jun 1999, era eriksson wrote:

It appears that several SMS/pager providers wrongly display the From_
line as if it were the From: header. This should be easy enough to
test; send yourself a test message with a bogus From: header and see
if it shows the From: header like you expected, or if you see the
address from the From_ line instead.

I sent a message from a cgi-script at a webserver I'm updating, that I
know fairly well... I sent a message with 
To: 12345678(_at_)sms(_dot_)netcom(_dot_)no
From: barebull(_at_)example(_dot_)com
(example.com is unassigned, right?), 
In the message I CC-ed to myself, the From_ line reads:
From nobody(_at_)nordnes(_dot_)bgnett(_dot_)no  Wed Jun  9 14:55:10 1999 
while the phone says that the message came from barebull(_at_)example(_dot_)com 
so I
guess that means it doesn't use the From_ line, right?

should make sure the From-header is kept as it is, but it isn't.... 

To me, "make sure" sounds like you don't really understand what's
going on here. This command tells formail to zap everything except the
body and the From: header. There is no implied guarantee that e.g.
your local Sendmail will not subsequently do something naughty to the
From: header (although it seems unlikely and even wacky; but certainly
formail has no control over that).

Guess so.... :-) But if it wasn't the From_ line, could it be that
sendmail does this after all?

Finally, an idea I have is that the script only forwards after
checking if I've been idle for say, one hour. I have no idea how to
do this, though...

I don't believe there is a simple and generally accepted definition
for what should constitute "being idle". I'm unsure how finger(1)
keeps track of this, but I frequently find the information to be
inaccurate on some systems I have access to.

Seems inaccurate here too.... I remember having access to a system were it
seemed reliable, though.... :-) I think I'll just touch a file in my
.logout and delete it in my .login, test whether it is there, and figure
out something more sophisticated later on. 

Best,

Kjetil
-- 
Kjetil Kjernsmo
Graduate astronomy-student                    Problems worthy of attack
University of Oslo, Norway            Prove their worth by hitting back
E-mail: kjetikj(_at_)astro(_dot_)uio(_dot_)no                                - 
Piet Hein
Homepage <URL:http://www.astro.uio.no/~kjetikj/>
Webmaster(_at_)skepsis(_dot_)no 



<Prev in Thread] Current Thread [Next in Thread>