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

Small bugfixes and some new functionality #3

Closed
wants to merge 6 commits into from

Conversation

jsagarribay
Copy link

Hello, I've been using a patched mairix for a few years and I'd like to see if the changes are wanted upstream (I should have sent them years ago...)

I use mairix in a small webpage to let a few people search a big shared mailbox, so there is a commit to skip database locking (we do the update in a copy of the database and update it atomically when finished). The commit to show In-Reply-To header lets us reconstruct the thread summary without having to open and parse each mail in the webapp.

Then there are a couple bugfixes for problems surfaced with our use across several years and lots of weird mail.

Regards

With it it's possible to do concurrent searches
After 1305fc "Fix string overrun bugs in nvp.c" a header such as
"Content-Type: text/html; charset=utf-8;" (note trailing semicolon)
creates a struct nvp {type=NVP_NAMEVALUE, lhs=NULL, rhs=NULL} and
causes a segmentation fault afterwards when those pointers are used.

Also unconditionally free temporal values, free(NULL) is valid.
@vandry
Copy link
Owner

vandry commented Aug 13, 2017

Hello Jaime Velasco Juan,

Thank you very much for these changes, especially the one for the bug I introduced myself recently ("Never create nvp with NULL lhs or rhs"). I merged all of them except for the --no-lock one.

The --no-lock one, I plan to resolve by instead removing the locking altogether. There are a couple of open issues about that: rc0#21 and rc0#25. That will be for the next release.

@vandry vandry closed this Aug 13, 2017
vandry pushed a commit that referenced this pull request Jan 1, 2022
Fix two typos in erbium.
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

Successfully merging this pull request may close these issues.

2 participants