other than maybe someone younger than 35 could edit the
>documentation.
That may be the point -- or not, I suppose, depending on one's point of
view. (I'm far past the point of being under 35 myself, for what that's
worth.)
- Steven
--
___
up the
following, among others:
https://stackoverflow.com/questions/13433903/convert-all-linux-man-pages-to-text-html-or-markdown
https://jeromebelleman.gitlab.io/posts/publishing/manpages/
- Steven
--
___
Steven Wi
on Manjaro (21.2.6, "Qonos"):
===
All 118 tests passed
===
- Steven
--
_______
Steven Winikoff |
Montreal, QC, Canada | "It's amazing how much 'mature
>This should fix it for you, Steven:
It does.
Thanks again! I really appreciate your help with this.
- Steven
--
___
Steven Winikoff | Sometimes you will never know the value
Montreal, QC, Canada | of a mom
ote selectively rather than
forward an entire message. For the few exceptions, an unmodified copy of
the original message is available as a backup.
- Steven
--
_______
Steven Winikoff |
Montreal, QC, Canada | "What
rily is perverse, at least in
my opinion. :-/
- Steven
--
___
Steven Winikoff | "The man who has ceased to learn ought
Montreal, QC, Canada | not to be allowed to wander around
s...@smwonline.ca |
. :-(
>I'll look into it.
Thank you!
- Steven
--
_______
Steven Winikoff | Sometimes you will never know the value
Montreal, QC, Canada | of a moment until it becomes a memory.
s
tream -noverbose \
-decodeheaderfieldbodies utf-8\
-file "${source}" -outfile "${tf}.fixed"
...but the Subject header came through unchanged. What am I missing?
- Steven
--
___
msg behaves right now. :-)
Thank you!
- Steven
--
_______
Steven Winikoff |
Montreal, QC, Canada | "If at first you don't succeed, transform
s...@smwonline.ca
ond one.
The relevant excerpt (with parts elided to keep the whole short enough here
for purposes of illustration) is
Subject: =?US-ASCII?Q?Using_[...]_to_mak?= =?US-ASCII?Q?e_text_[...]?=
- Steven
--
___
Steven
aved messages. I just realized that my decode_headers program doesn't
detect the second encoded string in the same header, but I'm about to go
fix that. :-)
- Steven
--
___
Steven Winikoff |
Montreal, QC, Canada | "Any teacher who _can_ be replaced by a
s...@smwonline.ca | machine, _should_ be."
http://smwonline.ca |
|- Arthur C. Clarke
er03.4goodhosting.com with esmtpsa (TLS1.2) tls
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
(Exim 4.94.2)
(envelope-from )
id 1nJL4r-Oz-0y
for s...@smwonline.ca; Sun, 13 Feb 2022 15:02:33 -0500
Date: Sun, 13 Feb 2022 15:02:32 -0500
From: Steven Winik
xt anyway.
>Is it a proper MIME message (does mhfixmsg return with a non-zero exit
>status)? If so, can you send it to me off-line?
It's the same message I already sent to you, that I've been using as a test
case all through this discussion. I just checked, and mhfixmsg returns a
zero exit status for it.
- Steven
--
___
Steven Winikoff |
Montreal, QC, Canada | "It is never too late to be what you might
s...@smwonline.ca | have been."
http://smwonline.ca | - George Eliot
000i\000\000\000g\000\000\000u\000\000\000r\000\000\000e\000\000\
>\000d\000\000\000$
>$
I think that clears up the last mystery remaining from the questions I
raised. Thank you for your help throughout!
- Steven
--
lighted.
This appears to be the case for me in bash (invoked as sh just now), at
least with enable-bracketed-paste turned off.
- Steven
--
___
Steven Winikoff | "Science is built upon facts, as a house is
Montreal
;/home/smw/Mail/mhfixmsgnhCjdt", O_RDONLY) = 5
mhfixmsg: /home/smw/Mail/mhfixmsgsLWrjg part 1, decode text/html;
charset=iso-8859-1
openat(AT_FDCWD, "/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT
(No such file or directory)
openat(AT_FDCWD, "/usr/lib/gconv/gconv
it to you privately, but we can do better than that. I just
thought to check archive.org for the patch, and found it at
https://web.archive.org/web/20211124173449if_/http://sysmic.org/dl/par/par-1.52-i18n.4.patch
...so you can examine the source code directly.
- Steven
--
, the unmodified version of the message does contain
some encoded headers that my decode_headers program found and
decoded; mhfixmsg appears not to have done so).
Thanks,
- Steven
--
___
Steven Wi
bracketed-paste off
I just tried this, and it works. Thank you for pointing that out!
- Steven
--
_______
Steven Winikoff | "Science is built upon facts, as a house is
Montreal, QC, Canada | built of stone
sen
.|
0028
...so it writes 0xc3 0xb8, which I believe is what it should be doing.
- Steven
--
_______
Steven Winikoff | "The most exciting phrase to hear in
Montreal, QC, Canada | science, the one that h
red.
Right, but in this case sh was what was desired. As I understand it,
when invoked that way bash behaves closer to a real Bourne shell than
when involved as bash.
>> I propose to forget this particular clupea harengus of the crimson
>> variety unless you find it interesting in and
mhfixmsg shows no external programs being run.
What am I missing?
- Steven
--
_______
Steven Winikoff |
Montreal, QC, Canada | "He who has imagination without learning
s...@smwonline.ca
ot configured' /usr/bin/par
Done, but this still produces no output.
- Steven
--
___
Steven Winikoff | "I don't want to run the world; I merely
Montreal, QC, Canada | want to own a substantial portion of the
s...@smwonline.ca | the preferred stock."
http://smwonline.ca |
|- Alan Dean Foster, Cat-A-Lyst
e at a time in reverse
>order (starting with mhfixmsg switches) until it's bad.
This sounds like an excellent plan, and I intend to follow through with it
on Friday; unfortunately I'll be busy with other things until then.
...although I may need help getting past the build problem.
y trying to
>help" software.
Of course. :-/
You might enjoy this utility, if you haven't already seen it:
https://www.fourmilab.ch/webtools/demoroniser/
- Steven
--
___
Steven Winikoff | "The
I see your problem. You hate your sister.
Jackie Mason: I haven't got a sister.
psychiatrist: I can't help you if you won't cooperate.
...so I feel a need to apologize for being uncooperative :-/, but I'm at a
loss here.
- Steven
8<- c
tc/ $HOME -type f -print0 | xargs=0 egrep -l
>'seems not configured'
The same command also returns for me without finding anything.
I've read Ralph's followup suggesting it might be /usr/bin/par, but
apparently that's not the case.
- Steven
--
__
'll try to be more careful next time.
- Steven
--
_______
Steven Winikoff | It's is not, it isn't ain't, and it's it's,
Montreal, QC, Canada | not its, if you mean it is. If you don't,
s...@smwonline.ca | it's
bad.sed
$ cmp good.sed bad.sed
$ echo $?
0
...which behaves as expected.
>> Strangely, both snippet files look fine in vim.
>
>Because you have chopped off the non-UTF-8 which occurs earlier in bad
>which fixes vim's idea of the file's encoding.
In retro
27;t that used only when I read the message? It isn't in
the procmail chain that saves the original copy, and it's the original
copy that we've been looking at.
- Steven
--
___
Steven Winikoff |
Mont
st/scan/test-header-parsing
PASS: test/scan/test-scan
PASS: test/scan/test-scan-file
PASS: test/scan/test-scan-multibyte
PASS: test/send/test-sendfrom
PASS: test/sequences/test-flist
PASS: test/sequences/test-mark
PASS: test/sequences/test-out-of-range
PASS: test/show/test-show
PASS: test/slocal/tes
"good" 836 lines, 50844 bytes1,1 Top
...but for the bad file, that becomes
"bad" [converted] 336 lines, 49471 bytes 1,1 Top
The smaller number of lines is expected (that's the effect of my
no-longer-wanted patch to mhfixmsg), but does that also explain the
different number of bytes?
More importantly, vim explicitly claims that the bad file is "[converted]",
so maybe that's the source of the double encoding?
The more I try to think about this, the more my head hurts. :-(
- Steven
--
___
Steven Winikoff |
Montreal, QC, Canada | "Do not meddle in the affairs of dragons,
s...@smwonline.ca | for you are crunchy and good with ketchup."
http://smwonline.ca |
bad.pdf
Description: bad.pdf
2: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:188: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:213: warning: AC_PROG_LEX without either yywrap or noyywrap is
obsolete
make[1]: *** [Makefile:4996: check-TESTS] Error 1
make: *** [Makefile:5261: check-am] Error 2
file you opened has some invalid characters. If you continue editing
this file you could corrupt this document.
You can also choose another character encoding and try again.
...with a menu offering "Automatically Detected", "Current Locale (UTF-8)"
and "West
e everything relevant.)
- Steven
--
_______
Steven Winikoff | "The man who has ceased to learn ought
Montreal, QC, Canada | not to be allowed to wander around
s...@smwonline.ca | loose in these dangerous
#x27;s aimed at added text/plain parts. But with -noreplacetextplain
>I think that's the path to your issue.
Please advise on the easiest way to try it (between applying 41ce4490ac5d to
1.7.1, or just downloading and building the current version of the master
branch), and I'll do so tomorro
relevant, so I tried commenting it
out; when that also made no difference, I used a bigger hammer and emptied
out /local/pkg/nmh/root-nmh-1.7.1/etc/mhn.defaults completely, but even
that made no difference that I could detect.
- Steven
--
__
ersion wasn't reported.
>> and that in fact it's part 1 rather than part 2 that gets converted
>> improperly
>
>The part numbers are reversed because that's the order used for display.
>Part 2 is the text/plain part, that's the one that got con
ason, including that there's
apparently no conversion of iso-8859-1 to UTF-8, and that in fact it's
part 1 rather than part 2 that gets converted improperly; part 2 still
has
Content-Type: text/html; charset=iso-8859-1
- Steven
--
___
I doing wrong, and what should I be doing
instead?
Thanks,
- Steven
--
_______
Steven Winikoff |
Montreal, QC, Canada | Aleph-null bottles of beer on the wall,
s...@smwonline.ca | Aleph-null bottles of beer...
http://smwonline.ca |
27;s definitely the root cause. Thanks again for all your help on
this!
- Steven
--
___
Steven Winikoff |
Montreal, QC, Canada | "Do not meddle in the affairs of dragons,
s...@smwonline.ca | for you are crunchy and good with ketchup."
http://smwonline.ca |
e from Arch and see what happens.
- Steven
--
_______
Steven Winikoff |
Montreal, QC, Canada | "If you're not part of the solution,
s...@smwonline.ca | you're part of the precipi
there are none pending.
- Steven
--
_______
Steven Winikoff | "The difference between the right word and
Montreal, QC, Canada | the nearly right word is the difference
s...@smwonline.ca | between the lightning a
nother
time).
- Steven
--
___
Steven Winikoff |
Montreal, QC, Canada | For clarity in writing, be careful about
s...@smwonline.ca | word selection. For example, never
http://smwonline.ca | utilize 'utilize' when you can use 'use'.
gets run?
Sure, here's one:
8<-- cut here >8
To: s...@smwonline.ca
Subject: foo
Fcc: inbox
From: Steven Winikoff
Reply-to: Steven Winikoff
Content-Type: text/plain; ch
g file responsible for "audio/mpegapplication;".
Thanks,
- Steven
8<- cut here >8
To: s...@smwonline.ca
Subject: testing testing testing
From: Steven Winikoff
Reply-to: Steven Winikoff
MIME-Version: 1.0
Content-Typ
- Steven
--
_______
Steven Winikoff | "Some men see things as they are and ask
Montreal, QC, Canada | 'Why?'. I dream things that never
s...@smwonline.ca | were and ask, '
ijuana and fertilizer, which I somehow suspect
isn't what you meant. :-)
Would you be willing to share a link?
Thanks,
- Steven
--
_______
Steven Winikoff | "The man who has ceased to learn ought
Montreal, QC,
on my
home system isn't a problem, but I'm well aware that many people would
prefer not to have to do that.
- Steven
--
_______
Steven Winikoff|
Montreal, QC, Canada | "Stars
That's exactly what I've always done, from time immemorial until just
about two weeks ago.
Ironically enough I actually prefer to do it this way, but I was under the
impression that this is deprecated in modern configurations. I'd be happy
to be wrong about that.
- Steven
--
___
nformation gathered in my patch (i.e., sender and recipient addresses,
message ID, relay server and port, and resulting status and QID).
- Steven
--
___
Steven Winikoff| "...and every single one of them wanted
Montreal, QC, Canada | to be involved in the d
NOSYSLOG
+openlog("nmh_smtp", LOG_PID, LOG_MAIL);
+syslog(LOG_NOTICE,
+ "from=%s, to=%s, msgid=%s, relay=%s, port=%s, stat=%s",
+ syslog_from, syslog_to, syslog_msgid, syslog_server,
+ syslog_port, syslog_qid);
+
he two-step process is still much easier than what I'd been
doing until now.
- Steven
--
___
Steven Winikoff| "Sometimes I think we're alone in the
Montreal, QC, Canada | universe, and sometimes I
[127.0.0.1])
by 206-248-137-116.dsl.teksavvy.com (8.15.2/8.15.2/Debian-10) with
ESMTP id x49H6dIA003943
for ; Thu, 9 May 2019 13:06:39 -0400
To: smw
Subject: testing /local/paths/forw -mime
From: Steven Winikoff
Reply-to: Steven Winikoff
MIME-Version: 1.0
id read those man pages, but perhaps I'm still failing to understand
parts of them. I do know how mhfixmsg-format-text/html specifies the
command which generates the text/plain part from the text/html part, but
I don't see how to do that and also reformat the text/html part.
ay to get mhfixmsg to decode the base64 and then run it through
tidy with a given set of command-line options?
- Steven
--
___
Steven Winikoff|
Concordia University | "The end of the world
you did that!
(And I wish I'd discovered it years ago, but I digress. And it's my own
fault I didn't read the nmh-1.6 release notes carefully enough. :-/)
- Steven
--
___
Steven Winikoff|
Concordia University | "My interest is in the f
ed form doesn't have to.
Or at least that's what I thought you said.
>Our only general-purpose nmh list is nmh-workers; plenty of people on it
>are not coders, so please don't be concerned on that score.
Thanks. I've just subscribed.
- Steven
--
__
te saved email with
standard command-line tools.
For example, I particularly depend on being able to find specific saved
messages using grep or mairix[**] -- and if the message body is saved in
base64 encoding, both of those programs fail completely.
[**]
http://www.rpcurnow.
ld be worthwhile.
I'm beginning to get a sense of (and becoming impressed by) just how old
this code base is.
But you're quite right that this code isn't easy to understand. If I were
to modify uip/mhfixmsg.c without touching sbr/m_getfld.c, am I risking
anyt
-character limit, but it's not clear to me what I might break by
doing so. Would someone please explain what I'm missing here?
- Steven
--
___
Steven Winikoff|
Concordia University |
every message which passes through it in UTC.
In general I very much favour the principle of storing times in UTC and
converting to local time for display, but this (for me, at least) is an
exception.
- Steven
--
_______
Stev
->8
#!/bin/sh
#
# fixdate -- fix the time zone on a Date: header in an email message
#
# Steven Winikoff 2012/12/12
#
# it's annoying to view Date: headers marked in a different time zone;
# that annoyance wasn't important in a world where invalid time zones were
# infrequ
ng I need, I just need to put it together.
- Steven
--
_______
Steven Winikoff|
Concordia University | "The cure for boredom is curiousity.
Montreal, QC, Canada |
do that by opening the message in some
other mail client.
--
_______
Steven Winikoff|
Concordia University | "In theory, there is no difference
Montreal, QC, Canada | between theory an
t nmh programs from causing harm directly.
- Steven
[*] (or any other program which reads a profile entry and processes it in
the way we're discussing)
--
_______
Steven Winikoff|
Concordia University
hough; would the right hand side be an actual tr command? If not,
how would nmh parse the entry?
- Steven
--
_______
Steven Winikoff| "I really hate this dumb machine; I wish
Concordia University
imple and reasonable to
>me. Well, maybe replace them with an _ or something.
For what it's worth I'd prefer the "replace them with _" option, but even
without it this would do what I'm looking for.
- Steven
--
___
ectly.
- Steven
--
_______
Steven Winikoff|
Concordia University | "If you're not part of the solution,
Montreal, QC, Canada | you're part of the precip
:-/
Thank you for taking the time to explain all of that.
- Steven
--
_______
Steven Winikoff| "43rd Law of Computing:
Concordia University | Anything that can go wr
M
o do that, and that it might be nice to be able to take the time
to discuss it thoroughly enough to reach a consensus.
But yes, fixing rcvdist properly (for an agreed-upon value of 'properly' :-)
in time for 1.7.1 would be preferable.
- Steven
--
__
f the only reason for doing it
would be to delay having to fix rcvdist until after 1.7.1.
- Steven
--
___
Steven Winikoff|
Concordia University | Boren's Laws:
Montreal, QC, Canada
at wouldn't be too
difficult, would it reduce the urgency of fixing rcvdist and therefore
allow time to decide how to do that in the best possible way?
- Steven
--
___
Steven Winikoff| "You can lea
I can imagine some nasty
>security holes that we might encounter.
That's a stronger version of what I was trying to say above. :-)
- Steven
--
___
Steven Winikoff|
Concordia University
h
>it.
No problem. Thanks for all your help!
- Steven
--
___
Steven Winikoff| "The reasonable man adapts himself to the
Concordia University | world; the unreasonable one persists in
Montreal, QC, Canada | trying to adapt the world
line 980) in my copy of
uip/mhshowsbr.c is
while ((pp = strchr (pp, '\'')) && buflen > 3) {
Is it possible that you're starting with a newer version of the source
than I am?
- Steven
--
________
ke a curse or two if it means getting
this fixed. :-)
- Steven
--
_______
Steven Winikoff|"If I traveled to the end of the rainbow
Concordia University | As Dame Fortune did intend,
Montreal, QC,
>If you want to try the attached patch to mhshowsbr.c,
I'd be happy to, but (ironically in this context :-) I'm not seeing the
attachment.
- Steven
--
_______
Steven Winikoff| "Good manag
could think of which does.)
>
>Are you using mhshow to store the HTML part? mhstore should be more direct.
>
>[...]
>
>mhstore -type text/html -type image or something like that?
Thanks! That's exactly what I'm working on right now. :-)
- Steven
--
____
e missing piece is the ability
to extract the HTML file along with the images, and that's what I'm working
on now. The reason I was using rcvdist last night was to help set up a
test case.
- Steven
--
___
Steven
p, or at least it doesn't help enough:
% rcvdist smw < ~/Mail/inbox/18
post: missing argument to -port
/local/pkg/nmh/root-nmh-1.7/bin/post: exit 1
I tried adding
post: -port 25
in addition, but resulted in exactly the same error message.
- Steven
--
___
t;They aren't, we should note that in the map page. The comparison is done
>with strcasecmp().
Thank you for confirming that.
- Steven
--
___
Steven Winikoff|
Concordia University |
ird argument.
>(If you want to save a line in your profile, that
>mhshow-suffix-application/PDF line is in mhn.defaults.)
It's there, but as mhshow-suffix-application/pdf
Likewise, so is mhshow-suffix-application/postscript
but not mhshow-suffix-application/PostScript
I
-->8
I'm passing this on in case this might be considered worth adopting.
I'm not subscribed to this list, so I'd appreciate replies to my personal
address of steven.winik...@concordia.ca
Thanks,
- Steven
--
___
Steven Winiko
her email client.
- Steven
--
___
Steven Winikoff|
Concordia University | "A life spent making mistakes is not
Montreal, QC, Canada | only more honorable but more useful
steven.winik...@concordia.ca
ut for what it's worth I agree with this completely.
- Steven
--
_______
Steven Winikoff| "The reasonable man adapts himself to the
Concordia University | world; the unreasonable on
rcumstances the extra nmh subdirectory isn't helpful, which
is why I wanted to avoid using it.
I know I'm in a minority here, which is why I requested a configure option
rather than an outright change.
Thanks,
- Steven
--
_____
local -> /big/local, /home -> /big/home, etc.
(Yes, I know I could just use LVM2, but even that would require some kind
of guess at the initial sizing.)
- Steven
--
_______
Steven Winikoff
I see it was also included in 1.6, which I've been using
for over three years, but I must not have read the release notes for it
carefully enough.
Now that I know, I'll probably start using it in future.
- Steven
--
___
again; in that situation, mhfixmsg/test-mhfixmsg is the only
test that failed, but it did still fail.
I'm not subscribed to this list, so I'd appreciate replies to my personal
address of steven.winik...@concordia.ca
Thanks,
- Steven
--
_____
ailures are all triggered by calling configure with
the --with-hash-backup option.
- Steven
--
_______
Steven Winikoff| Zymurgy's Law of Evolving Systems
Concordia University |
91 matches
Mail list logo