7 passphrase => 'rt-test',
8 homedir => RT::Test::get_abs_relocatable_dir(
9 File::Spec->updir(), qw/data gnupg keyrings/
13 RT->Config->Set( 'MailPlugins' => 'Auth::MailFrom', 'Auth::Crypt' );
15 my ($baseurl, $m) = RT::Test->started_ok;
18 $m->get( $baseurl.'/Admin/Queues/');
19 $m->follow_link_ok( {text => 'General'} );
20 $m->submit_form( form_number => 3,
21 fields => { CorrespondAddress => 'rt@example.com' } );
22 $m->content_like(qr/rt\@example.com.* - never/, 'has key info.');
24 ok(my $user = RT::User->new(RT->SystemUser));
25 ok($user->Load('root'), "Loaded user 'root'");
26 $user->SetEmailAddress('rt@example.com');
29 # XXX: need to generate these mails
31 diag "no encryption on encrypted queue";
32 diag "mismatched signature";
33 diag "unknown public key";
34 diag "unknown private key";
35 diag "signer != sender";
36 diag "encryption to user whose pubkey is not signed";
37 diag "no encryption of attachment on encrypted queue";
38 diag "no signature of attachment";
41 diag "unknown algorithm";