The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
nautilus-follow-symlink 1.0.99-pre.1 (Experimental branch) iBot Software Releases - RSS News 0 05-06-2008 02:40 AM
Question about perderabo's MIMETOOL script perssonc UNIX for Dummies Questions & Answers 4 07-27-2006 12:35 PM
How to follow processes and their children with ps mschwage UNIX for Advanced & Expert Users 2 03-13-2006 08:40 AM
ksh syntax explanation - from mimetool chaandana Shell Programming and Scripting 2 07-26-2005 10:28 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-10-2002
Registered User
 

Join Date: Apr 2002
Posts: 7
Follow-up w/ Perderabo re: mimetool

This is a follow-up re: this thread

As I mentioned, this script works very nicely, thanks again.

However, the ASCII data of the 'attached file' also shows below the body of the email message. Do you know of a way to 'disable' the attached text from showing? Although the file is attached, it seems to confuse some folks to whom I have sent data.

TIA
-jp
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-11-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,461
Do you know which OS and email software these people are using? I'm not sure that I exactly understand the complaint here. When I use the script to send myself an email message to my Outlook account, yes the attachments are below the body. If Outlook didn't put it somewhere, I'm sure how I would deal with it...

Are you saying that that mailer is opening the attachment and displaying it?

Well whatever the problem is here, I do have something that you can try. When I wrote that script I send myself emails from various mail programs to see what they did. I saw two techniques in use. I went with the simpler one because I saw that it worked. To try the more complex technique, after the line that says:
Code:
print -  'Content-Type: TEXT/PLAIN; charset=US-ASCII; name='${ATTACHMENT}
add this line...
print -  'Content-Disposition: attachment;   filename='${ATTACHMENT}
Let me know if this works better for you. I'm in the midst of writing a successor to mimetool and I'll add that line to it if it helps with some software.
Reply With Quote
  #3 (permalink)  
Old 04-11-2002
Registered User
 

Join Date: Apr 2002
Posts: 7
I think the confusion is the customer gets the email, and in the 'preview pane', sees the email body, a separator, then the actual ASCII data that's attached. Right then, the customer is probably thinking there is a problem - without actually checking to see if a file is attached (via the 'paper-clip', or whatever icon their mail client uses to indicate an attachment).

In any case, I made the suggested change, and it works - a file is still attached, but the attachment data is no longer visible under the email body. I'm testing it using OE 6, Netscape 4.5 and 4.7.

I am waiting for our customers response re: email client they use, etc. I will respond to this thread w/ an update once I am able to get more details - in case there is a legitimate issue on their end.

Again, thanks for your help - it has been invaluable.
Reply With Quote
  #4 (permalink)  
Old 04-15-2002
Registered User
 

Join Date: Apr 2002
Posts: 7
The latest:

The customer did not respond w/ their name/version of their email client. However, I believe he's using Netscape due to a .vcf file attached to his email.

In any case, I sent an email w/ attachment using the revised script ('Content-Disposition....' version), and he gave the thumbs up.

So, I think the original mimetool actually worked, but the presence of the attached data in the 'preview pane' caused some confusion for the user.


Thanks again.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0