Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

send attachment to mail

5 views
Skip to first unread message

Ragothaman

unread,
Jun 6, 2003, 7:29:07 AM6/6/03
to
I am using mmdf and sending mails through it.

How to attach attachments to mail in command line? current mail
command syntax does not allows it.

Your help will be highly appreciated.

to...@aplawrence.com

unread,
Jun 6, 2003, 7:37:45 AM6/6/03
to
Ragothaman <rago...@yahoo.com> wrote:
: I am using mmdf and sending mails through it.

: How to attach attachments to mail in command line? current mail
: command syntax does not allows it.

From http://www.pcunix.com/SCOFAQ/scotec6.html#mailxmutt

Using mail from the command line: if you want to send true attachments
(that show up in graphical mail clients as attachments), you need
something like "mutt" (available from Skunkware).

If it's just arbitrary text or a file you want to send, and don't care
about it looking like a real attachment, you can use ordinary mail and do

mailx -s "This is it" someone@someplace < somefile

or

echo "text more text" | mailx somebody somebodyelse fr...@fred.com

You can use uuencode to send a binary file the same way, and some mail
clients may even display that as they would a "real" attachment.

However: that's NOT an attachment. Every time somebody asks this question
on the newsgroup, someone is sure to insist that it is, but a simple
visual examination of actual messages should show them their error.
The confusion is, of course, that some mail clients will act as though
the uuencoded text were a proper attachment. That's fine if the people
you are sending to use one of those clients, but if there is any chance
they do not, be safe: use Mutt.


--
to...@aplawrence.com Unix/Linux resources: http://aplawrence.com
Inexpensive phone/email support
Download Free SCO Skills Test: http://pcunix.com/skilltests.html

MSA

unread,
Jun 6, 2003, 9:58:09 AM6/6/03
to
try that :
uuencode file file | mail som...@on.the.net

"Ragothaman" <rago...@yahoo.com> a écrit dans le message de
news:5bc6392c.03060...@posting.google.com...

to...@aplawrence.com

unread,
Jun 6, 2003, 10:09:49 AM6/6/03
to
MSA <m.sain...@y-nover.com> wrote:
: try that :

: uuencode file file | mail som...@on.the.net

(sigh).

No. For the 18th gazillion time, that's not an attachment.

http://www.pcunix.com/SCOFAQ/scotec6.html#mailxmutt

MSA

unread,
Jun 6, 2003, 10:17:20 AM6/6/03
to
that's not a REAL attachment but that was good for my use
outlook show u these files like standard atached files


<to...@aplawrence.com> a écrit dans le message de
news:bbq7bd$mdr$3...@pcls4.std.com...

Jean-Pierre Radley

unread,
Jun 6, 2003, 11:30:14 AM6/6/03
to
Tony Lawrence typed (on Fri, Jun 06, 2003 at 02:09:49PM +0000):

| MSA <m.sain...@y-nover.com> wrote:
| : try that :
| : uuencode file file | mail som...@on.the.net
|
| (sigh).
|
| No. For the 18th gazillion time, that's not an attachment.
|
| http://www.pcunix.com/SCOFAQ/scotec6.html#mailxmutt

Man, you should see the vioent thread on this yesterday in the filePro
mailing list...


--
JP

Jean-Pierre Radley

unread,
Jun 6, 2003, 11:31:25 AM6/6/03
to
MSA typed (on Fri, Jun 06, 2003 at 04:17:20PM +0200):

| <to...@aplawrence.com> a écrit dans le message de
| news:bbq7bd$mdr$3...@pcls4.std.com...
| > MSA <m.sain...@y-nover.com> wrote:
| > : try that :
| > : uuencode file file | mail som...@on.the.net
| >
| > (sigh).
| >
| > No. For the 18th gazillion time, that's not an attachment.
| >
| > http://www.pcunix.com/SCOFAQ/scotec6.html#mailxmutt
|
| that's not a REAL attachment but that was good for my use
| outlook show u these files like standard atached files

Many people refuse to use crap like Outhouse Express...

--
JP

Robert Kovacic

unread,
Jun 8, 2003, 10:21:08 PM6/8/03
to

Do a google search for mpack. I believe it will do what you require and
it compiles fine under SCO Openserver 5.0.6.

Regards, Robert Kovacic.

Jean-Pierre Radley

unread,
Jun 8, 2003, 11:29:11 PM6/8/03
to
Robert Kovacic typed (on Mon, Jun 09, 2003 at 12:21:08PM +1000):

What is mpack, and why prefer it to using mutt?

--
JP

Bill Vermillion

unread,
Jun 9, 2003, 1:57:42 AM6/9/03
to
In article <20030609024...@jpradley.jpr.com>,

========================================
MPACK(1) MPACK(1)

NAME
mpack - pack a file in MIME format

SYNOPSIS
mpack [ -s subject ] [ -d descriptionfile ] [ -m maxsize ] [ -c con-
tent-type ] file address ...
mpack [ -s subject ] [ -d descriptionfile ] [ -m maxsize ] [ -c con-
tent-type ] -o outputfile file
mpack [ -s subject ] [ -d descriptionfile ] [ -m maxsize ] [ -c con-
tent-type ] -n newsgroups file

