develooper Front page | perl.perl5.porters | Postings from January 2003

[PATCH] tiny tweak to Net::SMTP

Thread Next
From:
Rafael Garcia-Suarez
Date:
January 24, 2003 03:28
Subject:
[PATCH] tiny tweak to Net::SMTP
Message ID:
20030124122848.2701f142.rgarciasuarez@free.fr
based on paragraph 5.3 of RFC 1891 : acceptable values
for the RET param of ESMTP. Plus, add the "DSN" keyword
in the docs, for people that grep the manpages.


Index: lib/Net/SMTP.pm
===================================================================
--- lib/Net/SMTP.pm	(revision 622)
+++ lib/Net/SMTP.pm	(working copy)
@@ -217,7 +217,7 @@
       {
        if(exists $esmtp->{DSN})
         {
-	 $opts .= " RET=" . uc $v
+	 $opts .= " RET=" . ((uc($v) eq "FULL") ? "FULL" : "HDRS");
         }
        else
         {
@@ -572,11 +572,13 @@
 in hash like fashion, using key and value pairs.  Possible options are:
 
  Size        => <bytes>
- Return      => <???>
+ Return      => "FULL" | "HDRS"
  Bits        => "7" | "8"
  Transaction => <ADDRESS>
  Envelope    => <ENVID>
 
+The C<Return> and C<Envelope> parameters are used for DSN (Delivery
+Status Notification).
 
 =item reset ()
 
End of Patch.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About