sending a stream as a file

2000-11-05 Thread Eric Smith

Hi

This "works" 
zip - *txt|mutt -s'send a zip file of all txt docs' eric -a -

on 'V' in mutt received mail gives:
-   I 1 no description [text/plain, quoted, iso-8859-1, 96K]
 A 2 - [text/plain, 7bit, us-ascii, 0K]

With the top one being a legal zip file - only problem is that you
have to name the file when saving it, cause it is nameless.  Also the
encoding says test/plain but when you save the attachemnt, you get a
legal zip file.

Is there a way to force a file name, this should help mutt get its
encosing statement right as well?

-- 
Eric Smith
Fruitcom.com Amsterdam



Re: HTML format email

2000-11-05 Thread Wilhelm Wienemann

Hello Subba!

On Sat, 04 Nov 2000, Subba Rao wrote:

 Most of the spam mail that is in HTML format. When such mail comes in
 I would like to highlight such mail or have some type of marker on the
 message, so that I can develop an effective procmail receipe.

 I was testing my NT system and the Outlook express made a local copy
 of the email. There is lot of spam (adult type) in html format.

 Is there anyway mutt can identify content format of the email?

On Linux/Unix the following rule in .procmailrc will do this job:
--- cut here ---
## Recipe by Eli the Bearded [EMAIL PROTECTED] [970821]
## "This has the benefit of killing only stuff with a lot of markup, so
##  clean HTML can slip through as well as small samples of HTML code."
## Note: Usenet-II forbids MIME attachments and HTML!
## Allow up to 20 (selected) HTML tags in the body
HTMLMax = 20
:0 B
* $ -$HTMLMax^0
* * 1^1 ()/?(html|ul|ol|dl|dd|dt|li|br|p|pre|font|h[123456]|table|tr|td)
{
  LOG = "too much HTML encoded text -- "
  :0:
  IN.junk
}
- cut here --