DESCRIPTION
The mpack program encodes the the named file in one or more MIME mes-
sages. The resulting messages are mailed to one or more recipients,
written to a named file or set of files, or posted to a set of news-
groups.


OPTIONS
[deletia - wjv]

========================================

That's mpack, but even though I have it here I also prefer mutt.

Bill
--
Bill Vermillion - bv @ wjv . com

Ragothaman

unread,
Jun 9, 2003, 5:47:38 AM6/9/03
to
Thanks for informing about mutt. I have installed mutt from skunkware.
But it needs ncurses library files. The link given in the above
mails is outdated in sco's site. Hence give me fresh links for
downloading this ncurses library

Thanks

to...@aplawrence.com

unread,
Jun 9, 2003, 6:02:23 AM6/9/03
to
Ragothaman <rago...@yahoo.com> wrote:
: Thanks for informing about mutt. I have installed mutt from skunkware.

: But it needs ncurses library files. The link given in the above
: mails is outdated in sco's site. Hence give me fresh links for
: downloading this ncurses library

Oh, that's that stupid out of date Skunkware mutt. I forgot about that.

JP has source at ftp://ftp.jpr.com and I have a binary he compiled from
that at ftp://aplawtence.com/pub/mutt_osr5.tar.Z

to...@aplawrence.com

unread,
Jun 9, 2003, 6:29:10 AM6/9/03
to
to...@aplawrence.com wrote:

: Ragothaman <rago...@yahoo.com> wrote:
: : Thanks for informing about mutt. I have installed mutt from skunkware.
: : But it needs ncurses library files. The link given in the above
: : mails is outdated in sco's site. Hence give me fresh links for
: : downloading this ncurses library

: Oh, that's that stupid out of date Skunkware mutt. I forgot about that.

: JP has source at ftp://ftp.jpr.com and I have a binary he compiled from
: that at ftp://aplawtence.com/pub/mutt_osr5.tar.Z

aargh!

ftp://aplawrence.com/pub/mutt_osr5.tar.Z

Jean-Pierre Radley

unread,
Jun 9, 2003, 11:39:24 AM6/9/03
to
Ragothaman typed (on Mon, Jun 09, 2003 at 02:47:38AM -0700):

It's in the graphics library at Skunkware, but it's a silly thing, since
whoever compiled mutt for Skunkware should never have used ncurses; SCO's
native curses libaray is perfectly adequate.

Try my compilation, Mutt.OSR5.tar.bz2, in the /pub directory of
ftp.jpr.com.

--
JP

to...@aplawrence.com

unread,
Jun 9, 2003, 1:03:57 PM6/9/03
to
Jean-Pierre Radley <j...@jpr.com> wrote:
: Ragothaman typed (on Mon, Jun 09, 2003 at 02:47:38AM -0700):

: | Thanks for informing about mutt. I have installed mutt from skunkware.
: | But it needs ncurses library files. The link given in the above
: | mails is outdated in sco's site. Hence give me fresh links for
: | downloading this ncurses library

: It's in the graphics library at Skunkware, but it's a silly thing, since
: whoever compiled mutt for Skunkware should never have used ncurses; SCO's
: native curses libaray is perfectly adequate.

And that version is the one I had other troubles with too.

: Try my compilation, Mutt.OSR5.tar.bz2, in the /pub directory of
: ftp.jpr.com.

--

Robert Kovacic

unread,
Jun 9, 2003, 8:45:10 PM6/9/03
to

Another post has answered what mpack is.

I prefer it over mutt because it provides the facility to do one single
job, mime attachments. I believe in the unix philosophy of chaining
simple filter commands and I thought the original poster was asking for
that and not a fully fledged mail client that happened to also meet his
needs.

Regards, Robert Kovacic

Ragothaman

unread,
Jun 10, 2003, 7:28:54 AM6/10/03
to
Robert Kovacic <r...@bigpond.com> wrote in message news:<3EE52A16...@bigpond.com>...

Yes!
I need the utility that can get the following as its arguments and
send the mail in a snap:
From address, sender's name, attachment files, body text, email
address.

I have downloaded and installed mpack and found that it satisfies my
requirement.

My heartful thanks to all who have guided throughout to find the right
utility.

Ragothaman

Thomas Dickey

unread,
Jun 10, 2003, 9:03:11 PM6/10/03
to
Jean-Pierre Radley <j...@jpr.com> wrote:
> Ragothaman typed (on Mon, Jun 09, 2003 at 02:47:38AM -0700):
> | Thanks for informing about mutt. I have installed mutt from skunkware.
> | But it needs ncurses library files. The link given in the above
> | mails is outdated in sco's site. Hence give me fresh links for
> | downloading this ncurses library

> It's in the graphics library at Skunkware, but it's a silly thing, since
> whoever compiled mutt for Skunkware should never have used ncurses; SCO's
> native curses libaray is perfectly adequate.

"adequate" is correct; however people using mutt tend to want to be able
to resize their window, and use default colors. But that's old stuff
(3-4 years). Current mutt users want UTF-8 support (but none of the
packages appear to support that).

Does SCO's curses do that yet?

--
Thomas E. Dickey <dic...@radix.net> <dic...@herndon4.his.com>
http://dickey.his.com
ftp://dickey.his.com

0 new messages