Sorry - I seem to have missed the original mail in this thread.
>>>>> "USM" == USM Bish <[EMAIL PROTECTED]> writes:
USM> On Mon, Dec 03, 2001 at 07:10:42AM +0530, Ajitabh Pandey
USM> wrote:
>> Is there any method by which i can directly open the links
>> specified in an e-mail. I use mutt.
>>
USM> This is a function of the pager that you use for viewing the
USM> mails under mutt. I have not come across any console pager
USM> which does this sort of thing. IIRC, there was a posting in
USM> freshmeat newsletter a few months ago on something called
USM> "urlrec" which makes a bookmark file of URLs to be used on
USM> any browser subsequently. Never used it. May give it a try.
Mutt on RedHat comes preconfigured to use the urlview program to do
exactly this (maybe on other distros as well). ctrl-B while viewing a
mail will bring up a menu of all URLs in the mail, from which you can
select the one you want opened in your browser. You might have to use
mutt's internal pager for using urlview.
For less, I find this script helpful:
binand@binand[~]:(3) cat ~/bin/uv
#!/bin/bash
shift
urlview "$@"
Now, invoke less from mutt with this in .muttrc:
set pager="VISUAL=~/bin/uv less"
After this, 'v' from within less (within mutt ;-) should open up a
menu of all the URLs found in the mail message. Personally, I don't
want this as a permanent setting as VISUAL is used to define the
default editor.
You can configure urlview to use any browser you want, my ~/.urlview
looks like:
COMMAND konqueror %s 2>/dev/null &
It should be better to edit /usr/bin/url_handler.sh, though, to use
your favourite browser instead of the urlview default setting of
netscape.
>> Is there any method to take snips out of an file and then
>> paste it into a mail.
USM> gpm cut and paste is perhaps the simplest on console. Alter-
USM> nate method is of a vi block save and block read in mailer.
Switch to vm/gnus ;-) You have the full power of the emacs editing
environment.
With mutt, what I do is to start editing the mail (my default editor
is vi), then from vi, use :e to read the file from which one wants to
copy-paste, yank into a named vi buffer the text I want copied (read
the vi manual to figure out how to do this) and then ctrl-^ and p for
paste.
If one knows exactly what lines are to be inserted from the file,
:<range>r <filename> should also work.
Binand
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help