--
Wilhelm Wienemann __
 / /__  _  _  _  _ __  __
 (°   (o-  / /__  / / / \// //_// \ \/ /   -°)  -°)
 //\  //\  // /_/ /_/\/ /___/  /_/\_\   /\\   /\\
 V_/_ v_/_   # Enjoy Linux and the Power of Open Source #  _\_V  _\_V



Re: mailing a stream as a file

2000-11-05 Thread Dirk Ruediger

Hi all!

On Sat, 04 Nov 2000, Eric Smith wrote:

 This "works"
 zip - *txt|mutt -s'send a zip file of all txt docs' eric -a -
 
 on 'V' in mutt received mail gives:
 -   I 1 no description [text/plain, quoted,
 iso-8859-1, 96K]
  A 2 - [text/plain, 7bit,
 us-ascii, 0K]
 
 With the top one being a legal zip file - only problem is that you
 have to name the file when saving it, cause it is nameless.  Also the
 encoding says test/plain but when you save the attachemnt, you get a
 legal zip file.
 
 Is there a way to force a file name? this will also help mutt to state
 the encoding correctly.

On bash and ksh (maybe also other shells) you could use process
substitution (cmd)

# mutt -s'send a zip file of all txt docs' eric -a ( zip - *txt) /dev/null
   ^^
   cmd-subst  ^
  mailbody
The result is:
 1 no description   [text/plain, 7bit, 0K] 
 2 63 [applica/octet-stre, base64, 0.1K]

But it has some limitations:
  - mutt doesn't care about the stream's file type, it's
application/oct-stream
  - the filename is not defined (63 on my box, but maybe it varies
depending on OS)

You should create an temp file (e.g. /tmp/archive.zip) and append it.

Ciao for now, Dirk
-- 
Dirk Ruediger, Rostock, Germany
 
Always borrow money from a pessimist; he doesn't expect to be paid back.



Re: Mailcap entries

2000-11-05 Thread Dirk Ruediger

Hi,

On Thu, 02 Nov 2000, Jason Helfman wrote:

 I want some mailcap entries to pull for
 
 xls
 doc
 csv
 pdf
 
 what would be some appropriate entries for this? I want to use
 staroffice and acroread, or xpdf

I use in ~/.mailcap:

application/msword;/opt/soffice/program/soffice %s
application/excel;/opt/soffice/program/soffice %s
application/vnd.ms-excel;run-mailcap application/excel:%s
application/powerpoint;/opt/soffice/program/soffice %s
application/vnd.ms-powerpoint;run-mailcap application/powerpoint:%s
application/rtf;/opt/soffice/program/soffice %s
application/pdf; /usr/bin/xpdf '%s'; test=test "$DISPLAY" != ""

and in ~/.mime.types:

type=application/pdfdesc="Portable Document Format"  exts="pdf"
type=application/excel  exts="xls"
type=application/msword exts="doc"
type=application/rtfexts="rtf"
type=application/powerpoint exts="ppt"

Ciao for now, Dirk
-- 
Dirk Ruediger, Rostock, Germany
 
Always borrow money from a pessimist; he doesn't expect to be paid back.



Creating headers/attribution using shell commands

2000-11-05 Thread Nils Vogels

Hi list!

Small problem here:

I'd like to put the output of some shellscripts in the headers and
attributions.. Since the output of the shellscript always varies between
preset values (like a fortune) the values have to be calculated at the moment
I start typing the mail.

How would that be done ?

Can I just use my_hdr X-something: `shellscript` ?

Grtz,

Nils.

 PGP signature


Re: Creating headers/attribution using shell commands

2000-11-05 Thread Mikko Hänninen

Nils Vogels [EMAIL PROTECTED] wrote on Sun, 05 Nov 2000:
 Can I just use my_hdr X-something: `shellscript` ?

You can use that, but it will only be evaluated once, when the .muttrc
file is read.

If you want it evaluated separately for each message, you need to do
something like:

  send-hook . 'my_hdr X-something: `shellscript`'


Hope this helps,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
"It's just a shadow of the people we should be"  -- Big Country



Re: Mutt 1.2.5 PGP 6.5.8 -- display problem.

2000-11-05 Thread Jean-Sebastien Morisset

I was hoping someone on the list would have a suggestion. Am I the only
one with this problem? Any hints would be appreciated...

Thanks,
js.

On Sun, Oct 29, 2000 at 11:35:20AM -0500, Jean-Sebastien Morisset wrote:
 I just upgraded to Mutt 1.2.5 and I'm having some display problems... When
 Mutt calls PGP to verify a message's signature, it screws up the display.
 I've used the settings documented in the contrib directory for pgp 6, and
 it's working fine except for the display problem. I have to do a ^L after
 every message checked by PGP.
 
 There *is* an error which flashes by pretty quick. Something about "sh:
 pgpspcycwrap not found" or something... Don't know if that's pertinent to
 the display problem...
 
 Anyone know if there's a fix for this?

-- 
Jean-Sebastien Morisset, Sr. UNIX Admin [EMAIL PROTECTED]
Personal Homepage http://www.jsmoriss.dyndns.org/ 
UNIX, Internet, Homebrewing, Cigars, PCS, CP2020 and other Fun Stuff...
This is Linux Country. On a quiet night you can hear Windows NT reboot!



Re: Creating headers/attribution using shell commands

2000-11-05 Thread Nils Vogels

Hi Mikko Hänninen !

On Sun 05 Nov 2000 (17:44), you muttered on the list:

 Nils Vogels [EMAIL PROTECTED] wrote on Sun, 05 Nov 2000:
  Can I just use my_hdr X-something: `shellscript` ?
 
 You can use that, but it will only be evaluated once, when the .muttrc
 file is read.
 
 If you want it evaluated separately for each message, you need to do
 something like:
 
   send-hook . 'my_hdr X-something: `shellscript`'
 
Okies .. thanks ;)

Another question: is there some way I can see what the current send-hook is
set to, like I can request the current value of a variable , using set
?variable ?

Grtz,

Nils.

 PGP signature


Re: Creating headers/attribution using shell commands

2000-11-05 Thread Mikko Hänninen

Nils Vogels [EMAIL PROTECTED] wrote on Sun, 05 Nov 2000:
 Hi Mikko Hänninen !

Hello Nils Vogels. :-)

 Another question: is there some way I can see what the current send-hook is
 set to, like I can request the current value of a variable , using set
 ?variable ?

