Code Search for Developers
 
 
  

imap_cache_test.pl from AlphaMail at Krugle


Show imap_cache_test.pl syntax highlighted

#!/usr/bin/perl

use lib '/home/tkay/src/duckmail/lib';
use warnings;
use strict;
use IMAPCache;
use Data::Dumper;
use MIME::Parser;

print "Password: ";
`stty -echo`;
my $password = <STDIN>;
chomp $password;
`stty echo`;
print "\n";
my $c;

# Throws exception on invalid stuff
$c = new IMAPCache('tick.uoregon.edu', 'tkay', $password); 

print "Trying to get Message 4:\n";
my $h = $c->getHeaders('inbox', 2);
print Dumper($h);
#my $m = $c->getMessage('inbox', 4);
#print Dumper($m);
#my $parser = new MIME::Parser();
#my $entity = $parser->parse_data($m);

#print Dumper($entity);

$c->release;




See more files for this project here

AlphaMail

AlphaMail is an accelerated web mail interface with a C++ middleware layer that is more effective than an IMAP proxy which is a highly scalable (10k+ users). The interface includes modern features, Section 508 compliance, and universal browser support.

Project homepage: http://sourceforge.net/projects/alphamail
Programming language(s): C++,Java,JavaScript,Perl
License: other

  html_purify.pl
  imap.pl
  imap_cache_test.pl
  ispell.pl
  middleware_test.pl
  mime.pl
  subexp.pl
  test.html