Set(@MailPlugins, 'Auth::MailFrom', 'Auth::Crypt', ...other filters...);
+C<Auth::Crypt> will not function without C<Auth::MailFrom> listed before
+it.
+
=head3 GnuPG
To use the gnupg-secured mail gateway, you need to do the following:
foreach my $protocol ( @check_protocols ) {
my @status = grep defined && length,
- $part->head->get( "X-RT-$protocol-Status" );
+ map Encode::decode( "UTF-8", $_), $part->head->get( "X-RT-$protocol-Status" );
next unless @status;
push @found, $protocol;
}
if ( $_->{Operation} eq 'Verify' && $_->{Status} eq 'DONE' ) {
$part->head->replace(
- 'X-RT-Incoming-Signature' => $_->{UserString}
+ 'X-RT-Incoming-Signature' => Encode::encode( "UTF-8", $_->{UserString} )
);
}
}
}
$part->head->replace(
- 'X-RT-Incoming-Encryption' =>
+ 'X-RT-Incoming-Encryption' =>
$decrypted ? 'Success' : 'Not encrypted'
);
}
my %seen;
- $args{'Message'}->head->replace( 'X-RT-Privacy' => $_ )
+ $args{'Message'}->head->replace( 'X-RT-Privacy' => Encode::encode( "UTF-8", $_ ) )
foreach grep !$seen{$_}++, @found;
return 1;