Compare commits

..

No commits in common. "7a6000be2647dbb0d14958c0094dd268aecfe850" and "42590b3cbcf50f014c65d6ff41c316f6c6bcab14" have entirely different histories.

2 changed files with 3 additions and 16 deletions

View File

@ -1,10 +0,0 @@
set -e
cd ~/dotfiles
git diff
scp nasx:.procmailrc procmailrc
git diff
cd ~/src/xinu.tv/letterbox/procmail2notmuch
cargo run > /tmp/notmuch.tags
mv /tmp/notmuch.tags ~/dotfiles/notmuch.tags
cd ~/dotfiles
git diff

View File

@ -89,15 +89,13 @@ impl<'r, 'o: 'r> Responder<'r, 'o> for PartResponder {
.ok() .ok()
} }
} }
#[get("/attachment/<id>/<idx>")] #[get("/attachment/<id>/<idx>")]
async fn attachment( async fn attachment(
_nm: &State<Notmuch>, nm: &State<Notmuch>,
id: &str, id: &str,
idx: usize, idx: usize,
) -> Result<PartResponder, Debug<NotmuchError>> { ) -> Result<PartResponder, Debug<NotmuchError>> {
let _idx = idx; let mid = if id.starts_with("id:") {
let _mid = if id.starts_with("id:") {
id.to_string() id.to_string()
} else { } else {
format!("id:{}", id) format!("id:{}", id)
@ -200,8 +198,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
show, show,
graphql_query, graphql_query,
graphql_request, graphql_request,
graphiql, graphiql
attachment
], ],
) )
.attach(cors) .attach(cors)