Skip to content

Fix ISO-2022-JP support - fixes #36 #48

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

Closed
wants to merge 36 commits into from

Conversation

bshannon
Copy link
Contributor

@bshannon bshannon commented Jun 6, 2018

No description provided.

Daigo Matsubara and others added 30 commits October 25, 2005 05:59
…ing, from now translateurl() escapes URI strings only.
…us-ascii but message headers include other encoded text like utf-8
at W3C by Fumi, Daigo, and myself. See Changelog for details
@jkbzh
Copy link
Contributor

jkbzh commented Jun 7, 2018

@bshannon, do you think it could be possible to split this PR into two, one that deals with the changes you did for spamify (you can include the spamifiy_replacedomain changes in this eet) and another one for the rest of the iso-2022-jp changes? It will make it easier to test each set separately. It will also make it easier to review if I need to ask our i18n specialist colleagues something specific.
Thanks!

@bshannon
Copy link
Contributor Author

bshannon commented Jun 7, 2018

Sorry, it's been way too long since I made these changes and I don't remember all the details,
but as I remember it the spamify changes were part of making it work for iso-2022-jp because
spamify was making assumptions about how characters were encoded that just weren't valid
for iso-2022-jp.

@jkbzh
Copy link
Contributor

jkbzh commented Jun 7, 2018 via email

@bshannon
Copy link
Contributor Author

bshannon commented Jun 7, 2018

Attributing these changes to "Bill Shannon" is fine.

/* correct the pointer and free the old */
free(input);
return newbuf;
return replacechar(input, '@', set_antispam_at);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing free(input) before the return

else
PushByte(&buff, *input);
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing free(input)

@bshannon
Copy link
Contributor Author

bshannon commented Jun 9, 2018

Yes, you're probably right. (Too much time working in Java.)
Do you need me to update the PR? Or will you just fix this when
you split the changes into two?

@jkbzh
Copy link
Contributor

jkbzh commented Jun 15, 2018

@bshannon, no it's ok. I'm going thru them.

@jkbzh
Copy link
Contributor

jkbzh commented Dec 7, 2018

Hi @bshannon,
It took some time but all the changes you have proposed for this PR were merged into the branch I am temporarily using for development (applemail_hack).
I did some modifications: spamify_replacedomain was replacing everything following a "@" char by antispamdomain. Now it's only doing so for the domain part of valid email addresses.
I didn't apply the optimization change your PR proposed for struct.c. Doing so restricted limited the use of antispamdomain (and maybe the other antispam functions) to the headers; the body was being ignored.
I also added the needed free(input) where needed (and fixed a related sigsev).

Thank you for your contributions! I will close this PR when I merge that dev branch into master.

@bshannon
Copy link
Contributor Author

bshannon commented Dec 8, 2018

I didn't apply the optimization change your PR proposed for struct.c. Doing so restricted limited the use of antispamdomain (and maybe the other antispam functions) to the headers; the body was being ignored.

Is the body not being handled in parseemail, like my comment says?

@jkbzh
Copy link
Contributor

jkbzh commented Dec 10, 2018

I didn't apply the optimization change your PR proposed for struct.c. Doing so restricted limited the use of antispamdomain (and maybe the other antispam functions) to the headers; the body was being ignored.

Is the body not being handled in parseemail, like my comment says?

I didn't look into detail for the reasons but spamify_replacedomain wasn't being applied to body when I enabled that change in struct.h. Disabling the changet made it work again.

@jkbzh jkbzh force-pushed the master branch 2 times, most recently from 9ef9fbe to 1f4f886 Compare December 23, 2019 11:37
@jawad92
Copy link

jawad92 commented Mar 29, 2025

hello

@uriel542

This comment was marked as off-topic.

@jkbzh
Copy link
Contributor

jkbzh commented May 25, 2025

This PR was already merged.

@jkbzh jkbzh closed this May 25, 2025
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.

7 participants