No there isn't, as far as I know.  Something like this would be useful
though.  A way to list all the various hooks.  Usually it's possible to
find out whether something is in effect or not through trial and error,
but it sure would make things easier in some cases if you could just see
the list.

On the other hand, I'm not sure how a function like this would be
implemented...  It would definitely need to be a list of some kind in
a pager (much like the help screen), because there can be so many hooks
defined at the same time.  Even if you restrict to just one type of
hooks, there can be lots of them.


Regards,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
"Apple" (c) Copyright 1767, Sir Isaac Newton.



Performing operations on a GPG/PGP key id?

2000-11-05 Thread Chris Gushue

I am currently using the following two macros to do things with unknown
PGP/GPG key ids:

macro pager P "!gpg --keyserver wwwkeys.us.pgp.net --recv-key 0x" "Get PGP
Key"
macro pager L "!gpg --lsign-key 0x" "Sign PGP Key"

Is there a way to automatically get the key id from the message, so I
just have to press one key and it fills in the info?

-- 
Chris Gushue
[EMAIL PROTECTED]
http://mutt.lazygenes.net

 PGP signature


Re: HTML format email

2000-11-05 Thread Wilhelm Wienemann

Hello mutt-users!

On Sun, 05 Nov 2000, Wilhelm Wienemann wrote:

 Hello Subba!

 On Sat, 04 Nov 2000, Subba Rao wrote:

  Most of the spam mail that is in HTML format. When such mail comes in
  I would like to highlight such mail or have some type of marker on the
  message, so that I can develop an effective procmail receipe.
 
  I was testing my NT system and the Outlook express made a local copy
  of the email. There is lot of spam (adult type) in html format.
 
  Is there anyway mutt can identify content format of the email?

 On Linux/Unix the following rule in .procmailrc will do this job:
 --- cut here ---
 ## Recipe by Eli the Bearded [EMAIL PROTECTED] [970821]
 ## "This has the benefit of killing only stuff with a lot of markup, so
 ##  clean HTML can slip through as well as small samples of HTML code."
 ## Note: Usenet-II forbids MIME attachments and HTML!
 ## Allow up to 20 (selected) HTML tags in the body
 HTMLMax = 20
 :0 B
 * $ -$HTMLMax^0
 * * 1^1 ()/?(html|ul|ol|dl|dd|dt|li|br|p|pre|font|h[123456]|table|tr|td)
^

Oops, delete this token (star).

bye - Wilhelm

