Compose macro question

2002-09-10 Thread Pedro Alves


  Hi!

  I want to make a compose macro that verifies the from-address and changes
the fcc according to that value...

  perhaps something like:

  compose V if ( from == 'foo@bar' )then {Fcc = '=bla'}

  Can you give me a hand on this?

  Thanks a lot

-- 
Pedro Miguel G. Alves   [EMAIL PROTECTED]
THINK - Tecnologias de Informação   www.think.pt
Tel:   +351 21 412 56 56  Av. José Gomes Ferreira
Fax:   +351 21 412 56 57 nº 13 1495-139 ALGÉS



Re: Compose macro question

2002-09-10 Thread Pedro Alves

On Tue, Sep 10, 2002 at 04:08:44PM +0200, Michael Tatge wrote:
 Pedro Alves ([EMAIL PROTECTED]) muttered:
I want to make a compose macro that verifies the from-address and changes
  the fcc according to that value...
  
perhaps something like:
  
compose V if ( from == 'foo@bar' )then {Fcc = '=bla'}
  
Can you give me a hand on this?
 
 What about fcc-hooks?
 
 Michael

fcc hooks don't automatically update when I change from address. I change
the from address often and I can't fill the configuration file with all the
possible addresses. I'm not seeing other way..

-- 
Pedro Miguel G. Alves   [EMAIL PROTECTED]
THINK - Tecnologias de Informação   www.think.pt
Tel:   +351 21 412 56 56  Av. José Gomes Ferreira
Fax:   +351 21 412 56 57 nº 13 1495-139 ALGÉS



Re: Ctrl-L after finding signed mail

2002-09-06 Thread Pedro Alves

On Fri, Sep 06, 2002 at 02:21:58AM +0200, Sven Guckes wrote:
 um, how exactly do you go through a signed message?
 do you view the message with display-message?
  Yes.

 do you have pgp_verify_sig set?

  Yes. The screen goes offbalance when gpg is invoked and returns
something like:

not a valid key ID 67%)
PGP signature could NOT be verified.


I know I'm not giving very good information, but it's hard to put it in
words. If there is any additional info I can give to help undestand the
problem, please ask.


Thanks!

  Mail-Followup-To: Pedro Alves [EMAIL PROTECTED],
   Mutt Mailing List [EMAIL PROTECTED]
 
 are you not susbcribed to the list?  (see sig)
 

Yes I am. I don't understand what you meant with the sig, sorry :/ 


-- 
Pedro Miguel G. Alves   [EMAIL PROTECTED]
THINK - Tecnologias de Informação   www.think.pt
Tel:   +351 21 412 56 56  Av. José Gomes Ferreira
Fax:   +351 21 412 56 57 nº 13 1495-139 ALGÉS



Ctrl-L after finding signed mail

2002-09-05 Thread Pedro Alves


  Hi. I have a small annoying problem. I use mutt mostly on a xterm-like
terminal but this also happens on the console. Everytime I go trough a
signed message the screen goes nuts and I have to make a ctrl-L to put it
back. This is maybe a poor termcap definition caused by the message
returned by gpg. 

  Does anyone have a solution for this?


  Thanks

-- 
Pedro Miguel G. Alves

THINK - Tecnologias de Informação
Av. José Gomes Ferreira, nº 13 1495-139 ALGÉS
Tel:   +351 21 412 56 56
Geral: +351 214 127 970Fax: +351 214 125 657
HomePage: www.think.pt



Re: Mason 1.10. Doesn't report the error line number ?

2002-06-26 Thread Pedro Alves


  I'm sorry!!! Wrong mailing list!


On Wed, Jun 26, 2002 at 03:12:16PM +0100, Pedro Alves wrote:
 Hi.
 
 
 With mason 1.10 I still get this kind of errors:
 
 error in file:  
 /opt/apache_1.3.23/mason/obj/sebol/inner/stocks/production/index.html  
 line 45: 
 Global symbol $delivery requires explicit package name
 line 45: 
 Global symbol $delivery requires explicit package name
 line 45: 
 Global symbol $delivery requires explicit package name
 line 45: 
 Global symbol $delivery requires explicit package name
 line 45: 
 Global symbol $delivery requires explicit package name
 line 45: 
 Global symbol $delivery requires explicit package name
 line 49: 
 Global symbol $delivery requires explicit package name
 line 53: 
 Global symbol $delivery requires explicit package name
 
 
 This refers to the object file. Wasn't this changed?
 
 
 Thanks
 
 
 THINK - Tecnologias de Informação
 Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal
 Tel: +351 21 3590285   Fax: +351 21 3582729
 HomePage: www.think.pt

-- 
Pedro Miguel G. Alves

THINK - Tecnologias de Informação
Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal
Tel: +351 21 3590285   Fax: +351 21 3582729
HomePage: www.think.pt



