Copying plaintext message to clipboard

Tavis Ormandy taviso at gmail.com
Sun Dec 18 16:25:16 UTC 2022


On 2022-12-17, Kira Oakley wrote:
> Hello,
>
> I'm trying to write a macro that will select the plaintext attachment
> (attachment in mutt parlance; basically the part of a multipart msg that
> hsa a MIME type of plain/text), and copy it to my system's clipboard.
>
> The latter part is easy (thanks <pipe-entry>!), but I haven't been able
> to figure out how to select the plaintext entry specifically, like one
> might do by hitting 'v' in the pager and selecting that entry.
>
> Any ideas?
>

Hmm, I guess you mean something like this?

"<view-attachments><search>text/plain<Enter><select-entry><pipe-entry>..."

The problem is what to do if there is no text/plain part, or multiple
text/plain part, which doesn't sound easy to solve! Perhaps that doesn't
bother you though?

Tavis.

-- 
 _o)            $ lynx lock.cmpxchg8b.com
 /\\  _o)  _o)  $ finger taviso at sdf.org
_\_V _( ) _( )  @taviso



More information about the Mutt-users mailing list