cancel
Showing results for 
Search instead for 
Did you mean: 

CDE - dtmail

 
Ulrich Deiters
Frequent Advisor

CDE - dtmail

Dtmail seems to remove the linefeeds at the end of typed in lines, which is rather messy if one wants to send a table ...

Is there a way to make dtmail send messages without scrambling them?
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: CDE - dtmail

tables should probably be sent as attachments.

Interactively, elm can send an attachment just fine.

From a scripted basis, sendmail is very good at attachments. There is a sendmail attachment script that I frequently post called mailfile which will do the trick for you.

I do not have unix access, or I'd merely attach a copy. itrc search protter mailfile should find you a bunch of posts that have that script.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ulrich Deiters
Frequent Advisor

Re: CDE - dtmail

It would not be practical to create an attachment for every table or list I want to
send. On general principles, it is not acceptable that a program interferes with the way I type my email!

But thank you for the reference to the previous messages! I used them to built a little script that sends a text file unchanged (what dtmail cannot do) plus attachments (what mailx and elm cannot do).
Hoefnix
Honored Contributor

Re: CDE - dtmail

elm can send attachment.

Just use like next example (1st for binary files, 2nd for text file atachments):
1)
cat your-bin.file | uuencode your-bin.file | elm -s "type your subject" e-mail@x.com

2)
cat your-file.txt | ux2dos | uuencode your-file.txt | elm -s "your subject" e-mail@x.com

Hope this wil help some in solving your problem.
Ulrich Deiters
Frequent Advisor

Re: CDE - dtmail

I do not quite agree: The method you propose (cat ... uuencode ... elm) lets elm transmit binary files, but what arrives at the recipient is a big ASCII file which he usually has to decompose manually. Elm (at least my elm) does not insert boundaries to mark attachments.

But my problem is not sending attachments, but keeping dtmail from modifying my text.
Sanjay_6
Honored Contributor

Re: CDE - dtmail

Hi,

Take a look at this link from itrc.

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062955829

The doc id is W3650237


Hope this helps.

Regds
Ulrich Deiters
Frequent Advisor

Re: CDE - dtmail

Thank you, but the message you mention refers to non-ASCII characters. My language setting
is German ISO 8859-1, and the characters that are tampered with are linefeeds.

I suspect that there is some auto-linebreak mechanism at work that joins and breaks lines, disregarding my own linefeeds. But I do not know what causes this - perhaps some MIME option?