Hi

[2021-05-25 16:12] Jürgen Lorenz <j...@jugilo.de>
> thanks for your prompt reply.

This is more the exeption then the rule. ;-)
Not on purpose and I hope I can change this.

So looking at your mail I would say your encoding is wrong. Probaly from
some tries to fix your probles. So I would guess if you just change your
encoding back to utf-8 everything works again. If not to help you I
would need the output of "locale" and "echo $MM_CHARSET".  

> Since all my mailers are based on the MH-Format, I have now mbox mails
> in my system.

Not sure what you want to say. If you want to say you have mbox because
all your mailers use the MH-Format, this is a missunderstanding.
MH-Format works with mails not mboxes, but most implementations have a
lax checking for mbox files. So it kind of work without notice, till
start strict checking. The files comes out of a mix between the lax
checking and some not strict defined interfaces between mta and mda.

> There remain some questions:
>
> If I remove the From: line in components and friends, the from line in
> the message sent is computed to juergen@manjaro, what's definitely not
> what I want. How do I get the correct From: 

We have implemented an option called Default-From. You can set it in the
mh-profile(5) and it will used as from/sender, if you don't send from
one of your Alternate-Mailboxes. See mh-profile(5) and spost(8) for
details or ask on the ml.

> In my profile, I've now uncommented everything whith mhshow. Then the
> errormessage in show disappears and I can see the content. But what if I
> want to see html contents or pdf contents? It was hard to find programs
> which convert them to mere text, and I would like not to be forced to a
> fallback like mutt or sylpheed.

Yes the idea is to have a programm converting a the file to text. Most
of your config already does this. The problem was the pipe to less.
This don't work with your /bin/sh and don't work in the concept of mmh
version of show. The problem is that show calls this in the background
and don't pass throug the terminal[0]. So it will start it and show wait
till it exit. But because less don't have user input it won't exit.

There is a diffrent on your X programs. If they just open create a
window and then exit, this may[1] work but you can't read the body and
the header at the same time. Because the Body is shown before show
display any output. There may also some side efekts for programms which
behave diffrent (i.e. browser).

An other problem is that mmh uses show in repl (to decode mime) this
can have also unknown/supprising side efekts. I only have to text
converters set up for show. For files I want to display with an
Graphical programm I use mhstore and open them manual. 

Yes this isn't the perfect solution, but I don't see any change to
have a good interface for display some mime types with a GUI out
of show. Better solution would be some extentions to mhstore so
that it store it, call a gui and after the gui closes deletes it.

Philipp

Ps: I have CC this to the list, hope this was ok. I would prefere to
have such questions on the list rather then in a private conversation.

[0] Not shure if true, would have to check. But I would define the
Interface in this way so don't expect this will work just because
is does.

[1] Just because it may work it doesn't meen it's a good idea.

>
> Cheers
>
> Juergen
>
> > part       text/plain                3667
> > Hi
> >
> > [2021-05-24 17:14] Juergen Lorenz <j...@jugilo.de>
> > > I'm new to mmh, but not to nmh and mutt and the like.
> > > This Mail is written in mutt, because mmh causes trouble.
> >
> > Nice to see a new user.
> >
> > > For example, the scan command produces the following output:
> > >
> > > ...
> > > 2021-05-08 13:49     284                            5~ 
> > > 2021-05-10 16:42     286                         4489~ 
> > > 2021-05-11 11:59     287                            8~ 
> > > 2021-05-15 15:48     289                           70~ 
> > > 2021-05-22 22:23     292   m...@marmaro.de          3  [mmh] Welcome 
> > > ju@jugil
> > o.de!
> > > 2021-05-23 15:17     297   Jürgen Lorenz            5  enc
> > > 2021-05-23 15:45     298   -> Juergen Lorenz        6  [BCC] "Keine 
> > > Jobsteuer
> > ung in dieser Shell"
> >
> > This looks like some of the files are mboxes and not mails. If there are
> > any lines starting with "From " in the header, then mmh can't parse the
> > mail. nmh and old versions of mmh could hadle this. I can look up our
> > converting scripts if you need them.
> >
> > > and the command show 297 the following error-message:
> > >
> > > /bin/sh: Zeile 1: fg: Keine Jobsteuerung in dieser Shell.
> > >
> > > I have no idea, what happened.
> >
> > This looks like one of your mhshow-show- entries is triggert. One of
> > them with a ``|less''. You can check this with ``show -debug 297''.
> >
> > Why do you have these entries? show will run a pager by default, when
> > you call it from a shell and without a pipe. In the other cases the mail
> > is just printed to stdout.
> >
> > > As you can see from my profile below, I tested a lot of settings, but
> > > the problems still go on. In particular, I tried utf-8 as well as
> > > latin1. Here is the profile, mostly copied from my nmh-profile:
> >
> > Your profile looks intresting. Have you tried with nearly empty profile.
> > For most stuff you only need to set the Path. As far as I see your config
> > for encoding is correct, because the ü in the scan output is correct.
> >
> > If you want I can comment your whole profile, but not today.
> >
> > > Moreover, I have some minor important questions:
> > >
> > > Why do you advertise whatnow2, marking whatnow deprecated?
> > > I'm happy with whatnow and do not know, why I should take whatnow2 and
> > > how. So I would prefer the deprecated message to be removed. (As far as I
> > > remember, I tried the -whatnowppoc switch, but it didn't work.)
> >
> > whatnow is a dead end. The problem is whatnow must provide a shell which
> > behave like the shell of the user. This has lead to interesting code.
> >
> > whatnow2 works a bit diffrent instand of trapping you in a subshell it's
> > exit normaly and you can just call whatnow2 if you need to interact with
> > your current draft. All your shell features are provided by your shell.
> >
> > So an sample reply would look like this:
> > $ repl -whatnowproc whatnow2
> > [editor]
> > $ whatnow2 attach /file/which/was/requested
> > $ other tool
> > $ whatnow2 edit
> > [editor-next]
> > $ whatnow2 send
> >
> > Hope this explain why we want to drop whatnow and how to use whatnow2.
> > Feel free to ask if you have further questions.
> >
> > > The same applies to switches -sign, -enc and -attach.
> >
> > There no such switches in mmh.
> >
> > To attach files you simple create an attachment header in your draft,
> > this is done by whatnow[2] attach. The magic is done by send and mhbuild.
> > For encrypt and sign of a mail you add a encrypt or signing header to
> > your draft. Then send calls also mhsign [-encrypt] after mhbuild. For
> > more info look at send(1).
> >
> > > By the way, the handling of pgp and attachments is one of the reasons, I
> > > prefer mmh over nmh, more or less.
> >
> > This is more or less the reason for mmh, so thanks for the compliment.
> >
> > > I hope, you can help me. For example, providing a non-trivial and
> > > working profile file.
> >
> > I'll look at it, but not today.
> >
> > Philipp
> >

Reply via email to