Selecting headers to delete on pop3 server

2001-02-07 Thread Marco Fioretti

Hello,

The URL:

http://www.linuxgazette.com/issue62/okopnik.html

is an article on how to filter spam. Among other things,
it also discusses how to manipulate mail filtering
from within mutt.

I was targeting the pop3 server, while the author explains
how to change procmail recipes within mutt, but it is basically
the same problem, and infact he gives the same solution
proposed by Aaron.

One note: the article puts single quotes around the mutt macros,
while Aaron specified double quotes. Any comment about this?

Does it depend from the mutt version?

As noted before, I won't have time to play with my home box before
the weekend, but I'll post every script I'll be able to put
together.

Ciao,
Marco Fioretti



multipart application/pgp

2001-02-07 Thread Daniel Kollar

Hi!

I often get emails with several pgp encrypted attachments.

The "Content-Type" in the header of the message is "multipart/", so
mutt does not recongnize the pgp encryption.
Procmail can change this "multipart/" content type to "application/pgp".
Now mutt can decrypt the whole msg and show it in the pager. This works fine, as long 
as
there are only ASCII attachments encrypted.
But when there are e.g. tar, gz attachments or images, I run into
problems.

Nice would be, if mutt could recognize the multipart and the encryption.
Then the normal attachment browser could be used to read or save the
attachments separately.

What do you think about this?


Regards,
Daniel.



Re: Selecting headers to delete on pop3 server

2001-02-07 Thread Aaron Schrab

At 10:15 +0100 07 Feb 2001, Marco Fioretti [EMAIL PROTECTED] wrote:
   http://www.linuxgazette.com/issue62/okopnik.html

 One note: the article puts single quotes around the mutt macros,
 while Aaron specified double quotes. Any comment about this?

The macros I suggested would take care of everything automatically
(unless $wait_key is set).  For this to work "\n" needs to get expanded
to a line-feed; this happens inside of double quotes but not single
quotes.

The macros in the above article require the user to manually hit the
enter key to perform the action.  Because of this they don't contain
"\n", so the expansion doesn't depend on the type of quotes used.

 Does it depend from the mutt version?

It shouldn't for anything even somewhat recent.  Ancient versions (quite
a bit before 1.0) had somewhat different quoting rules, so might behave
differently (although I don't think the differences should matter for a
simple case like this).

-- 
Aaron Schrab [EMAIL PROTECTED]  http://www.execpc.com/~aarons/
 Real Users never use the Help key.



Mutt with NNTP-Patch

2001-02-07 Thread Waldemar Brodkorb

Hello Muttusers,

Is here anybody using the NNTP-Patch
from Volkov? 

I can't post any news, because I think inews 
(perlscript) is not working.

Every message I want to post goes to ~/deadarticle.

What to do? Have anyone experience with
NNTP and Mutt.

Debian 2.2, cnews  inews installed.

-- 
MfG

Waldemar Brodkorb

Linux rulez !



Re: ignoring backup-inbox in !mailboxes watch

2001-02-07 Thread Duncan Watson

On Tue, Feb 06, 2001 at 07:33:55AM -0500, Joe Philipps wrote:
 1.) Instead of using echo, you might try using ls -1 or find as
   appropriate (dunno...I use mbox format)
 
 2.) pipe that into grep -v
 
 For example:
 
 find $HOME/Mail -type f -print | egrep -v '(notbox1|notbox2|backup-inbox)'
 
 Q:...for those of you who use maildir...would you ever have
 subdirectories in $HOME/Mail?

Joe,

I use procmail to populate my maildirs and so am not as limited certain
IMAP users.  I do have subdirectories under $HOME/Mail

I have:
$HOME/Mail/personal 
which contains
inbox/
family/
netfriends/
...
$HOME/Mail/Mailing-lists/
which contains
mutt-dev/
mutt-users/
...

Most of the rest are right off $HOME/Mail
I have also made Mailing-lists a softlink to prevent find from wandering
into it unless I want to search there explicitly.  

One of the benefits of maildir for me is that I use find and grep to build
a Search-Results/ folder to link all messages that match a regex in one
folder.  This allows me to see the threading etc in the folder on all
messages that refer to the Astral project for instance.

find $HOME/Mail/ -type f -exec grep -l "regex" {} \;  -exec ln {} \
  $HOME/Mail/Search-Results/ \;

/Duncan
-- 
Duncan Watson Application Engineer



Re: autoview HTML question

2001-02-07 Thread Ken Weingold