Re: Embebbing external interpreter in mutt

2002-06-26 Thread Pedro Alves

On Wed, Jun 26, 2002 at 09:21:59AM -0700, Gary Johnson wrote:
 On Wed, Jun 26, 2002 at 02:17:53PM +0200, Cedric Duval wrote:
  Pedro Alves wrote:
   Hello. Is it possible to configure mutt to automatically lunch the external
   viewer defined in mailcap inside the mutt window? For instance, lunch w3m
   or lynx when the type is text/html without having to see 
   [-- text/html is unsupported (use 'v' to view this part) --])] ?
  
  Sure.
  
  In your muttrc:
 auto_view text/html
 # for multipart alternatives, text/plain is prefered
 alternative_order text/plain text/enriched text/html
  
  And in your mailcap:
 text/html; lynx -dump -force-html %s ; copiousoutput
  
  Note the copiousoutput option.
 
 I don't think that's what Pedro was asking for.  That will convert HTML
 to plain text and display the plain text in mutt's pager.  What I think
 Pedro wanted was to view the HTML content of the message using a browser
 such as w3m, as can be done from the attachment menu, but with the
 browser invoked automatically when the message is opened from the index
 menu.  I don't think mutt currently supports that.
 
 Gary
 

although the suggestion Cedric gave is an interesting approach for what I
want, this would be perfect...


-- 
Pedro Miguel G. Alves

THINK - Tecnologias de Informação
Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal
Tel: +351 21 3590285   Fax: +351 21 3582729
HomePage: www.think.pt



Re: Embebbing external interpreter in mutt

2002-06-26 Thread Pedro Alves

On Wed, Jun 26, 2002 at 10:12:45AM -0700, Gary Johnson wrote:
  % menu.  I don't think mutt currently supports that.
  
  In that case, what about something like
  
msg-hook .'set pager=builtin'
msg-hook pattern 'set pager=lynx'
  
  or so?  If you want lynx as a pager, just set lynx as the pager...
  [Note that this is untested, that I don't use msg-hook, and that
  there's probably a lovely default setting that might be better than 
  the all-matching default msg-hook.]
 
 Good point.  You just have to see that mutt sends raw HTML to the pager.
 You also reminded me of a similar discussion here last month in which I
 wrote:
 

How can I make the pager recieve the HTML?

-- 
Pedro Miguel G. Alves

THINK - Tecnologias de Informação
Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal
Tel: +351 21 3590285   Fax: +351 21 3582729
HomePage: www.think.pt



Bug handling long lines ?

2002-06-25 Thread Pedro Alves

Hi.   
  
I noticed a problem regarding an HTML attachment that has very long lines.
Somehow mutt truncates those lines arround column 255.
  
This is a bit weird because I tried to reproduce the error writing my own 
html attachment with lines greater than 400 chars and all worked well.
  
Any suggestions?   


-- 
Pedro Miguel G. Alves

THINK - Tecnologias de Informação
Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal
Tel: +351 21 3590285   Fax: +351 21 3582729
HomePage: www.think.pt



Re: Bug handling long lines ?

2002-06-25 Thread Pedro Alves

On Tue, Jun 25, 2002 at 06:16:06PM +0100, Pedro Alves wrote:
 Hi.   
   
 I noticed a problem regarding an HTML attachment that has very long lines.
 Somehow mutt truncates those lines arround column 255.
   
 This is a bit weird because I tried to reproduce the error writing my own 
 html attachment with lines greater than 400 chars and all worked well.
   
 Any suggestions?   
 
 
 

