ok, I've fixed it and I'm about to send him a verification mail by hand. Lets see if it comes back.
djce
Good research yalaforge. Looks like it should be easy to fix now we understand it.
ruaok
djce: can you do me a favor and check out my utf-8 encoding on test.mb.org and verify your email again?
yalaforge: you too, please?
yalaforge
ok
ruaok
The mail went out and no bounces so far.
djce
you want me to check your code, ruaok?
ruaok
sure.
Lemme check it in.
But I was more concerned about the headers.
yalaforge
mail is here
ruaok
yeay!
yalaforge
The "Mime-Version: 1.0" is missing, AFAICS
djce
You should remove the encode("utf-8",...) bit. All our internal data is already utf8-encoded.
ruaok
damn. You're fast.
So encode_qp is all we need then?
djce
Yes. And not even that in the "confirmation" email, since there is nothing to encode.
ruaok
MIME::QuotedPrint is that standard perl?
djce
i.e. remove the Content-Transfer-Encoding from SendVerificationEmail
perl 5.8.0 standard, I think yes.
yalaforge
ruaok: is ruaok.net your domain? I don't get it via whois.
ruaok
yes. I let it lapse. I'm too poor to affort too many domains.
djce
(oh, I see, you're encoding it all at the end. Oh, leave it in then).
In SendVerificationEmail the utf-8/QP encoding is ok, but over the top, since the text of the message is guaranteed to be all standard US-ASCII stuff anyway.
ruaok
Moderator names could have UTF-8 chars in them.
djce
yes, indeed.
ruaok
Do I need to add the Mime-Version: 1.0 header?
yalaforge
yes.
wait a minute, please
djce
I think so. I always forget it, but it should be added.
ruaok: missing utf8/qp encoding here: "If you would like to send mail to moderator $from,"
ruaok
ok got it.
ok, mime version is in there, server restarted.
Do you guys want to try it one more time?
yalaforge
sure
ruaok
djce: is it safe to update UserStuff.pm on the main server once we're happy here?
djce
Yes, as long as the changes are small and isolated. Best to do a "cvs diff -r HEAD" on zim to check.
ruaok
My changes are, I was wondering if there was something else.
djce
is your stuff fully committed now?
ruaok
djce: Do you know if MIME::QuotedPrint is standard perl? I wanna add it to the proper section in INSTAL
yalaforge
RFC-2045 states: "Messages composed in accordance with this document MUST include such a header field, with the following verbatim text: MIME-Version: 1.0" See section 4.
djce
MIME::QuotedPrint is part of "G/GA/GAAS/MIME-Base64-2.20.tar.gz" - not vanilla Perl 5.8.0, but usually one of the first add-ons people install :-) Best to list it in the INSTALL file, it can't hurt.
btw there is a really nice, slick, much more Perl-y way of doing all that e-mail generation stuff. I'll see if I can refer to an example some time to remember the slick way to do it.