lib/mailarchiva/soap_client.rb in mailarchiva-0.0.9 vs lib/mailarchiva/soap_client.rb in mailarchiva-0.0.10

- old
+ new

@@ -40,9 +40,14 @@ blob_response = soap_client.call(:get_blob, message: { 'blobID' =>{ 'blobID' => blob_id, 'volumeID' => volume_id } }) encoded_message = blob_response.body[:get_blob_response][:return][:blob] decoded_message = Base64.decode64(encoded_message) end + def get_mail_message(blob_id, volume_id) + message = get_message(blob_id, volume_id) + Mail.new(message) + end + def wsdl "%s://%s:%s/services/search?wsdl" % [@ssl ? 'https' : 'http', @host, @port] end def soap_client \ No newline at end of file