Re: Viewing HTML difficulties in mutt 1.4

2002-10-19 Thread Michael Tatge
Mike Leone ([EMAIL PROTECTED]) muttered:
> Hello. I seem to not be understanding something about viewing HTML email in
> mut.

Hm right. Your mixing things up.

> I have these entries in my muttrc:
> 
>   set mailcap_path  = ~/.mutt/.mailcap:/etc/mailcap
> 
> And my ~/.mutt/.mailcap has:
> 
> text/html; w3m -v -cookie -F -T text/html %s; copiousoutput
> 
> Which properly shows me the HTML email (using urlview),

No mailcap is used when (v)iewing attachments. It has nothing to do with
urlview.

> but doesn't allow me to click on any of the links (which I sometimes
> want/need to do).

leave out the copiousoutput.
man mailcap

> My /etc/urlview/url_handler.sh has this:
> 
> http_prgs="/usr/bin/X11/opera:PW /usr/bin/w3m -F -T:XT" 
> 
> What am I doing wrong, that the links aren't active?

this handles which programm urlview calls when you select a url and hit
enter. BTW, that should read http_prgs="/usr/bin/X11/opera:XW

HTH,

Michael
-- 
"If you want to travel around the world and be invited to speak at a lot
of different places, just write a Unix operating system."
(By Linus Torvalds)

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key



Re: Viewing HTML difficulties in mutt 1.4

2002-10-19 Thread Michael Tatge
Forgot my setup :)

alternative_order text/plain text/enriched text/html
auto_view text/html
set mailcap_path="/etc/mailcap:/usr/local/etc/mailcap"

/usr/local/etc/mailcap:
# this is used when (v)iewing the html - browsable links
text/html; w3m -v -F -T text/html %s

# this is the auto_view entry - dumps html to plain text
text/html; lynx -dump -force_html %s; copiousoutput; needsterminal


HTH,

