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 
> j...@jugilo.de!
> 2021-05-23 15:17     297   Jürgen Lorenz            5  enc
> 2021-05-23 15:45     298   -> Juergen Lorenz        6  [BCC] "Keine 
> Jobsteuerung 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