Re: bad mime types

2002-06-21 Thread Brian Foley

* Gary Johnson [[EMAIL PROTECTED]] on [18-06-02] wrote:
 Brian Foley has made some improvements to it here:
 
 http://marc.theaimsgroup.com/?l=mutt-devm=101152966116001w=2
 
 but I haven't yet updated my web page or my mutt to include his patch.

If I remember rightly, this was incorporated into the unstable 1.5
branch, so you may want to try that as well. (I'm still using a
patched 1.4)

Regards,

Brian.



Re: blind etiquette Re: mutt for blind computerusers

2002-01-22 Thread Brian Foley

* David T-G [[EMAIL PROTECTED]] on [22-01-02] wrote:
 Hey!  On whose side are you?  Oh, the betrayal!
 
 % 
 % -- 
 % 
 % Nick Wilson
 % 
 % Tel:+45 3325 0688
 % Fax:+45 3325 0677
 % Web:www.explodingnet.com
 % 

David,

Some people seem to be turning over a new leaf after participating in
this thread.  Any chance you could save us another ~10 lines of
useless information by not quoting peoples sigs?

Brian 'then we will talk about your quote char' Foley



Re: blind etiquette Re: mutt for blind computerusers

2002-01-21 Thread Brian Foley

* Nick Wilson [[EMAIL PROTECTED]] on [21-01-02] wrote:
 Seeing as the sender of these next few lines didn't seem to want to send
 them to the list. Here they are in all thier glory.

I got this email, did you bounce it to mutt-users as well?

 I'm sorry guys but I feel that my messages are usually trimmed quite
 thoughtfully. I have no reason to think that I'm doing anything wrong
 and on that basis I will carry on as I am.

Some of the more extreme past members of this list would have blasted
you out of the water for:
a) using a two-line attribution at the top of all your quotes
b) using a non standard sig (not delimited with --  and more than 4
lines)

I dont take issue with you for points a and b above, but it would make
you emails neater (but that is a highly subjective term).

On another note, I thank you for using   as your quote char.  As
regards quoting, just pare it down to the minimum, there are certain
people on this list who go out of their way to quote and reply to even
the most trivial words in a post.  I think this is wrong, but you dont
do that.  Good man.

Brian



Re: temporarily reply with all headers

2001-04-19 Thread Brian Foley

* Igor Pruchanskiy [[EMAIL PROTECTED]] on [19-04-01] wrote:
 You can hit 'h' within pager window to see the full message header.
 Is that what you are talking about ?

I do not think that is what is needed in this case.
Try using the "weed" variable.  Do the following
1. ":unset weed"
2. forward/reply to message
3. ":set weed"
  
  Brian.

-- 
Brian Foley -- [EMAIL PROTECTED] -- www.maths.tcd.ie/~brianf
Visit the Intervarsity Track  Field web-site:  www.iv2001.com



Re: Integrating abook and mutt

2001-04-02 Thread Brian Foley

* Horace G. Friend III [[EMAIL PROTECTED]] on [01-04-01] wrote:
 I tried the perl script but I'm getting an error when trying the execute
 the macro. The error message:
 
 sh: -c line 1: syntax error near unexpected token `abookadd.pl'
 sh: -c line 1: `abookadd.pl'

Horace,
  In the macro line that you put in your .muttrc replace $TMP_FILE
with the absolute path to the temporary file you want to use (as set
in line 16 of the script).  Also change abookadd.pl to the absolute
path of where you have put my script, and then make it executable (but
I think you have done that already).
  That should fix it.
Brian.

-- 
Brian Foley -- [EMAIL PROTECTED] -- www.maths.tcd.ie/~brianf
Visit the Intervarsity Track  Field web-site:  www.iv2001.com



Integrating abook and mutt

2001-03-30 Thread Brian Foley


Hey All,
  I wrote a perl script that allows you to add aliases to the mutt
alias file and an abook addressbook at the same time.  You just bind
the script to "a" and use as normal.  When you have finished with the
mutt aliases it will ask you if you want to save the address to abook,
if you do it will then prompt you for telephone numbers etc. for the
person.
  If you think this is useful, it is available at:
   http://www.maths.tcd.ie/~brianf/Setup/abookadd.pl.txt
  Enjoy,