Michael
-- 
linux: because a PC is a terrible thing to waste
([EMAIL PROTECTED] put this on Tshirts in '93)

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key



source /etc/mutt/indexhooks.pl| documentation bug.

2002-10-19 Thread Greg Matheson
I have this perl program to write folder hooks so I can return to
the same place in the mailboxes screen from the index screen,
instead of always to the first line:

#!/usr/bin/perl

use strict;

my @mailboxes = glob("Mail/*");

foreach my $mailbox ( @mailboxes )
{
$mailbox =~ s/^ Mail\/ (.*)$/=$1/x;
print qq{folder-hook $mailbox 'macro index h 
?$mailbox'\n};
}

I source it in /etc/Muttrc with this line:

source /etc/mutt/indexhooks.pl|/

to put output into Muttrc, following the direction in the manual,

If the filename ends with a vertical bar (|), then filename is
considered to be an executable program from which to read input (eg.
source ~bin/myscript|/).


but I was getting this error:

Error in /etc/Muttrc, line 709: /etc/mutt/indexhooks.pl|/: 
No such file or directory
source: errors in /etc/Muttrc
Press any key to continue...

I then took off the final slash, and it started working. So, I
think this is a documentation bug.

However, this is on cygwin, so perhaps it is an idiosyncracy
of cygwin, rather than a documentation bug.




Re: source /etc/mutt/indexhooks.pl| documentation bug.

2002-10-19 Thread Bernard Massot
On Sat, Oct 19, 2002 at 10:17:26PM +0800, Greg Matheson wrote:
> I source it in /etc/Muttrc with this line:
> 
>   source /etc/mutt/indexhooks.pl|/
> 
> to put output into Muttrc, following the direction in the manual,
> 
>   If the filename ends with a vertical bar (|), then filename is
>   considered to be an executable program from which to read input (eg.
>   source ~bin/myscript|/).
> 
> 
> but I was getting this error:
> 
>   Error in /etc/Muttrc, line 709: /etc/mutt/indexhooks.pl|/: 
>   No such file or directory
>   source: errors in /etc/Muttrc
>   Press any key to continue...
> 
> I then took off the final slash, and it started working. So, I
> think this is a documentation bug.
> 
> However, this is on cygwin, so perhaps it is an idiosyncracy
> of cygwin, rather than a documentation bug.
> 
I'm using GNU/Linux and have the same problem. This is a true
documentation bug.
-- 
Bernard Massot



msg31902/pgp0.pgp
Description: PGP signature


mutt sucks...

2002-10-19 Thread Jacek Wojaczynski
"All mail clients suck. This one just sucks less." :-)

I'm new to the list and wanted to say "Hi!" to everybody.

I'm also new to mutt, vim and even Linux.
Previously I used to handle all my mail under Windows.
The program of my choice was The Bat! - IMHO the best mail client
for Windows. OK. Enough. It's The Mutt Users List.

I've read some tutorials. I installed mutt, vim and procmail
(because mutt does not filter incoming mail).

So far this trio works fine, but it still needs some improvements.
I have a few questions:

1. Displaying of X-Headers.
My favourite newsreader is slrn. I could define there sth like this:

Show the following headers (visible headers):
From: 
Date:
X-

Headers to hide:

!X-Mime
!X-MSMail
!X-Priority
!X-Complaints

So I could see all important to me X-headers and hide those stupid
ones...

Possible in mutt?

2. While scrolling the message with Spacebar it scrolls one line too
much. Can it be changed? I like to see the last line of the previous
page (hope you know what I mean).

3. In The Bat! I had a filter which colored all replies to my mails.
It based on References: header and my unique Message-ID.
Possible in mutt?

4. Folders - it really sucks! I even cannot see how many read/unread
messages there are in a particular folder if I don't enter it...

5. Using up/down arrows I scroll through messages (index view).
Why it skips whole page? I'd like it to work same as in slrn.

6. What's the default shortcut for "Mark all tagged messages as
read"?

7. C - copies messages to a different folder. What key moves them?

8. Can I import my Address Book from The Bat!?

9. Au! There is no address book built in. What would you suggest?
Abook or sth else?

10. I still do not understand this "Tab completion" thing - it seems
that sometimes it simply DOES NOT work as expected.

11. What's the newest version of mutt? Is there a lot of problems
using beta versions? (when I used TB! it was almost always the
newest beta).

12. How do I create multiple identities? Different from, attribute
line and language settings for different mailing lists.
Possible? How? Folder-hooks or only send-hooks?

13. How can I move old mail to a different folders? Automatically of
course. For example for this list? How?

14. Can I send within mutt mail to all users on my system?

vim related problems:

15. It's very very tiring manually stripping those signatures and
manually adding "> " signs when reformatting a paragraph.
In TB! it was automatic...

16. I have ispell installed. It works fine. I can switch between
english and polish dictionaries. Is it possible to automatically set
proper dictionary? I mean: English for english language mailing
lists and polish for polish language lists?

17. When spellchecker underlines a word - can I add it to the user
dictionary? How? I'm having only console - so no mouse right click.

18. Why ispell spells too much? It even tries to spell quoted text
or header lines. It's stupid. Can I change it?

Well... I'm pretty sure I have more questions, but I can't remember
all of them now.

regards,

-- 
kocurek



Re: mutt sucks...

2002-10-19 Thread Ralf Hildebrandt
On Sat, Oct 19, 2002 at 09:29:37PM +0200, Jacek Wojaczynski wrote:

> Headers to hide:
> 
> !X-Mime
> !X-MSMail
> !X-Priority
> !X-Complaints
> 
> So I could see all important to me X-headers and hide those stupid
> ones...
> 
> Possible in mutt?

Of course, and even better:

ignore *
unignore date from to cc subject x-mailer resent-from reply-to X-Spam-Status

> 2. While scrolling the message with Spacebar it scrolls one line too
> much. Can it be changed? I like to see the last line of the previous
> page (hope you know what I mean).

Yes.
set pager_context = 1

> 3. In The Bat! I had a filter which colored all replies to my mails.
> It based on References: header and my unique Message-ID.
> Possible in mutt?

Dunno. Probably.

> 9. Au! There is no address book built in. What would you suggest?
> Abook or sth else?

There's one built in.

> 10. I still do not understand this "Tab completion" thing - it seems
> that sometimes it simply DOES NOT work as expected.

Works here.

> 11. What's the newest version of mutt? Is there a lot of problems
> using beta versions? (when I used TB! it was almost always the
> newest beta).

1.4 is the release, 1.5.x is beta.

> 12. How do I create multiple identities? Different from, attribute
> line and language settings for different mailing lists.
> Possible? How? Folder-hooks or only send-hooks?

Use send-hooks.

> 14. Can I send within mutt mail to all users on my system?

Of course. I even can send mail to the internet.

> 15. It's very very tiring manually stripping those signatures and
> manually adding "> " signs when reformatting a paragraph.
> In TB! it was automatic...

vim specific. There are macros for everything.

-- 
Ralf Hildebrandt (Im Auftrag des Referat V a)   [EMAIL PROTECTED]
Charite Campus MitteTel.  +49 (0)30-450 570-155
Referat V a - Kommunikationsnetze - Fax.  +49 (0)30-450 570-916
I fit in my suit, my suit fits in my suitcase.
Hence i fit in my suitcase.  




Re: mutt sucks...

2002-10-19 Thread Colin Keefe
* Jacek Wojaczynski <[EMAIL PROTECTED]> [2002-10-19 21:29:37 +0200]:

> "All mail clients suck. This one just sucks less." :-)
> 
> I'm new to the list and wanted to say "Hi!" to everybody.
> 
Me too.  Imagine my consternation when the *first* message I see says
Mutt sucks.
> 
> 1. Displaying of X-Headers.
> My favourite newsreader is slrn. I could define there sth like this:
> 
> Show the following headers (visible headers):
> From: 
> Date:
> X-
> 
> Headers to hide:
> 
> !X-Mime
> !X-MSMail
> !X-Priority
> !X-Complaints
> 
> So I could see all important to me X-headers and hide those stupid
> ones...
> 
> Possible in mutt?

