Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisht13 committed Aug 21, 2024
1 parent ca36007 commit 3b0a4ac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "relayer-utils"
version = "0.2.5"
version = "0.2.6"
authors = ["Sora Suegami", "Aditya Bisht"]
license = "MIT"
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zk-email/relayer-utils",
"version": "0.2.5",
"version": "0.2.6",
"description": "",
"main": "index.js",
"contributors": [
Expand Down
4 changes: 4 additions & 0 deletions src/parse_email.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ impl ParsedEmail {
Ok(idxes)
}

pub fn get_body(&self) -> Result<String> {
Ok(self.canonicalized_body.clone())
}

pub fn get_timestamp(&self) -> Result<u64> {
let idxes = extract_timestamp_idxes(&self.canonicalized_header)?[0];
let str = &self.canonicalized_header[idxes.0..idxes.1];
Expand Down

0 comments on commit 3b0a4ac

Please sign in to comment.