Follow-up w/ Perderabo re: mimetool


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Follow-up w/ Perderabo re: mimetool
# 1  
Old 04-10-2002
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
# 2  
Old 04-11-2002
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.
# 3  
Old 04-11-2002
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.
# 4  
Old 04-15-2002
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

apologies to Perderabo

Sorry Perderabo, really was only asking advice on where best to post, and if I should post. Didn't intend for that missive to be posted. (0 Replies)
Discussion started by: keith.m
0 Replies

2. UNIX for Dummies Questions & Answers

Question about perderabo's MIMETOOL script

Perderabo, I copied the mimetool script and am running it on an HP-UX release 11i, and in most cases it works like a charm. But I ran into the following issue; I extracted data from an Oracle database and formatted the results as a *.csv file so that the user can view it as an excel... (4 Replies)
Discussion started by: perssonc
4 Replies

3. UNIX for Dummies Questions & Answers

Question to a Perderabo script

Hi I tried this date script https://www.unix.com/showthread.php?p=16559#post16559 but I am probably doing something wrong. If i type: datecalc -a 2006 05 01 + 5 I get following error message: datecalc: Syntax error at line 207 If i look at line 207 i dont get it! But thats not surprising. ... (2 Replies)
Discussion started by: swissman24
2 Replies

4. Shell Programming and Scripting

ksh syntax explanation - from mimetool

Hi I got this part of the script from the mimetool by Perderabo. I have difficulty in decyphering the syntax specially lines 4,5 & 9. Also the test condition in line 3. Could someone help me on this please. -------------------------------------- pwentry=$(grep "^$(logname):" /etc/paswd)... (2 Replies)
Discussion started by: chaandana
2 Replies

5. Post Here to Contact Site Administrators and Moderators

Perderabo is a UNIX King

This post is here because I couldn't think of putting it anywhere else, and also I imagine it will be deleted since we cannot set this sort of a precedent. However I have to say Perderabo is a UNIX king. I have been a frequent user of these forums for over 2 years (under 2 different names) and... (5 Replies)
Discussion started by: saabir
5 Replies
Login or Register to Ask a Question