bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mail - selecting text/html part of message


From: irek
Subject: mail - selecting text/html part of message
Date: Wed, 23 Mar 2022 21:45:21 +0100

Hello.

While reading (info "(mailutils) Command Syntax") I found that:
> A "message specifier" can be followed by "message part specifier",
> enclosed in a pair of brackets.

And from examples:
> 10[2]
>      Part 2 of the multipart message 10.

I tries that with commands: print, pipe and save but It looks like that
always the whole message is used instead of selected part.

Example output from my terminal:
> ? struct 402
> 402.1            text/plain; charset=UTF-8  105
> 402.2            text/html; charset=UTF-8   30K
> ? save 402[1] test
> "/home/irek/test" 477/39689
> ? shell ls -lh test
> -rw------- 1 irek irek 39K Mar 23 21:35 test
> ?

By looking at the file size it's clear that whole message was saved.

Version of mail program:
> $ mail --version
> mail (GNU Mailutils) 3.10
> Copyright (C) 2007-2019 Free Software Foundation, inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.

Because I have noticed that output of "struct" command is a bit
different than example shown in info page I also tried other ways of
selecting message like 402.2 part but with no effect.

What am I doing wrong?

And BTW what I'm rly trying to achieve is to pipe text/html part of
message to some text based web browser so I can read that part.  Maybe
someone have some suggestion how to do that?

--
irek



reply via email to

[Prev in Thread] Current Thread [Next in Thread]