On Wed, Feb  7, 2001, G.Embery wrote:
 On Wed, Feb 07, 2001 at 12:14:53AM -0500, Ken Weingold wrote:
  What is it that mutt uses to tell that an email is in HTML?  I set
  autoview to launch lynx to view HTML, and all of a sudden I am seeing
  a lot more emails as html.
 
 If email provides text/plain and text/html (which is often
 true of some mail agents), then it seems that once you have
 specified "autoview text/html" the html becomes the preferred
 attachment to look at.
 
 see section 5.5. :--  MIME Multipart/Alternative in help file
 `manual.txt' on "alternative_order".  I just used the example
 as given there  viz:-
 alternative_order 
 text/enriched text/plain text/html application/postscript image
 And so text/plain is selected ahead of text/html... 

Ah.  That did it.  Thanks to all who replied.

Btw, the autoview for html is a life saver.  I can't believe I didn't
set this sooner.  This has opened up a whole new world of spam! :)


-Ken

-- 
[EMAIL PROTECTED]AIM: ScopusFest



rtf viewing

2001-02-07 Thread Jim M.

Hi,
How to veiw attachments of type .rtf in mutt?. I could modify the
mut.octet.filter to do this but i am not sure what can view this
sort of attachments.
Jim

_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: index_format to show attachments?

2001-02-07 Thread Duncan Watson

On Wed, Jan 31, 2001 at 12:25:27PM -0500, mike polniak wrote:
 mike polniak wrote:
   
  I have'nt done this yet, but at first glance it seems doable:
  
  The index_format will show %N a message score. So score your messages
  by Mutt pattern: ~h EXPR for messages which contain EXPR in the message
  header.  Now i already use procmail to find attachments by looking at
  the header for 'Content-Type:.*multipart/mixed' which eliminates PGP
  and alternative attachments.  So just let Mutt match a pattern in the
  header for Content-Type:?  set for some attachment to score
  accordingly and show it with %N in the index.
 
   OK i am answering my own post. When i try the above, Mutt 1.2.5i
 says " ~h is not supported ". So here is how to get Mutt to cooperate and
 flag messsages with attachments by putting a message 'score' next to the
 status flags in the index:
   Mutt does support the pattern '~i ID' which matches the Message-ID:
 field. So since i already use procmail to find messages with attachments, i 
 add another line to the procmail recipe, to replace the original Message-ID:
 | formail -i "Message-ID: attach".
   Now use Mutt message scoring, to score messages which match the pattern
 "Message-ID: attach". My .muttrc has: folder-hook . "score ' ~i attach' 2"
   Now add %N (message score) to the index_format, and the score 2 will
 appear in the index. I also edited my pager_format line by adding %i which
 is the message id, so that it displays "attach" in the pager status line. 
 HTH  

OK, I have read this and the other message about using different header
lines instead of ~h.  BUT this begs the questions, why isn't ~h supported
in this mode?  And, WTH does in this mode imply.  Limits work with ~h, why
not scores?

Now this is not crippling to me as I do use procmail BUT it is part of the
functionality in mutt and not something that really should belong in
procmail's realm.

/Duncan
-- 
Duncan Watson Application Engineer



sourcing aliases

2001-02-07 Thread [EMAIL PROTECTED]

Is it at all possible to resource my aliases file without restarting mutt?  What info 
I could find on aliases and sourcing the file doesn't mention this specifically.  
Should I take it that the client must be restarted?

dan



Re: sourcing aliases

2001-02-07 Thread Rado S.

On Wed  7.Feb'01 at 14:24:43 -0700 wrote
 "[EMAIL PROTECTED]" [EMAIL PROTECTED]:

/ Is it at all possible to resource my aliases file without restarting mutt?
/ What info I could find on aliases and sourcing the file doesn't mention
/ this specifically. Should I take it that the client must be restarted?
/ 
/ dan

No restart necessary.
Just issue:

:source aliasfile

where aliasfile is the full path to your aliasfile.

-- 
Rado S. eMail: [EMAIL PROTECTED]
+-
Message is based on my knowledge:   | So much to do, and only so little
I'm not omniscient, take care!  | time, no mercy, no hope.



Re: sourcing aliases

2001-02-07 Thread Luke Ravitch

On Wed, Feb 07, 2001 at 10:31:24PM +0100, Rado S. wrote:
 On Wed  7.Feb'01 at 14:24:43 -0700 wrote
  "[EMAIL PROTECTED]" [EMAIL PROTECTED]:
 
 / Is it at all possible to resource my aliases file without restarting mutt?
 / What info I could find on aliases and sourcing the file doesn't mention
 / this specifically. Should I take it that the client must be restarted?
 / 
 / dan
 
 No restart necessary.
 Just issue:
 
   :source aliasfile
 
 where aliasfile is the full path to your aliasfile.

Just keep in mind that sourcing the alias file will only add new
aliases.  It won't unalias already created ones.  (Though I suppose it
should update changed aliases).  Sourcing a file is just like using
:command for each line in the file.

-- 
Luke



include message options

2001-02-07 Thread Jason Helfman

I know that you can/can't include messages, but say given a certain
subject line I don't want to include the message text.

For instance if I pattern match on Funny  Joke. or Re: Re: Re:
-- 
/Jason G Helfman

"At any given moment, you may find the ticket to the circus that has always
been in your possession."

Fingerprint: 6A32 3774 E390 33B5 8C96  2AA1 2BF4 BD71 35A1 C149
GnuPG http://www.gnupg.org  Get Private!  1024D/35A1C149



Re: rtf viewing

2001-02-07 Thread Dirk Ruediger

Hi Jim,

 How to veiw attachments of type .rtf in mutt?. I could modify the
 mut.octet.filter to do this but i am not sure what can view this
 sort of attachments.
What OS are you using?

You can take rtf2text or rtf2html, they come with an perl module
"RTF-Parser" (AFAIK). Look at CPAN.

Ciao for now, Dirk
-- 
Dirk Ruediger, Rostock, Germany
 
"I used to be interested in Windows NT, but the more I see of it the more it
looks like traditional Windows with a stabler kernel.  I don't find anything
technically interesting there.  In my opinion, MS is a lot better at making
money than it is at making good operating systems."  -- Linus Torvalds