Btw, the problem only happens in mutt (eg: pine works fine :/// ) and it is
solved by applying the folowing regexp to the mailbox:

perl -i.bak -pe 's/(.{200}[^ ]) (.*)/$1\n$2/g' mailbox


-- 
Pedro Miguel G. Alves

THINK - Tecnologias de Informação
Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal
Tel: +351 21 3590285   Fax: +351 21 3582729
HomePage: www.think.pt




Re: Bug handling long lines ?

2002-06-25 Thread Pedro Alves

On Tue, Jun 25, 2002 at 12:45:54PM -0500, David T-G wrote:
 % I noticed a problem regarding an HTML attachment that has very long lines.
 % Somehow mutt truncates those lines arround column 255.
 
 Are you sure it's actually doing that, or are you perhaps looking at an
 alternative text attachment that has been truncated for you?
 
 Can you forward the message (remember to MIME-encapsulate it) if it
 really, truly, absolutely looks like mutt is clipping the HTML lines?

It really, truly absolutly looks like a mutt problem.

I'm sending a tgz'd mailbox with only one line. Open it and look at the
attachment as text. You'll see that it truncates some long lines.
Saving/opening with w3m, lynx, netscape, whatever, it shows the file is
absolutly broken



-- 
Pedro Miguel G. Alves

THINK - Tecnologias de Informação
Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal
Tel: +351 21 3590285   Fax: +351 21 3582729
HomePage: www.think.pt



mutt-bug.tgz
Description: application/tar-gz


Re: Bug handling long lines ?

2002-06-25 Thread Pedro Alves

On Tue, Jun 25, 2002 at 01:09:33PM -0500, David T-G wrote:
 Pedro --
 
 ...and then Pedro Alves said...
 % 
 % On Tue, Jun 25, 2002 at 12:45:54PM -0500, David T-G wrote:
 %  % I noticed a problem regarding an HTML attachment that has very long lines.
 %  % Somehow mutt truncates those lines arround column 255.
 %  
 %  Are you sure it's actually doing that, or are you perhaps looking at an
 %  alternative text attachment that has been truncated for you?
 %  
 %  Can you forward the message (remember to MIME-encapsulate it) if it
 %  really, truly, absolutely looks like mutt is clipping the HTML lines?
 % 
 % It really, truly absolutly looks like a mutt problem.
 
 OK :-)
 
 It looks like your perl script fix just looked for a space at char 201
 and got rid of it.  Is that really true?

It looks for the first space after char 200 and replaces it for a newline.
It brakes the line. Keeps doing that so a line is never longer than 200
chars
 
 
 % 
 % I'm sending a tgz'd mailbox with only one line. Open it and look at the
 
 I'm not sure what you mean; I see 1077 lines in it (headers included).

One message, not one line! My mistake.


 
 
 % attachment as text. You'll see that it truncates some long lines.
 % Saving/opening with w3m, lynx, netscape, whatever, it shows the file is
 % absolutly broken
 
 It also appears to read fine for me under lynx (except that Sala 3 is
 duplicated in the listings; Sala 2 appears to be missing).  Maybe I'm
 just not seeing the same thing you are.
 

Try to apply my patch


what it's supposed to see is:

...
CINEMA S. JORGE  
Av. da Liberdade, 175   
Tel. 213103400/01   

Sala 1   
Jogo de Espiões  
Realizador: Tony Scott, Com Robert Redford, Brad Pitt, Catherine
McCormack e Stephen Dillane 
M/12 - 126 minutos - Acção/Drama/Thriller 
Sessões: 15.00, 18.00, 22.00 

Sala 2
Showtime  
Realizador: Tom Dey, Com Eddie Murphy, Robert de Niro, Rene Russo, Mel
Rodriguez 
M/12 - 92 minutos - Acção / Comédia 
Sessões: 15.15, 18.15, 21.15
 
...

what mutt sees before the patch is:

...
INEMA S. JORGE 
Av. da Liberdade, 175  
Tel. 213103400/01  
   
Sala 1 
Jogo de Espiões 
Realizador: Tony Scott, Com Robert Redford, Showtime  
Realizador: Tom Dey, Com Eddie Murphy, Star Wars - Episódio II - Ataque
dos Clones  
Realizador: George Lucas, Com Ewan McGregor, Star Wars - Episódio II -
Ataque dos Clones
Realizador: George Lucas, Com Ewan McGregor, O Poder dos Sentidos
Realizador: Tom Shadyac, Com Kevin Costner, Kathryn Erbe, Identidade   
Falsa 
Realizador: Harold Becker, Com John Travolta, Pela Mão do Senhor  
Realizador: Bill Paxton, Com Bill Paxton, Fala com Ela   
Realizador: Pedro Almodóvar, Com Leonor Watling, Bicicleta de Pequim  
Realizador: Xiaoshuai Wang, Com Lin Cui e Xun Zhou 
M/12 - 113 minutos - Drama 
Sessões: 14.00, 16.30, 19.00, 21.30, 00.00 
   
Sala 3 
Mulholland Drive 
Realizador: David Lynch, Com Justin Theroux e Pela Mão do Senhor
Realizador: Bill Paxton, Com Bill Paxton, O Delfim
Realizador: Fernando Lopes, Com Rogério Samora, Star Wars - Episódio II
- Ataque dos Clones  
Realizador: George Lucas, Com Ewan McGregor, Sala de Pânico
Realizador: David Fincher, Com Jodie Foster, O Poder dos Sentidos
Realizador: Tom Shadyac, Com Kevin Costn
.




mbox-hooks doesn't work the expected way

2000-09-11 Thread Pedro Alves


Hi. I'm a new mutt user, and some questions have arised when I began
using it. The most relevant now regards mbox-hooks

My mbox e /var/spool/mail/username. supose I get a mail from
[EMAIL PROTECTED] I have the following rule:

mbox-hook '~f bla@bla\.com' =blafolder

