Operating System - HP-UX
1748059 Members
5084 Online
108758 Solutions
New Discussion юеВ

Re: mutt-1.5.20 - bad idn

 
sdpnap
Occasional Advisor

mutt-1.5.20 - bad idn

hi,

I've just installed mutt and its dependencies on a hp-ux itanium2 11.31 from this link :
http://hpux.connect.org.uk/hppd/hpux/Networking/Mail/mutt-1.5.20/

but when I try to send an email, i get an error "bad IDN" :

/#mutt -s "test" gaston.lagaffe@myDomain.com < /tmp/truc
Bad IDN in "from": 'myHost.myDomain.com'


I am able to send email using mailx from this host.

does anyone have an idea ?

sylvain
8 REPLIES 8
sdpnap
Occasional Advisor

Re: mutt-1.5.20 - bad idn

hi,

i still got this problem with mutt.

and mailx don't work with all mail client while sending attached files.

any help would be appreciated.

sylvain
Steven Schweda
Honored Contributor

Re: mutt-1.5.20 - bad idn

> and mailx don't work with all mail client
> while sending attached files.

"do[es]n't work" is not a useful problem
description.

Which are "all mail client"?

What, exactly, are you doing?

As usual, showing actual commands with their
actual output can be more helpful than vague
descriptions or interpretations.

Also, what is your actual problem? Are you
trying to get "mutt" to work, or are you
trying to send e-mail with attachments, or
what? There must be dozens of old threads in
this forum involving e-mail with attachments.
Have you looked at any of them?
sdpnap
Occasional Advisor

Re: mutt-1.5.20 - bad idn

hi steven,

thanks for your reply and sorry about the vague descriptions.

I have to send mails with several files attached on a virtual hp-ux 11.31.
I have already a solution working fine with mutt on a physical hp-ux 11.11, but the point is to virualise this host.

So i did try to install mutt, which seems to be the easyiest way to send mails with several files attached on hp-ux. unfortunatly i am facing the "bad idn" bug, and i can't find help on this on the web.

Then I though I had to use the tools provided by HP : mailx and uuencode.
But some users don't see the files attached, but the ascii dump of the uuencoded files.
here is what i am doing (as seen in many posts ...) :

echo "hello world" > mesg.txt
uuencode data.csv data.csv > data.csv.uue
cat mesg.txt data.csv.uue | mailx -m -s "test" gaston.lagaffe@myDomain.com

or

cat mesg.txt data.csv.uue | mailx -s "test" gaston.lagaffe@myDomain.com


some email client are seeing well the file data.csv attached to the mail.
some other are seeing the result of "cat data.csv.uue" in the message part of the mail.

any ideas to avoid this phenomenon ?

thanks for your help anyway.

sylvain
Steven Schweda
Honored Contributor

Re: mutt-1.5.20 - bad idn

Re: Mutt:

I tried building mutt 1.4.2.3 and 1.5.20 from
the source kits on my 11.31 IA64 system, and
the builds failed (apparently unable to find
some info related to curses.h?). That
discouraged me from investigating your
'error "bad IDN"' complaint. A Google search
for the message suggests that you're not the
first person to see it.

> some email client are seeing well [...]
> some other are seeing [...]

Apparently some e-mail clients are different
from some other e-mail clients.

I don't normally send e-mail with
attachments (especially from an HP-UX
system), so I know nothing, but if I did want
to do it, I wouldn't fool around with that
obsolete uuencode method (which, I'll admit,
does seem to be very popular in this forum).
Instead, I'd try using a MIME program like
"mpack" to encode the message. Knowing
nothing about either "some email client" or
"some other", all I can do is guess, but it's
possible that the "some other" clients don't
understand the uuencode encoding scheme.
Perhaps they're newer, and their authors are
too young to remember uuencode. As I said,
I'd try a MIME-encoding program, instead.
sdpnap
Occasional Advisor

Re: mutt-1.5.20 - bad idn

i did also tried to build mutt 1.5.20 and 1.4.2.3 but the build also failed on my 11.31 IA64 system (bison -y -d --name-prefix=__gettext --output plural.c plural.y
conflicts: 7 shift/reduce) ...
so i though i had to find another tool than mutt.

we are currently sending mails outside our company, consequently i must have a kind universal solution.
I did test with ibm lotus notes 8.5 (ok) and 6.5 (nok).
As you suggested, not all email client can handle uuencode.


I did already tried mpack : it works fine but you can only send one attached file.


I was on my way to write my own MIME skeleton (http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=25501) when I found a tool called nail :
http://hpux.connect.org.uk/hppd/hpux/Networking/Mail/nail-11.25/

I will test nail on my systems ... later.

sylvain

Steven Schweda
Honored Contributor

Re: mutt-1.5.20 - bad idn

> I did already tried mpack : it works fine
> but you can only send one attached file.

Which mpack did you try? How, exactly? (In
any case, that would suggest that MIME will
work better with your uuencode-ignorant
e-mail clients.)

> As usual, showing actual commands with their
> actual output can be more helpful than vague
> descriptions or interpretations.

Wasting my breath, was I?

Some other e-mail client like, say, "pine"
might do better (and get built more easily
on HP-UX), but I haven't tried it.
(Interestingly, "munpack" can unpack a
message with multiple attachments, but I,
too, see nothing in the "mpack"
documentation which suggests that it can
assemble such a message.) A Web search for
MIME-encoding software might find other
programs which do more than mpack.
sdpnap
Occasional Advisor

Re: mutt-1.5.20 - bad idn


here is what i've tried for sending mails with several files attached on a HP-UX B.11.31 ia64 :

I have installed mutt :
http://hpux.connect.org.uk/hppd/hpux/Networking/Mail/mutt-1.5.20/
but i couldn't resolve the error below :
#mutt -s "test" gaston.lagaffe@myDomain.com < /tmp/body.txt
Bad IDN in "from": 'myHost.myDomain.com'




I have installed mpack :
http://hpux.connect.org.uk/hppd/hpux/Users/mpack-1.6/
I can send the file /etc/hosts to gaston.lagaffe@myDomain.com like this :
#mpack -s "mpack test" -d /tmp/body.txt /etc/hosts gaston.lagaffe@myDomain.com

but i can send only one attached file with mpack.




I also have tried using uuencode and mailx :
uuencode /etc/hosts /etc/hosts > /tmp/hosts.uue
uuencode /etc/group /etc/group > /tmp/group.uue
cat /tmp/body.txt /tmp/hosts.uue /tmp/group.uue | mailx -m -s "test mailx" gaston.lagaffe@myDomain.com

but some email clients can't handle uuencoded files.




I have installed nail :
http://hpux.connect.org.uk/hppd/hpux/Networking/Mail/nail-11.25/
I can send the files /etc/hosts and /etc.group to gaston.lagaffe@myDomain.com like this :
#nail -r "sender@myDomain.com" -s "test nail" -a /etc/hosts -a /etc/group gaston.lagaffe@myDomain.com < /tmp/body.txt



I will now use nail instead of mutt to send mail with attached files from the command line.

sylvain
sdpnap
Occasional Advisor

Re: mutt-1.5.20 - bad idn

will use nail-11.25 instead of mutt-1.5.20 on a hp-ux 11.31