GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Verp(3) User Contributed Perl Documentation Verp(3)

Mail::Verp - encodes and decodes Variable Envelope Return Paths (VERP) addresses.

  use Mail::Verp;
 
  #Using class methods

  #Change separator to something else
  Mail::Verp->separator('+');

  #Create a VERP envelope sender of an email to recipient@example.net.
  my $verp_email = Mail::Verp->encode('sender@example.com', 'recipient@example.net');

  #If a bounce comes back, decode $verp_email to figure out
  #the original recipient of the bounced mail.
  my ($sender, $recipient) = Mail::Verp->decode($verp_email);
 
 
  #Using instance methods

  my $verp = Mail::Verp->new(separator => '+');

  #Create a VERP envelope sender of an email to recipient@example.net.
  my $verp_email = $verp->encode('sender@example.com', 'recipient@example.net');

  #Decode a bounce
  my ($sender, $recipient) = $verp->decode($verp_email);

Mail::Verp encodes and decodes Variable Envelope Return Paths (VERP) email addresses.

Mail::Verp encodes the address of an email recipient into the envelope sender address so that a bounce can be more easily handled even if the original recipient is forwarding their mail to another address and the remote Mail Transport Agents send back unhelpful bounce messages. The module can also be used to decode bounce recipient addresses.

new()
Primarily useful to save typing. So instead of typing "Mail::Verp" you can say my $x = Mail::Verp->new; then use $x whereever "Mail::Verp" is usually required.

Accepts an optional "separator" argument for changing the separator, which defaults to hyphen '-'. The value can also be changed using the "separator" accessor.

my $x = Mail::Verp->new(separator => '+');

encode(LOCAL-ADDRESS, REMOTE-ADDRESS)
Encodes LOCAL-ADDRESS, REMOTE-ADDRESS into a verped address suitable for use as an envelope return address. It may also be useful to use the same address in Errors-To and Reply-To headers to compensate for broken Mail Transport Agents.

Uses current separator value.

decode(VERPED-ADDRESS)
Decodes VERPED-ADDRESS into its constituent parts. Returns LOCAL-ADDRESS and REMOTE-ADDRESS in list context, REMOTE-ADDRESS in scalar context. Returns VERPED-ADDRESS if the decoding fails.

Uses current separator value.

separator
Returns current value of the VERP "separator"
separator(SEPARATOR)
Sets new value for VERP "separator" and returns the previous value.

None.

DJ Bernstein details verps here: http://cr.yp.to/proto/verp.txt.

Sam Varshavchik proposes an encoding here: http://www.courier-mta.org/draft-varshavchik-verp-smtpext.txt.

Gyepi Sam <gyepi@cpan.org>

Copyright 2007 by Gyepi Sam

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2007-06-30 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.