Skip to content

Fixes for issues 28 - 36 #38

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 13 commits into from
Closed

Conversation

bshannon
Copy link
Contributor

I needed all these fixes to get hypermail to handle some mail archives I'm dealing with.
These changes have only been tested with my specific use of hypermail, so let me know
if you see any problems.

@jkbzh
Copy link
Contributor

jkbzh commented Jul 13, 2017

@bshannon Thank you very much for sharing your patches in such a clean way. I need some time to finish evaluating them. Most of them look good. The only one I'm not sure is the iconvert one. I'm asking for a second opinion on that one from an i18n expert to see if your solution is the best generic one.

@bshannon
Copy link
Contributor Author

Thanks. Let me know if you have any questions. I'm not an i18n expert either, and I suspect there are still problems in that area. The entire i18n support is very ad hoc and full of assumptions about how charsets work. The iso-2022-jp support is done as a special case, instead of handling different charsets in a more general way.

@bshannon
Copy link
Contributor Author

@jkbzh Just checking in to see if anyone has had a chance to look at these changes...

@bshannon
Copy link
Contributor Author

Looks like no one has any time to deal with this... :-(

@stardude900
Copy link

Any progress on this?

@bshannon
Copy link
Contributor Author

@jkbzh Just checking in again to see if anyone has had time to look at my fixes...

@@ -833,6 +834,14 @@ <h3><a name="msg_head">Message page headers/footers</a></h3>
<br><i>show_headers = From,Subject,Date,Message-ID</i> (disabled by default)
</dd>

<a name="show_received_date"></a>
<dt><strong>show_received_date = [ 0 | 1 ]</strong></dt><dd>
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add (enabled by default) comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated the example and added the comment, as is done for other options that are enabled by default.

src/string.c Outdated
@@ -1485,7 +1485,7 @@ char *parseemail(char *input, /* string to parse */
at="@";

if (strchr(input, '@') == NULL && strstr(input, "&#64;") == NULL)
return input; // nothing to do here
return strsav(input); // nothing to do here
Copy link
Contributor

Choose a reason for hiding this comment

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

This patch is taken out of context so it's hard to tell to which other part of the code it is related to Rather than sending the correction, could you resubmit this patch with its other associated code changes?. (only for the issue this one is solving).

if (!setlocale(LC_ALL, locale_code)) {
if (!setlocale(LC_ALL, locale_code)) {
char *locale_code_utf8 = utf8locale(locale_code);
if (!setlocale(LC_ALL, locale_code_utf8)) {
snprintf(errmsg, sizeof(errmsg), "WARNING: locale \"%s\", not supported.\n", locale_code);
fprintf(stderr, "%s", errmsg);/* AUDIT biege: avoid format-bug warning */
Copy link
Contributor

Choose a reason for hiding this comment

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

This patch look s ok. Could you explain what is "AUDIT biege"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No idea. That's not code that I added or touched.

@jkbzh
Copy link
Contributor

jkbzh commented Jun 6, 2018 via email

@bshannon
Copy link
Contributor Author

bshannon commented Jun 6, 2018

Welcome back! :-)

What's an "MR"?

These commits were done incrementally as I found and fixed bugs. That's why it
sometimes required multiple commits to fix a single problem. I guess I'm not enough
of a git/github expert to know how to separate the fixes for each problem into its own
pull request while still having a single build of the program that includes all the fixes.

Do I need to create a branch for each issue? And then create another branch that merges
all the branches? And if I have to go back and update one of the issue branches, then I
have to do another merge into the combined branch? If I do a simple "git push", will all of
these branches be pushed to github?

If that's more or less correct, let me see if I can redo this as a set of branches and pull requests.

Also, I got a bunch of github notifications about comments you added, but I'm not seeing
many of those comments in the "Files changed" list. Were they removed? Or am I looking
in the wrong place?

@bshannon
Copy link
Contributor Author

bshannon commented Jun 6, 2018

Ok, I think I've figured this out. New pull requests coming...

@bshannon
Copy link
Contributor Author

bshannon commented Jun 6, 2018

New pull requests submitted, closing this one.

@bshannon bshannon closed this Jun 6, 2018
@tripu
Copy link

tripu commented Jun 7, 2018

Also, I got a bunch of github notifications about comments you added, but I'm not seeing
many of those comments in the "Files changed" list. Were they removed? Or am I looking
in the wrong place?

@bshannon, can you paste one of those notifications?

@bshannon
Copy link
Contributor Author

Here's a notification I got that I can't see in the "Files changed" tab:

@jkbzh commented on this pull request.

In docs/hmrc.4:

@@ -766,6 +766,15 @@ line. If it contains the special character ``*''
.B hypermail
will display all header lines.
.TP
+.B show_received_date = boolean_number
+This controls whether the date the message was received is displayed
+at the end of the message text. If set to
+.B 0
+the received date is not displayed.
+This option is
+.B enabled

From line 760, you mean to say this option is disabled by default? It should be the case as it is a new feature that may change the output.

@tripu
Copy link

tripu commented Jun 11, 2018

Hum, I can't find that either, @bshannon

Didn't that message include a direct link to the specific commit, review, comment… something that might help find it?

@bshannon
Copy link
Contributor Author

The text "docs/hmrc.4" is linked to #38 (comment).

The "view it on GitHub" link is to #38 (review)

Neither of them take me directly to the comment. And if I switch to the "Files changed" tab, the first file is docs/hmrc.4. It shows the changes, but it doesn't include a "Show comments" check box.

@tripu
Copy link

tripu commented Jun 12, 2018

Thank you, @bshannon. You are right: that review and that comment are missing.

@jkbzh, do you remember making such comment yourself? Deleted it afterwards…?

(Not important — at this point I'm just curious about GH's behaviour and the logic behind this :)

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.

4 participants