Brian.

-- 
Brian Foley -- [EMAIL PROTECTED] -- www.maths.tcd.ie/~brianf
Visit the Intervarsity Track  Field web-site:  www.iv2001.com



Re: Randomly change From: and signature using Macros

2001-03-29 Thread Brian Foley

* Ailbhe Leamy [[EMAIL PROTECTED]] on [29-03-01] wrote:
 However, I obviously expressed myself badly. What I actually want is
 the ability to hit
  ^foo 
 and have it change the From and Sig to a pre-determined one,
 presumably using a :set command. ^bar to change to a different
 one. I'd prefer to be able to do this _after_ composing a message, but
 will accept answers on how to do it in the index.

Here is a solution, provided you use vim as your editor.  If you don't
then the general idea should allow you to create a similar function
for your own editor.

:map ;f /-- CRdGo-- ESC:r !/usr/games/fortuneCR/^From:CRC
\From: Brian Foley [EMAIL PROTECTED]ESC

:map ;g /-- CRdGo-- ESC:r !/usr/games/fortuneCR/^From:CRC
\From: Brian Foley [EMAIL PROTECTED]ESC

the "\" in front of the second lines of both macros are line
continuation characters, if they dont work then just remove them and
join the two lines before you put them in your .vimrc.

These will toggle between two set From: lines while you are composing
and randomise the sig.  It could be easily adapted to use fixed sigs
as well, just change the !/usr/games/fortune bit to some fixed text
(or a unique sig file).  Setting the Reply-To: would also be trivial.

This assumes a couple of things:
1. you already have a sig in the file with a "-- " seperator
2. you have edit_headers turned on
3. you don't have any other lines beginning with "From:"

I hope this helps.  But please note that I havent acutally tested any
of this.
  Brian.


P.S.
This has nothing to do with your post, but here is another cool vim
trick that I discovered on this list a while back, and which may be of
interest to the rest of the group.  Put the following in your
.vimrc.mail (or whatever .vimrc you source while editing mail):

" Give mutt's window a proper header when composing
let i = 1
let line = getline(i)
while (match(line, "To:") == -1  line != "")
let i = i + 1
let line = getline(i)
endwhile
if (line != "")
let i = match(line, " ") + 1
let j = match(line, "") - 1
if j == -2
let j = match(line, ",")
endif
if j == -1
let j = strlen(line)
endif
let len = j - i
let address = strpart(line, i, len)
let title = "Mail to " . address
let title = substitute(title, " ", " ", "g")
let title = substitute(title, "\"", "", "g")
execute 'set titlestring=' . title
execute 'set iconstring=' . title
else
execute 'set titlestring=Mutt'
execute 'set iconstring=Mutt'
endif
execute 'set titleold=Mutt'

This will give a meaningful title to your xterm window when you are
composing mail.  If anybody has the time to improve it (eg when you
send mail to mulitple people) I would be interested!!!


-- 
Brian Foley -- [EMAIL PROTECTED] -- www.maths.tcd.ie/~brianf
Visit the Intervarsity Track  Field web-site:  www.iv2001.com



Re: Cat'ing senders email to file

2001-03-20 Thread Brian Foley

* Dan Cardamore [[EMAIL PROTECTED]] on [20-03-01] wrote:
 I'm trying to keep a list of spammers in a file so that my filter can
 process them to the appropriate /dev/null.

Dan,
  Have you seen the following web-page:
http://www.linuxgazette.com/issue62/okopnik.html
it answers your question (I think) and it should give you some more
ideas as well.
  Brian.

-- 
Brian Foley -- [EMAIL PROTECTED] -- www.maths.tcd.ie/~brianf
Visit the Intervarsity Track  Field web-site:  www.iv2001.com



Re: How to show attatchments

2001-01-31 Thread Brian Foley

* smund Skjveland [[EMAIL PROTECTED]] on [31-01-01] wrote:
 What I'd like to do is to have this shown like a normal mail, so that mutt
 has lynx parse the mail automatically instead of having to view the
 HTML attachment separately.