--
Wilhelm Wienemann __
 / /__  _  _  _  _ __  __
 (°   (o-  / /__  / / / \// //_// \ \/ /   -°)  -°)
 //\  //\  // /_/ /_/\/ /___/  /_/\_\   /\\   /\\
 V_/_ v_/_   # Enjoy Linux and the Power of Open Source #  _\_V  _\_V



Re: Creating headers/attribution using shell commands

2000-11-05 Thread Nils Vogels

Hi Mikko Hänninen !

On Sun 05 Nov 2000 (20:35), you muttered on the list:

 Nils Vogels [EMAIL PROTECTED] wrote on Sun, 05 Nov 2000:

  Another question: is there some way I can see what the current send-hook is
  set to, like I can request the current value of a variable , using set
  ?variable ?
 
 No there isn't, as far as I know.  Something like this would be useful
 though.  A way to list all the various hooks.  Usually it's possible to
 find out whether something is in effect or not through trial and error,
 but it sure would make things easier in some cases if you could just see
 the list.
 
Especially if you have multiple profiles and load them after eachother, it
could get quite messy, yes ;)

 On the other hand, I'm not sure how a function like this would be
 implemented...  It would definitely need to be a list of some kind in
 a pager (much like the help screen), because there can be so many hooks
 defined at the same time.  Even if you restrict to just one type of
 hooks, there can be lots of them.
 
Maybe it could be done in the way that for instance the query works, or the
PGP key selection ?

Grtz,

Nils.

 PGP signature


NNTP patch

2000-11-05 Thread Nils Vogels

Hi list !

I've been playing with the thought to add some NNTP support to mutt, since I
think it's more handy to do all in mutt, whereas I'm not using mutt and slrn
to do mail and news ..

I have seen 3 patches to add NNTP support to mutt .. which one is "the
best" in your opinion ? They all fo the same job AFAIK .. 

-- 
It's better to burn out than to fade away --Kurgan

 PGP signature


Is it possible to have a Trashbox?

2000-11-05 Thread James Power

Hi,

I'm new to mutt and wonder if there's a way for mutt to 
set up a trashbox. That is to say, whenever I delete a
mail, it go into the trashbox; the "garbage" in the trashbox
will be emptyed on demand or periodically.

Any hint will be appreciated.
(Please CC: me your reply, thanks again)




Re: NNTP patch

2000-11-05 Thread Suresh Ramasubramanian

Nils Vogels proclaimed on mutt-users that: 

 I have seen 3 patches to add NNTP support to mutt .. which one is "the
 best" in your opinion ? They all fo the same job AFAIK .. 
 
 Vselvod Volkov's patch seems to be the best.  I tried it but then
 preferred to stick to slrn.  YMMV of course.

-- 
Suresh Ramasubramanian + Wallopus Malletus Indigenensis
mallet @ cluestick.org + Lumber Cartel of India, tinlcI
The only difference in the game of love over the last few thousand years
is that they've changed trumps from clubs to diamonds.
-- The Indianapolis Star



Re: Is it possible to have a Trashbox?

2000-11-05 Thread Mikko Hänninen

James Power [EMAIL PROTECTED] wrote on Mon, 06 Nov 2000:
 I'm new to mutt and wonder if there's a way for mutt to 
 set up a trashbox. That is to say, whenever I delete a
 mail, it go into the trashbox; the "garbage" in the trashbox
 will be emptyed on demand or periodically.

  macro index d "save-message=trashenter"
  macro pager d "save-message=trashenter"

This will always save the message to the folder "=trash" whenever you
"delete" it, and mark it for deletion from the current folder.  You have
to clean up =trash yourself when you want it, possibly from the command
line manually, or from a crontab entry for periodic execution.

There's unfortunately no way to create a similar macro for D
(the delete-pattern function).  But ;d (tag-prefix followed by d)
will work, for "deleting" tagged messages in this way.


Hope this helps,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
Cheap, Fast, Good -- pick any two.  You can't have all three.



Re: Mutt crashing when I try to retrieve a postponed message.

2000-11-05 Thread Mikko Hänninen

Rod Pike [EMAIL PROTECTED] wrote on Fri, 03 Nov 2000:
  set postponed={my.imap.server}Drafts
 
 Although I am initially enjoying learning the power of Mutt, loosing postponed
 messages is a major stumbling block.

This isn't a real solution, but as a possible work around, how about
setting your postponed setting to a local folder?  I don't know if
that's an option for you...

Mutt of course shouldn't crash on postponing over to an IMAP folder,
that should be fixed, but while it does maybe using a local folder will
help you (if you can use that, that is).


Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
The reason computer chips are so small is that computers don't eat much.



IMAP Lost mailbox lock crash

2000-11-05 Thread Thomas Kim

Hi, I'm using Mutt 1.2.5i with IMAP.  I am also using WMMail (a mail-checker
for WindowMaker) to access the same IMAP mailbox.  If I am viewing a message,
then WMMail checks for new mail, then I press space bar to get to the next
page of the message, Mutt crashes with the following error:

imap_check_mailbox() [* BYE Lost mailbox lock].Segmentation fault (core
dumped)

A similar bug affects the index.  The same error message shows up but the
program does not segfault.  Instead it simply loses the index (the index
becomes empty until you reload the mailbox or restart).

If that's not enough information, reply to me directly and I'll provide more.

Thanks,

thom