version 0.0.13

This commit is contained in:
Alexis Mousset
2015-06-27 11:12:19 +02:00
parent 8811b32113
commit cbc9764626
3 changed files with 10 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
[package]
name = "smtp"
version = "0.0.12"
version = "0.0.13"
description = "Simple SMTP client"
readme = "README.md"
documentation = "http://amousset.github.io/rust-smtp/smtp/"
@@ -12,12 +12,12 @@ authors = ["Alexis Mousset <contact@amousset.me>"]
keywords = ["email", "smtp", "mailer"]
[dependencies]
time = "*"
uuid = "*"
log = "*"
rustc-serialize = "*"
rust-crypto = "*"
bufstream = "*"
time = "0.1"
uuid = "0.1"
log = "0.3"
rustc-serialize = "0.3"
rust-crypto = "0.2"
bufstream = "0.1"
[dependencies.email]
git = "https://github.com/amousset/rust-email.git"

View File

@@ -74,7 +74,7 @@
//! builder = builder.subject("Hello world");
//! builder = builder.body("Hi, Hello world.");
//! builder = builder.reply_to("contact@example.com");
//! //builder = builder.add_header(("X-Custom-Header", "my header"));
//! builder = builder.add_header(("X-Custom-Header", "my header"));
//!
//! let email = builder.build();
//!
@@ -138,7 +138,7 @@
//! let _ = email_client.quit();
//! ```
//#![deny(missing_docs)]
#![deny(missing_docs)]
#[macro_use] extern crate log;
extern crate rustc_serialize as serialize;

View File

@@ -82,6 +82,7 @@ pub struct Email {
}
impl Email {
/// Displays the formatted email content
pub fn as_string(&self) -> String {
self.message.as_string()
}