Header fields & Exim

Mike Mimic <[email protected]> Sat, 28 Aug 2004 14:27:19 -0700 (PDT)
Newsgroups gmane.comp.lang.perl.modules.mail-box
Message-ID <[email protected]>
Hi!

I think that "Received" header field should be wraped
differently into lines than other fields when adding
it with Mail::Box. As I searched RFCs there are
nothing about that there but it is some kind of common
practice that wrapped lines start with \t and not with
space. So I propose adding some option which would
control what is first character in wrapped lines.
Maybe for generating field objects in general (so that
some custom fields could also use this).

I know that I could specify wrapping by myself but the
problem is that than I have to check lines lengths and
everything by myself too and why should I do this if
Mail::Box already does this.

And it should be added to the top of the header and
not at the end (this is according to RFC) - or is
there some other method which already does this?

I have been playing a little with setting an envelope
when sending a mail (with Exim) and I was using "from"
option of "send" method (I think that it is not
documented - why not?) for this. It works fine if I
specify an e-mail address but it breaks (give an
error) when I want to specify empty envelope. In Exim
documentation is written:

However, untrusted users are permitted to set an empty
envelope sender address, to declare that a message
should never generate any bounces. For example:

  exim -f '<>' [email protected]

So I tryed:

$message->send(via=>'exim', from=>'<>');

But I got an error:

Can't call method "isa" without a package or object
reference at /usr/share/perl5/Mail/Transport/Exim.pm
line 35.


Mike


		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush