help-gnu-emacs
[Top][All Lists]
Advanced

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

How to base64 decode and gunzip, *easily*, in RMAIL?


From: Robert J. Chassell
Subject: How to base64 decode and gunzip, *easily*, in RMAIL?
Date: Fri, 28 Dec 2001 13:30:09 +0000 (UTC)

In RMAIL mode, using a plain vanilla instance of Emacs 21, 
started with no .emacs or site file, and no blinking cursor:

        emacs -q --no-site-file --eval '(blink-cursor-mode 0)'

what do people do to decode a gzip'd email message that is base64 encoded?


Using today's CVS snapshot, Fri, 2001 Dec 28 12:57 UTC,
in RMAIL, I did the following, which works, but is inefficient;

    1.  Change the read-only status of the RMAIL buffer using 
        `C-x C-q', which runs the command `vc-toggle-read-only':

            C-x C-q

    2.  Execute `base64-decode-region' on *only* the encoded region,
        not any other part:

            M-x base64-decode-region

    3.  On the region, run `M-|', which runs the command
        `shell-command-on-region':

            M-| gzip -d RET

    4.  Copy the contents of the resulting *Shell Command Output*
        buffer to the appropriate file.

-- 
    Robert J. Chassell                  bob@rattlesnake.com
    Rattlesnake Enterprises             http://www.rattlesnake.com



reply via email to

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