Try this in your .muttrc

# Configure header displays.

# Ignore all headers
ignore *

# Then un-ignore the ones I want to see
unignore From:
unignore Date:

# Now order the visable header lines
hdr_order From: Date:

This was lifted from Dave Pearson's site http://www.davep.org/ and modified.

> regards,
> kocurek
Unfortunately, this was the only question I had an answer for 8-(,
however there are lots of good examples in the .muttrc files at
http://www.mutt.org/links.html#config
  Colin

-- 
Colin KeefeWe never do anything well till we cease
[EMAIL PROTECTED] to think about the manner of doing it.
  -William Hazlitt



Re: mutt sucks...

2002-10-19 Thread Lars Heiermann
* Jacek Wojaczynski:

> 3. In The Bat! I had a filter which colored all replies to my mails.
> It based on References: header and my unique Message-ID.
> Possible in mutt?

you can use patterns for 'color index', refer to man muttrc for details
on that.
 
> 7. C - copies messages to a different folder. What key moves them?

saving the message to a different folder will mark it as deleted in the
originating folder.
 
> 9. Au! There is no address book built in. What would you suggest?
> Abook or sth else?

abook or if you need to work with different datasources (ldap etc) maybe
lbdb.

Regards,

Lars
-- 
Lars Heiermann
Team ['ju:nien]   ||  http://www.junien.org
Team LANparty.de  ||  http://www.LANparty.de 



Re: mutt sucks...

2002-10-19 Thread Vincent Lefevre
On Sat, Oct 19, 2002 at 23:02:15 +0200, Ralf Hildebrandt wrote:
> On Sat, Oct 19, 2002 at 09:29:37PM +0200, Jacek Wojaczynski wrote:
> > 3. In The Bat! I had a filter which colored all replies to my mails.
> > It based on References: header and my unique Message-ID.
> > Possible in mutt?
> 
> Dunno. Probably.

Yes, if you can find a pattern in the message-id, which can generally
be the case, except when you send mail with some utilities that build
the message-id in some way or when you send mail from a friend's
machine for instance.

> > 11. What's the newest version of mutt? Is there a lot of problems
> > using beta versions? (when I used TB! it was almost always the
> > newest beta).
> 
> 1.4 is the release, 1.5.x is beta.

and I've always been using betas, no problems with them. But you cannot
know if some day, there won't be one that would be seriously broken.

> > 12. How do I create multiple identities? Different from, attribute
> > line and language settings for different mailing lists.
> > Possible? How? Folder-hooks or only send-hooks?
> 
> Use send-hooks.

and the $alternates variable to recognize all your addresses.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web:  - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Re: mutt sucks...

2002-10-19 Thread -dsr-

Jacek Wojaczynski wrote:
> 4. Folders - it really sucks! I even cannot see how many read/unread
> messages there are in a particular folder if I don't enter it...

Sounds like you haven't listed your mailboxes in .muttrc:

mailboxes !
mailboxes =mutt =procmail-user =linux-kernel =vim-user
mailboxes =list1

> 5. Using up/down arrows I scroll through messages (index view).
> Why it skips whole page? I'd like it to work same as in slrn.

Read the manual, assign a new keybinding.

> 6. What's the default shortcut for "Mark all tagged messages as
> read"?

The manual is here: http://www.mutt.org/doc/manual/

You are looking for "tag" and "patterns".

> 7. C - copies messages to a different folder. What key moves them?

"s"aving them does that.

> 8. Can I import my Address Book from The Bat!?

Probably. Can the Bat export them in a useful format?

> 9. Au! There is no address book built in. What would you suggest?
> Abook or sth else?

There is, you didn't read the manual.

> 10. I still do not understand this "Tab completion" thing - it seems
> that sometimes it simply DOES NOT work as expected.

Does it behave the way the manual expects it to behave? If not, file a
bug.

> 11. What's the newest version of mutt? Is there a lot of problems
> using beta versions? (when I used TB! it was almost always the
> newest beta).

These are at the top of the www.mutt.org page. In general, don't use
a development release unless you need a feature in it or are doing
development work.

> 12. How do I create multiple identities? Different from, attribute
> line and language settings for different mailing lists.
> Possible? How? Folder-hooks or only send-hooks?

Have you looked at the sample .muttrc's provided at
http://www.mutt.org/links.html#config ?

> 13. How can I move old mail to a different folders? Automatically of
> course. For example for this list? How?

Depends. Do you want shiny clean folders with nothing in them except
fresh email that you've never seen? Do you want folders with relatively
recent email, so that anything over n days/weeks/months old is archived?
Think about folder-hooks, and read those sample .muttrc files.

> 14. Can I send within mutt mail to all users on my system?

Sure. If you have an alias established by your MTA or in mutt, this
becomes easier.

> vim related problems:

Really ought to go to the vim lists. For example:

[EMAIL PROTECTED] ([EMAIL PROTECTED],  [EMAIL PROTECTED], archive at
http://groups.yahoo.com/group/vim)

> 15. It's very very tiring manually stripping those signatures and
> manually adding "> " signs when reformatting a paragraph.
> In TB! it was automatic...

If you need to reformat a paragraph, use fmt or par, or learn regexps.

> 16. I have ispell installed. It works fine. I can switch between
> english and polish dictionaries. Is it possible to automatically set
> proper dictionary? I mean: English for english language mailing
> lists and polish for polish language lists?

I don't use spellcheckers; however, I imagine that you would read the
ispell docs to find out how to switch dictionaries according to a
command line or environment variable, and set that in a folder-hook.

> 17. When spellchecker underlines a word - can I add it to the user
> dictionary? How? I'm having only console - so no mouse right click.

ispell documentation almost certainly has this.

> 18. Why ispell spells too much? It even tries to spell quoted text
> or header lines. It's stupid. Can I change it?

Yes. It's open source.

-dsr-

-- 
Lois McMaster Bujold and Terrance Dicks's _Dr Who: Miles Away!_, in
which the heroic Time Lord's attempts to overthrow an oppressive star
empire are repeatedly thwarted by an infuriating dwarf.
--Graham Woodland 



Re: mutt sucks...

2002-10-19 Thread Gregor Zattler
Hi Jacek,
* Jacek Wojaczynski <[EMAIL PROTECTED]> [19. Okt. 2002]:
[...]
> 3. In The Bat! I had a filter which colored all replies to my mails.
> It based on References: header and my unique Message-ID.
> Possible in mutt?

color index default color7 '~h 
"^references:[[:blank:]].*pit.id-43118.user.dfncis.de>$"'
 ^^^
this colors all messages which are direct replies to mine.
"pit.id-43118.user.dfncis.de" is the local part of my
message-ids. 

> 4. Folders - it really sucks! I even cannot see how many read/unread
> messages there are in a particular folder if I don't enter it...

notwendig way...
 
> 5. Using up/down arrows I scroll through messages (index view).
> Why it skips whole page? I'd like it to work same as in slrn.

try "set menu_scroll=yes" in .muttrc.

> 6. What's the default shortcut for "Mark all tagged messages as
> read"?

when the messages are already tagged, it's thre key strokes:
;wo

or you write a macro.

> 7. C - copies messages to a different folder. What key moves them?

s


> 9. Au! There is no address book built in. What would you suggest?
> Abook or sth else?

lbdb is great.
 

> 12. How do I create multiple identities? Different from, attribute
> line and language settings for different mailing lists.
> Possible? How? Folder-hooks or only send-hooks?

read http://www.acoustics.hut.fi/~mara/mutt/profiles.html

> 
> 13. How can I move old mail to a different folders? Automatically of
> course. For example for this list? How?

you could rewrite the following:

## Move messages to trash rather than delete, unless
## we're in the trash folder.
folder-hook .   'macro index d "set 
confirmappend=no=trashset 
confirmappend=yes"'
folder-hook .   'macro pager d "set 
confirmappend=no=trashset 
confirmappend=yes"'
folder-hook trash   'macro index d ""'
folder-hook trash   'macro pager d ""'
## Delete old, non-flagged, non-new mail
folder-hook trash   'push ~r>10d!(~F|~N)'



Ciao, Gregor
-- 
"The future is here. It's just not widely distributed yet."
-- William Gibson



Re: mutt sucks...

2002-10-19 Thread Markus Hubig
On Sat, 19 Oct 2002, Ralf Hildebrandt wrote:

> On Sat, Oct 19, 2002 at 09:29:37PM +0200, Jacek Wojaczynski
> wrote:
>
> > 3. In The Bat! I had a filter which colored all replies to
> > my mails.  It based on References: header and my unique
> > Message-ID.  Possible in mutt?
>
> Dunno. Probably.

I use this to color my eMails and the replies on them in known
MLs:

| # my mails
| color index brightblue  default "~l ~P" 
| 
| # answers to my mails
| color index cyandefault \
|   "~l ~x \".*@(mypc.mydomain.de|mypc2.mydomain2.de)\""
| color index brightred   brightcyan  \
|   "~N ~l ~x \".*@(mypc.mydomain.de|mypc2.mydomain2.de)\""

For infos about the "~" patterns look at 'man muttrc'

> > 9. Au! There is no address book built in. What would you ?
> > suggest Abook or sth else?
>
> There's one built in.

| http://www.spinnaker.de/lbdb/

> > 12. How do I create multiple identities? Different from,
> > attribute line and language settings for different mailing
> > lists.  Possible? How? Folder-hooks or only send-hooks?

| http://www.acoustics.hut.fi/%7Emara/mutt/profiles.html

> > 15. It's very very tiring manually stripping those
> > signatures and manually adding "> " signs when
> > reformatting a paragraph.  In TB! it was automatic...
>
> vim specific. There are macros for everything.

| http://www.vim.org/scripts.php

Search for 'mail signature' in the script section. Also try
out the gq macro. O yes, and don't forget to check out par:

| http://www.nicemice.net/par/

Ja allâh bina!
-- 
Raechzschraibraephorm - findichgut. :-)



msg31910/pgp0.pgp
Description: PGP signature