View on
MetaCPAN
Ashish Gulhati > Mail-Mix-1.10 > Mail::Mix

Download:
Mail-Mix-1.10.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.10   Source  

NAME ^

Mail::Mix - An interface to mixmaster remailers.

SYNOPSIS ^

  use Mail::Mix;
  my $mixmaster = new Mail::Mix;
  my @remailers = $mixmaster->remailers();
  my $message = new Mail::Internet( ['To: hash@netropolis.org', 
                                     '', 'This is a test'] );
  my @packets = $mixmaster->chain($message, $remailers->[0]->{Name}, 0);
  for (@packets) { $_->send (sendmail) }

DESCRIPTION ^

This module is a wrapper around Lance Cottrell's Mixmaster program, and facilitates sending mail through mixmaster style remailers from Perl. This module will NOT currently work with Anonymizer Inc's rewrite of mixmaster, and may never do so.

CONSTRUCTOR ^

new ()

Creates a new Mail::Mix object.

DATA METHODS ^

mixbin ()

Sets or reports the MIXBIN instance variable, which should contain the name of the Mixmaster executable.

mixdir ()

Sets or reports the MIXDIR instance variable, which should contain the name of the Mixmaster data directory.

debug ()

Sets or reports the DEBUG instance variable. If this is set true, the module will produce debugging output on its interaction with the mixmaster program.

OBJECT METHODS ^

remailers()

Returns a list of Mail::Mix::Remailer objects, which are hash containers with the following attributes:

  Index        => The position of the remailer in the list
  Name         => The remailer's name
  Address      => The remailer's email address
  Fingerprint  => The remailer's key fingerprint
  Version      => Version of Mixmaster on the remailer
  Flags        => Flags 
chain($message, @remailerlist)

Takes a Mail::Internet object and a list of remailer names, passes the message through the mixmaster binary, and returns an array of Mail::Internet objects containing the remailer packets.

Each of the remailer names provided must correspond to the Name attribute of one of the remailer objects returned by the remailers() method.

The special remailer name '0' may be used to specify a random remailer.

BUGS ^

AUTHOR ^

Mail::Mix is Copyright (c) 2000 Ashish Gulhati <hash@netropolis.org>. All Rights Reserved.

ACKNOWLEDGEMENTS ^

Thanks to Barkha for inspiration, laughs and all 'round good times; and to Lance Cottrell, Larry Wall, Richard Stallman and Linus Torvalds for all the great software.

LICENSE ^

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

DISCLAIMER ^

This is free software. If it breaks, you own both parts.

syntax highlighting: