Re: attaching multiple files with edit-headers

2001-01-18 Thread Dave Pearson

On Wed, Jan 17, 2001 at 09:37:10PM +, Conor Daly wrote:

 OTOH, I did a little script that checks for "attach" style keywords in
 your message and then checks for a "content disposition attachment" type
 line in the message and if it doesn't find one, pop's up an xmessage to
 ask if you want to send without an attachment. 

The emacs junkies out there might also like to note that the emacs mutt mode
(as in mail editing mode, not the mode for editing muttrc files) has a
similar feature.

 In fact, I got asked about this message since it says "attach" above and
 doesn't have an attachment. Cool eh?

Now, I'd have been more impressed if it had known that you didn't want to
attach anything in this case. ;

-- 
Dave Pearson:   | lbdb.el - LBDB interface.
http://www.davep.org/   |  sawfish.el - Sawfish mode.
Emacs:  |  uptimes.el - Record emacs uptimes.
http://www.davep.org/emacs/ | quickurl.el - Recall lists of URLs.



Re: attaching multiple files with edit-headers

2001-01-18 Thread Conor Daly

On Thu, Jan 18, 2001 at 09:06:53AM + or so it is rumoured hereabouts, 
Dave Pearson thought:
 On Wed, Jan 17, 2001 at 09:37:10PM +, Conor Daly wrote:
 
  OTOH, I did a little script that checks for "attach" style keywords in
  your message and then checks for a "content disposition attachment" type
  line in the message and if it doesn't find one, pop's up an xmessage to
  ask if you want to send without an attachment. 
 
 The emacs junkies out there might also like to note that the emacs mutt mode
 (as in mail editing mode, not the mode for editing muttrc files) has a
 similar feature.
 
  In fact, I got asked about this message since it says "attach" above and
  doesn't have an attachment. Cool eh?
 
 Now, I'd have been more impressed if it had known that you didn't want to
 attach anything in this case. ;
 
That would be so cool as to be deep-frozen!

However, it can be configured to use *any* keywords you like.  I use
"attach" and "include" to cover "attached", "Attachment" etc and "include"
and "included".  You could limit it to checking for the word "attachment"
or "attached" only in which case it would still have triggered for my
message above but would give fewer false alarms otherwise.  I haven't
tried configuring with phrases (eg. "I've attached" or "I'm sending" etc)
and I'm not sure what the result would be but I kinda think it will work.

Incidentally, I'm always surprised when it *does* trigger so there are very 
few false alarms anyhow.

-- 
Conor Daly [EMAIL PROTECTED]

Domestic Sysadmin :-)
-
 12:42pm  up 2 days, 13:01,  1 user,  load average: 0.10, 0.05, 0.05



Re: attaching multiple files with edit-headers

2001-01-18 Thread Axel Bichler

Hi Conor!

*  Conor Daly [EMAIL PROTECTED] [010118 09:37]:
 OTOH, I did a little script that checks for "attach" style keywords in
 your message and then checks for a "content disposition attachment" type
 line in the message and if it doesn't find one, pop's up an xmessage to
 ask if you want to send without an attachment.  I haven't posted the
 script but if anyone wants to try it out, just holler!

YES! Sorry for yelling, but you asked to holler :-)

Perhaps you could find a place on your home page?

Thanks and regards,

Axel




Re: attaching multiple files with edit-headers

2001-01-18 Thread Petri Kelottij?rvi

On Thu, Jan 18, 2001 at 12:51:29PM +, Conor Daly wrote:
  Now, I'd have been more impressed if it had known that you didn't want to
  attach anything in this case. ;
 However, it can be configured to use *any* keywords you like.  I use
 "attach" and "include" to cover "attached", "Attachment" etc and "include"

Hmm...just a question...couldn't it be very muchly rehacked into
searching for, say, the words "is/are" after the attach keyword in the
same sentence, and optionally searching for "I|we" in the beginning?

Like as in catching "I have attached the file" and/or "One of the
attachments is", instead of "Warning for attachment lines". If someone
understands me :) A context-sensitive scan sort-of.


/petri

 PGP signature


Re: attaching multiple files with edit-headers

2001-01-18 Thread Conor Daly

On Thu, Jan 18, 2001 at 07:07:57PM +0100 or so it is rumoured hereabouts, 
Axel Bichler thought:
 Hi Conor!
 
 *  Conor Daly [EMAIL PROTECTED] [010118 09:37]:
  OTOH, I did a little script that checks for "attach" style keywords in
  your message and then checks for a "content disposition attachment" type
  line in the message and if it doesn't find one, pop's up an xmessage to
  ask if you want to send without an attachment.  I haven't posted the
  script but if anyone wants to try it out, just holler!
 
 YES! Sorry for yelling, but you asked to holler :-)
 
 Perhaps you could find a place on your home page?
 
 Thanks and regards,
 
 Axel

Perhaps I could find a homepage!

I'll post it to geocities later and post a URL to the list.

-- 
Conor Daly [EMAIL PROTECTED]

Domestic Sysadmin :-)
-
  7:56pm  up 2 days, 20:15,  1 user,  load average: 0.14, 0.06, 0.01



Trapping missing attachments (was: Re: attaching multiple files with edit-headers)

2001-01-18 Thread Conor Daly

On Thu, Jan 18, 2001 at 07:57:18PM + or so it is rumoured hereabouts, 
Conor Daly thought:
 On Thu, Jan 18, 2001 at 07:07:57PM +0100 or so it is rumoured hereabouts, 
 Axel Bichler thought:
  Hi Conor!
  
  *  Conor Daly [EMAIL PROTECTED] [010118 09:37]:
   OTOH, I did a little script that checks for "attach" style keywords in
   your message and then checks for a "content disposition attachment" type
   line in the message and if it doesn't find one, pop's up an xmessage to
   ask if you want to send without an attachment.  I haven't posted the
   script but if anyone wants to try it out, just holler!
  
  YES! Sorry for yelling, but you asked to holler :-)
  
  Perhaps you could find a place on your home page?
  
  Thanks and regards,
  
  Axel
 
 Perhaps I could find a homepage!
 
 I'll post it to geocities later and post a URL to the list.
 
mutt-attach-check.tgz is now available at 
www.geocities.com/conor_daly

It will check for specified (by the user) words or phrases in your email
and check for an attachment to go with them.  If no attachemnt os found,
you'll get asked what to do...

Enjoy!
-- 
Conor Daly [EMAIL PROTECTED]

Domestic Sysadmin :-)
-
  1:12am  up 3 days,  1:31,  3 users,  load average: 0.05, 0.02, 0.00



attaching multiple files with edit-headers

2001-01-17 Thread Eric Smith

I just discovered the Attach: header that you can add while editing
an outgoing mail.  The number of times I have blushed after sending
mail with xyz attached .. and no attachments :)  Now there is no
excuse of waiting till you get to the Composer to attach files - you
can do it in vi using the ^Xf which completes file names.

And now the question:
Is it possible to attach more than a single file in this way?


-- 
Eric Smith
Fruitcom.com Amsterdam
Wire phone : +31 20 528 7340
Mobile: +31 617 232 304
www.fruitcom.com



Re: attaching multiple files with edit-headers

2001-01-17 Thread Dave Pearson

On Wed, Jan 17, 2001 at 05:21:02PM +0200, Eric Smith wrote:

 And now the question:
 Is it possible to attach more than a single file in this way?

Yes. Have one Attach: header for each file you want to attach.

-- 
Dave Pearson:  | mutt.octet.filter - autoview octet-streams
http://www.davep.org/  | mutt.vcard.filter - autoview simple vcards
Mutt:  | muttrc2html   - muttrc - HTML utility
http://www.davep.org/mutt/ | muttrc.sl - Jed muttrc mode



Re: attaching multiple files with edit-headers

2001-01-17 Thread Conor Daly

On Wed, Jan 17, 2001 at 05:03:30PM + or so it is rumoured hereabouts, 
Dave Pearson thought:
 On Wed, Jan 17, 2001 at 05:21:02PM +0200, Eric Smith wrote:
 
  And now the question:
  Is it possible to attach more than a single file in this way?
 
 Yes. Have one Attach: header for each file you want to attach.
 
OTOH, I did a little script that checks for "attach" style keywords in
your message and then checks for a "content disposition attachment" type
line in the message and if it doesn't find one, pop's up an xmessage to
ask if you want to send without an attachment.  I haven't posted the
script but if anyone wants to try it out, just holler!

In fact, I got asked about this message since it says "attach" above and
doesn't have an attachment.  Cool eh?
-- 
Conor Daly [EMAIL PROTECTED]

Domestic Sysadmin :-)
-
  9:33pm  up 1 day, 21:52,  1 user,  load average: 0.02, 0.01, 0.00