Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "To" header fails on hundrets of messages #29

Open
matthiasbeyer opened this issue Jul 24, 2020 · 1 comment
Open

Getting "To" header fails on hundrets of messages #29

matthiasbeyer opened this issue Jul 24, 2020 · 1 comment

Comments

@matthiasbeyer
Copy link

Hi.

I don't know how to debug this, that's why I came here to ask for help.

I have a tag ml for mailinglist emails. It has 717 mails right now. Executing notmuch search tag:ml on the commandline prints them all fine.

But using the Rust interface, it fails to fetch the To header for more than half of them. I don't know why.
Can someone help me?

@OJFord
Copy link

OJFord commented Jul 25, 2021

Do those messages have a To header? I just noticed myself that .header("foo") (-> Result<Option<Cow<str>, Error>) returns error if the header is not set. Ok(None) only comes in to play if it is set to the empty string (which, surely, we want to be Ok(Some(""))?). About to open an issue specifically about this, but I noticed yours and thought it could potentially be the reason, if not the issue linked above.

Actually, disregard that, I realised in writing up the issue and some more testing/reading that it's actually libnotmuch (I think? I don't think it's an issue here..) not supporting its separate mail_root and db_path paths. If I symlink db_path subdirectories to those in mail_root, it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants