How to save 'what you see' as a file?

2010-01-31 Thread Chris G
Is there any fairly straightforward way to save what you see in the
mutt pager as a file?  I want to record some E-Mail as files for
another application and what I need to do basically is save what I can
see on the screen as a file which I can name.

-- 
Chris Green



Re: How to save 'what you see' as a file?

2010-01-31 Thread René Clerc
* Chris G  [31-01-2010 17:12]:

> Is there any fairly straightforward way to save what you see in the
> mutt pager as a file?  I want to record some E-Mail as files for
> another application and what I need to do basically is save what I can
> see on the screen as a file which I can name.

If you want to save only what you can see on the screen, I would
suggest using straightforward copy/paste functionality.

-- 
René Clerc  - (r...@clerc.nl) - PGP: 0x9ACE0AC7

MISS, n.  The title with which we brand unmarried women to indicate
that they are in the market.  Miss, Missis (Mrs.) and Mister (Mr.) are
the three most distinctly disagreeable words in the language, in sound
and sense.  Two are corruptions of Mistress, the other of Master.
-Ambrose Bierce, "The Devil's Dictionary"


pgpuzupYkXnr0.pgp
Description: PGP signature


Re: How to save 'what you see' as a file?

2010-01-31 Thread Jostein Berntsen
On 31.01.10,17:12, Chris G wrote:
> Is there any fairly straightforward way to save what you see in the
> mutt pager as a file?  I want to record some E-Mail as files for
> another application and what I need to do basically is save what I can
> see on the screen as a file which I can name.
> 
> 

If you use screen, you can use the hardcopy function. Very convenient 
and quick.

- Jostein
 


Re: How to save 'what you see' as a file?

2010-01-31 Thread Agathoklis D. Hatzimanikas
On Sun, Jan 31, at 05:12 Chris G wrote:
> Is there any fairly straightforward way to save what you see in the
> mutt pager as a file?  I want to record some E-Mail as files for
> another application and what I need to do basically is save what I can
> see on the screen as a file which I can name.

If you just want to save the body of the file, you just press 'v' and
then just save it.

If you want to save also the headers, then it can be done with a macro.
Here is a possible way to do it with vim (careful with the wrapping):

macro pager  ':unset wait_key:ignore *:unignore From:\
:unignore To::unignore Subject::unignore Date:\
:set pipe_decodevim -c "let savetofile = \
input(\"Location to save the file: \", \"\", \"dir\")" \
-c "exec \"write \".savetofile" -c "quit" -\
:source /path/to/headers:set pipe_decode=no:set 
wait_key'

Substitute the path to headers, to a file that might contain valid mutt
commands, e.g.,

ignore *
unignore From:
unignore To:
unignore Reply-To:
... etc

Further adjustments can be done of course, but from a quick test this
seems to work. The input() vim function takes care for auto-completion
also.

Regards,
Agathoklis.


Re: How to save 'what you see' as a file?

2010-01-31 Thread Chris G
On Sun, Jan 31, 2010 at 06:26:01PM +0100, René Clerc wrote:
> * Chris G  [31-01-2010 17:12]:
> 
> > Is there any fairly straightforward way to save what you see in the
> > mutt pager as a file?  I want to record some E-Mail as files for
> > another application and what I need to do basically is save what I can
> > see on the screen as a file which I can name.
> 
> If you want to save only what you can see on the screen, I would
> suggest using straightforward copy/paste functionality.
> 
That is one approach but it feels like there should be easier ones.

-- 
Chris Green



Re: How to save 'what you see' as a file?

2010-01-31 Thread Chris G
On Mon, Feb 01, 2010 at 04:45:16AM +0800, Jostein Berntsen wrote:
> On 31.01.10,17:12, Chris G wrote:
> > Is there any fairly straightforward way to save what you see in the
> > mutt pager as a file?  I want to record some E-Mail as files for
> > another application and what I need to do basically is save what I can
> > see on the screen as a file which I can name.
> > 
> > 
> 
> If you use screen, you can use the hardcopy function. Very convenient 
> and quick.
> 
Thanks, I'd sort of forgotten about 'screen'.

-- 
Chris Green



Re: Easy way to handle multiple accounts?

2010-01-31 Thread chombee
On Fri, Jan 29, 2010 at 07:27:06AM -0500, Patrick Shanahan wrote:
> You should look a "man bash" for "mail" and "mailpath" shell variables.
> They will notify you when configured locations receive new mail.

Interesting! Unfortunately I use fish not bash, and the bash feature
looks like it supports mbox files whereas I have maildir directories.



Re: Easy way to handle multiple accounts?

2010-01-31 Thread chombee
On Fri, Jan 29, 2010 at 01:14:23PM +0100, Joost Kremers wrote:
> you could perhaps also set up a small mail watcher in your panel/dock/taskbar
> whatever it's called on the OS/WM you're using. ;-)

Yeah, there are gnubiff, mail notification, etc. 

> > For some reason I want mutt to be able to do what Thunderbird 3 does. It
> > automatically creates a smart "Inbox" which combines all the inboxes of
> > my different email accounts and shows them as one,
> 
> that's a nifty feature... :-) though i think i prefer to keep my work and
> private email separate, so it's good to have different mail boxes for them.

What thunderbird actually does is give you virtual inbox, sent, drafts
and trash mailboxes (and maybe archive as well) combining the respective
mailboxes of all your accounts, and also lets you access each account
and its inbox, sent, drafts, trash and archive mailboxes separately
(plus any other folders a particular account might have) as well, so you
can have your cake and eat it. These virtual mailboxes are there by
default, but I think you can create your own virtual mailboxes and saved
searches and the like as well, they all appear in a tree on the left
hand side. It's a pretty good feature, but still not enough to make me
switch from mutt.