When I exit the program, it prompts me for saving read msgs to mbox
folder (somehing undesirable, but ok...). Answering Y, I expected the mail
from [EMAIL PROTECTED] to be moved to blafolder, but it is instead moved to =mbox
folder. Is this correct? How do I tell mutt to automatically move to the
correct folder?

thanks
-- 
Pedro Miguel Gameiro Alves

THINK - Tecnologias de Informação
Tel: +351 21 3590285
Email: [EMAIL PROTECTED]



Re: how to mark ?

2000-09-11 Thread Pedro Alves


Select the ones you want with 't' and prepend the save comand 's'
with ';'



On Mon, Sep 11, 2000 at 01:01:25PM +0200, Michael Seiwert wrote:
 Hi mutt's,
 
 how is it possible to mark a thread or a bunch of messages an copy
 them at once to another mailfolder ?
 
 Thank you for your help
 
 
 Micha

-- 
Pedro Miguel Gameiro Alves

THINK - Tecnologias de Informação
Tel: +351 21 3590285
Email: [EMAIL PROTECTED]



displaying to_chars flags

2000-09-11 Thread Pedro Alves


Hi. I wanted mutt to display the to_chars flags, but I cannot figure
out how...

My hdr_format is:

set hdr_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s"

-- 
Pedro Miguel Gameiro Alves

THINK - Tecnologias de Informação
Tel: +351 21 3590285
Email: [EMAIL PROTECTED]



Re: mbox-hooks doesn't work the expected way

2000-09-11 Thread Pedro Alves

On Mon, Sep 11, 2000 at 08:13:33AM -0400, David T-G wrote:
 
 Automatic moving is, in general, pretty tricky.  Most people would
 suggest that you play with procmail for that on the incoming side and

just did this, works very well. Tkx!

-- 
Pedro Miguel Gameiro Alves

THINK - Tecnologias de Informação
Tel: +351 21 3590285
Email: [EMAIL PROTECTED]



Re: displaying to_chars flags

2000-09-11 Thread Pedro Alves

On Mon, Sep 11, 2000 at 09:59:44AM -0400, David T-G wrote:
 Pedro --
 
 ...and then Pedro Alves said...
 % 
 % The question is how do I tell mutt who I am...
 
 Aha! :-)  Check out $alternates at 6.3.6
 
 

I've defined alternates, my_header, and I still cannot see the
to_chars.

Currently all the (I think) relevant options I have are this:

set alternates = "[EMAIL PROTECTED]","[EMAIL PROTECTED]"
set index_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" # not using hdr_format
anymore
set to_chars=" +TCF"
my_hdr From: Pedro Alves [EMAIL PROTECTED]


This is it. The last line was appended after my last post, so
hopeffully the CC bug will not happen again (tell me if it does, please)


-- 
Pedro Miguel Gameiro Alves



Re: displaying to_chars flags

2000-09-11 Thread Pedro Alves



Working! :)

Thanks!


-- 
Pedro Miguel Gameiro Alves

THINK - Tecnologias de Informação
Tel: +351 21 3590285
Email: [EMAIL PROTECTED]



Re: displaying to_chars flags

2000-09-11 Thread Pedro Alves

On Mon, Sep 11, 2000 at 08:25:01AM -0400, David T-G wrote:
 
 I've added you to the cc: field, so this message should generate a 'C'
 char for you.  Does it?

I upgraded to 1.3.9i. I still cannot see the to_chars. But I
remembered something. How does mutt know my email address? It is not
displayed when I write a msg, and left to sendmail to specify. When I want
to use a different from: address (as in the case of this mailing list) I
need to specify it by hand, but this is another thing. 

The question is how do I tell mutt who I am...


-- 
Pedro Miguel Gameiro Alves

THINK - Tecnologias de Informação
Tel: +351 21 3590285
Email: [EMAIL PROTECTED]



Re: Mutt's URL support

2000-09-11 Thread Pedro Alves

On Mon, Sep 11, 2000 at 08:26:51AM -0700, Myrddin wrote:
 
 BTW, it's lynx, not links.  Sounds like a nitpick, but if the poor guy was
 going to do a search on 'links', it wouldn't get him very far.
 
 - Myrddin

Well, just for the record, 'links' is also a text based web browser,
as 'lynx'.

-- 
Pedro Miguel Gameiro Alves

THINK - Tecnologias de Informação
Tel: +351 21 3590285
Email: [EMAIL PROTECTED]



Canceling 'compose mail (m)' command

2000-09-11 Thread Pedro Alves

Just a little question. When I accidently press 'm' to compose a new
mail, how do I reverse it? ctr-c asks if I want to exit mutt, and its
annoying to go through all the menus just to press 'q' in the main window..


Minor question, but if someone knows the answer...

-- 
Pedro Miguel Gameiro Alves