auto_view text/html 
in your muttrc does exactly what you want.  See manual for further
details.  Also if you are not using the most recent/updated version of
lynx you wont see tables, try w3m instead:
text/html;  w3m -T text/html %s; copiousoutput
and see if you like it.
  Brian.

-- 
Brian Foley -- [EMAIL PROTECTED] -- www.maths.tcd.ie/~brianf

The Theorem Theorem: If If, Then Then.



Re: How to show attatchments

2001-01-31 Thread Brian Foley

* Thomas E. Dickey [[EMAIL PROTECTED]] on [31-01-01] wrote:
 TRST (the feature in lynx that you're referring to) dates back about a
 year.

But for most of the web-sites that I visit, w3m's handling of tables
and frames is superior to that provided by "TRST".  The lynx manual
outlines some limitations with "TRST" (see below).
  I think in the end of the day, your choice of browser is down to
personal preference, I was just making sure the other reader was aware
of an alternate to lynx (many aren't).  And dont forget "links", any
other text-based readers out there, mutt-users.?
  Regards,
Brian.


Starting with version 2.8.3, Lynx renders some tables in tabular form.
This tabular representation for simple tables (TRST) does not attempt
to implement full support for any table model. Limitations are: 

 *  All data constituting a table row generally has to fit within the
display width without inserting line breaks. 
 *  Cell contents have to be simple. In general, only inline markup is
acceptable, no P, BR etc. (although BR may be ignored at the
beginning of the first cell or at the end of the last cell of a row). 
 *  When tables are nested, only the innermost level is a candidate
for tabular representation. 
 *  Most attributes are ignored, including borders, WIDTH, vertical
alignment. 

-- 
Brian Foley -- [EMAIL PROTECTED] -- www.maths.tcd.ie/~brianf

"They called me mad, and I called them mad, and damn them, they
outvoted me."
 - Nathaniel Lee on being consigned to a mental institution, circa 17th c.



Keeping the [...]

2001-01-21 Thread Brian Foley


Hello All,
  Does anybody know if there is a way to keep the lines such as:

[-- Type: text/plain, Encoding: 7bit, Size: 1 --]

when you are printing or replying to a mail?  This would be useful for
text attachments that are autoviewed, so that you can see where one
attachment finishes and the other begins in a print-out of the mail.
  Brian.


-- 
Brian Foley -- [EMAIL PROTECTED] -- www.maths.tcd.ie/~brianf

A little inaccuracy sometimes saves tons of explanation.
-- H. H. Munroe



Long lines in compose menu

2000-11-17 Thread Brian Foley


Hello All,
  If I have a long To: or Cc: list in the compose menu, the line isn't
wrapped and all I can see is the first three or four email addresses.
Is there a way for these lines to be wrapped around?  I looked in the
manual but couldn't find anything obvious.  Does this happen to you 
guys as well or is it somthing to do with my setup?
  Brian.

P.S.
Mutt 1.2.5i (2000-07-28)
System: FreeBSD 4.1-STABLE [using slang 10400]
Compile options:
-DOMAIN
-DEBUG
+HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  +USE_FCNTL  -USE_FLOCK
+USE_IMAP  -USE_GSS  -USE_SSL  +USE_POP  +HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  +ENABLE_NLS
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="newmail"
SHAREDIR="/usr/local/share/mutt"
SYSCONFDIR="/usr/local/etc"
ISPELL="/usr/local/nmh/bin/ispell"

-- 
Brian Foley -- [EMAIL PROTECTED] -- www.maths.tcd.ie/~brianf



Re: Mutt's URL support

2000-09-11 Thread Brian Foley

* Thomas E. Dickey [[EMAIL PROTECTED]] on [11-09-00] wrote:
  to migrate to w3m or links which appear to be more secure and are
  functionally superior to lynx in nearly all regards.
 
 ( your opinion ;-)
 
As far as I am aware, one of the main advantages of links or w3m over
lynx is the superior handling of tables, which you find on a lot of
web-sites these days (including slashdot, the original ref for this
thread).  As far as I know lynx doesnt have table support (feel free
to correct me if I am wrong).
Regards
  Brian.



-- 
Brian Foley -- [EMAIL PROTECTED] -- www.maths.tcd.ie/~brianf