public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] mail command and attachment?
@ 2005-11-23 16:58 Leonard - Gentoo
  2005-11-23 17:28 ` Neil Bothwick
  0 siblings, 1 reply; 11+ messages in thread
From: Leonard - Gentoo @ 2005-11-23 16:58 UTC (permalink / raw
  To: gentoo-user

Hello list..

Is it possible to send an attachment using the 'mail' command say in a 
cronjob? i have a file that i would like sent to me before deleted and 
recreated to examine it.. but 'man mail' doesnt exactly suggest that an 
attachment is possible

Thanks in advance..

Regards ..

Leonard 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] mail command and attachment?
  2005-11-23 16:58 [gentoo-user] mail command and attachment? Leonard - Gentoo
@ 2005-11-23 17:28 ` Neil Bothwick
  2005-11-23 18:00   ` Leonard - Gentoo
  2005-11-24  5:49   ` Heinz Sporn
  0 siblings, 2 replies; 11+ messages in thread
From: Neil Bothwick @ 2005-11-23 17:28 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 614 bytes --]

On Wed, 23 Nov 2005 11:58:40 -0500, Leonard - Gentoo wrote:

> Is it possible to send an attachment using the 'mail' command say in a 
> cronjob? i have a file that i would like sent to me before deleted and 
> recreated to examine it.. but 'man mail' doesnt exactly suggest that an 
> attachment is possible

I don't believe mail will do this, unless you encode the attachment and
incorporate it into the mail yourself. mail-client/nail seems to do what
you want, describing itself as 'an enhanced mailx-compatible mail client'.


-- 
Neil Bothwick

Locutous for Pontiac: Excitment is irrelivent.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] mail command and attachment?
  2005-11-23 17:28 ` Neil Bothwick
@ 2005-11-23 18:00   ` Leonard - Gentoo
  2005-11-24  5:49   ` Heinz Sporn
  1 sibling, 0 replies; 11+ messages in thread
From: Leonard - Gentoo @ 2005-11-23 18:00 UTC (permalink / raw
  To: gentoo-user

Hello,

Thanks for the suggestion!

Regards ..

Leonard
----- Original Message ----- 
From: "Neil Bothwick" <neil@digimed.co.uk>
To: <gentoo-user@lists.gentoo.org>
Sent: Wednesday, November 23, 2005 12:28 PM
Subject: Re: [gentoo-user] mail command and attachment?


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] mail command and attachment?
  2005-11-23 17:28 ` Neil Bothwick
  2005-11-23 18:00   ` Leonard - Gentoo
@ 2005-11-24  5:49   ` Heinz Sporn
  2005-11-24  6:05     ` Leonard - Gentoo
  1 sibling, 1 reply; 11+ messages in thread
From: Heinz Sporn @ 2005-11-24  5:49 UTC (permalink / raw
  To: gentoo-user

Am Mittwoch, den 23.11.2005, 17:28 +0000 schrieb Neil Bothwick:
> On Wed, 23 Nov 2005 11:58:40 -0500, Leonard - Gentoo wrote:
> 
> > Is it possible to send an attachment using the 'mail' command say in a 
> > cronjob? i have a file that i would like sent to me before deleted and 
> > recreated to examine it.. but 'man mail' doesnt exactly suggest that an 
> > attachment is possible
> 
> I don't believe mail will do this, unless you encode the attachment and
> incorporate it into the mail yourself. mail-client/nail seems to do what
> you want, describing itself as 'an enhanced mailx-compatible mail client'.

Or use just this:

emerge mutt

Than in a script you might use something like this:

echo "Content" | mutt -s "Subject" -a file someone@somewhere.com

> 
> 
-- 
Mit freundlichen Grüßen

Heinz Sporn

SPORN it-freelancing

Mobile:  ++43 (0)699 / 127 827 07
Email:   heinz.sporn@sporn-it.com
         heinz.sporn@utanet.at
Website: http://www.sporn-it.com
Snail:   Steyrer Str. 20
         A-4540 Bad Hall
         Austria / Europe


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] mail command and attachment?
  2005-11-24  5:49   ` Heinz Sporn
@ 2005-11-24  6:05     ` Leonard - Gentoo
  2005-11-24  6:15       ` Leonard - Gentoo
  0 siblings, 1 reply; 11+ messages in thread
From: Leonard - Gentoo @ 2005-11-24  6:05 UTC (permalink / raw
  To: gentoo-user

Heinz,

Outstanding.. thanks for the suggestion also..

Regards ..

Leonard
----- Original Message ----- 
From: "Heinz Sporn" <heinz.sporn@sporn-it.com>
To: <gentoo-user@lists.gentoo.org>
Sent: Thursday, November 24, 2005 12:49 AM
Subject: Re: [gentoo-user] mail command and attachment?


> Am Mittwoch, den 23.11.2005, 17:28 +0000 schrieb Neil Bothwick:
>> On Wed, 23 Nov 2005 11:58:40 -0500, Leonard - Gentoo wrote:
>>
>> > Is it possible to send an attachment using the 'mail' command say in a
>> > cronjob? i have a file that i would like sent to me before deleted and
>> > recreated to examine it.. but 'man mail' doesnt exactly suggest that an
>> > attachment is possible
>>
>> I don't believe mail will do this, unless you encode the attachment and
>> incorporate it into the mail yourself. mail-client/nail seems to do what
>> you want, describing itself as 'an enhanced mailx-compatible mail 
>> client'.
>
> Or use just this:
>
> emerge mutt
>
> Than in a script you might use something like this:
>
> echo "Content" | mutt -s "Subject" -a file someone@somewhere.com
>
>>
>>
> -- 
> Mit freundlichen Grüßen
>
> Heinz Sporn
>
> SPORN it-freelancing
>
> Mobile:  ++43 (0)699 / 127 827 07
> Email:   heinz.sporn@sporn-it.com
>         heinz.sporn@utanet.at
> Website: http://www.sporn-it.com
> Snail:   Steyrer Str. 20
>         A-4540 Bad Hall
>         Austria / Europe
>
>
> -- 
> gentoo-user@gentoo.org mailing list
>
> 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] mail command and attachment?
  2005-11-24  6:05     ` Leonard - Gentoo
@ 2005-11-24  6:15       ` Leonard - Gentoo
  2005-11-24  6:48         ` Iain Buchanan
  2005-11-24  7:28         ` Mariusz Pękala
  0 siblings, 2 replies; 11+ messages in thread
From: Leonard - Gentoo @ 2005-11-24  6:15 UTC (permalink / raw
  To: gentoo-user

Thinking of this now.. but qmail is on this same box..

Anyone know off hand the syntax to send a message feeding it to qmail for 
delivery to an account on the box?

Regards ..

Leonard
----- Original Message ----- 
From: "Leonard - Gentoo" <gentoolist@pcnetsources.com>
To: <gentoo-user@lists.gentoo.org>
Sent: Thursday, November 24, 2005 1:05 AM
Subject: Re: [gentoo-user] mail command and attachment?


> Heinz,
>
> Outstanding.. thanks for the suggestion also..
>
> Regards ..
>
> Leonard
> ----- Original Message ----- 
> From: "Heinz Sporn" <heinz.sporn@sporn-it.com>
> To: <gentoo-user@lists.gentoo.org>
> Sent: Thursday, November 24, 2005 12:49 AM
> Subject: Re: [gentoo-user] mail command and attachment?
>
>
>> Am Mittwoch, den 23.11.2005, 17:28 +0000 schrieb Neil Bothwick:
>>> On Wed, 23 Nov 2005 11:58:40 -0500, Leonard - Gentoo wrote:
>>>
>>> > Is it possible to send an attachment using the 'mail' command say in a
>>> > cronjob? i have a file that i would like sent to me before deleted and
>>> > recreated to examine it.. but 'man mail' doesnt exactly suggest that 
>>> > an
>>> > attachment is possible
>>>
>>> I don't believe mail will do this, unless you encode the attachment and
>>> incorporate it into the mail yourself. mail-client/nail seems to do what
>>> you want, describing itself as 'an enhanced mailx-compatible mail 
>>> client'.
>>
>> Or use just this:
>>
>> emerge mutt
>>
>> Than in a script you might use something like this:
>>
>> echo "Content" | mutt -s "Subject" -a file someone@somewhere.com
>>
>>>
>>>
>> -- 
>> Mit freundlichen Grüßen
>>
>> Heinz Sporn
>>
>> SPORN it-freelancing
>>
>> Mobile:  ++43 (0)699 / 127 827 07
>> Email:   heinz.sporn@sporn-it.com
>>         heinz.sporn@utanet.at
>> Website: http://www.sporn-it.com
>> Snail:   Steyrer Str. 20
>>         A-4540 Bad Hall
>>         Austria / Europe
>>
>>
>> -- 
>> gentoo-user@gentoo.org mailing list
>>
>>
>
> -- 
> gentoo-user@gentoo.org mailing list
>
> 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] mail command and attachment?
  2005-11-24  6:15       ` Leonard - Gentoo
@ 2005-11-24  6:48         ` Iain Buchanan
  2005-11-24 13:38           ` Leonard - Gentoo
  2005-11-24  7:28         ` Mariusz Pękala
  1 sibling, 1 reply; 11+ messages in thread
From: Iain Buchanan @ 2005-11-24  6:48 UTC (permalink / raw
  To: gentoo-user

On Thu, 2005-11-24 at 01:15 -0500, Leonard - Gentoo wrote:
> Thinking of this now.. but qmail is on this same box..
> 
> Anyone know off hand the syntax to send a message feeding it to qmail for 
> delivery to an account on the box?

I don't know about qmail, but most of the time you can say
"user@localhost" or just "user" in most cases.

HTH,
-- 
Iain Buchanan <iaindb@netspace.net.au>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] mail command and attachment?
  2005-11-24  6:15       ` Leonard - Gentoo
  2005-11-24  6:48         ` Iain Buchanan
@ 2005-11-24  7:28         ` Mariusz Pękala
  2005-11-24 13:40           ` Leonard - Gentoo
  1 sibling, 1 reply; 11+ messages in thread
From: Mariusz Pękala @ 2005-11-24  7:28 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 544 bytes --]

On 2005-11-24 01:15:07 -0500 (Thu, Nov), Leonard - Gentoo wrote:
> Thinking of this now.. but qmail is on this same box..
> 
> Anyone know off hand the syntax to send a message feeding it to qmail for 
> delivery to an account on the box?
> 

Maybe
   cat message | /var/qmail/bin/qmail-inject -a username
would do it?
Attachments should be already included/encoded in message, I suppose.
(Is anybody still using uuencode these days?)

-- 
No virus found in this outgoing message.
Checked by 'grep -i virus $MESSAGE'
Trust me.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] mail command and attachment?
  2005-11-24  6:48         ` Iain Buchanan
@ 2005-11-24 13:38           ` Leonard - Gentoo
  0 siblings, 0 replies; 11+ messages in thread
From: Leonard - Gentoo @ 2005-11-24 13:38 UTC (permalink / raw
  To: gentoo-user

Thanks, but that doesn't seem to work

Regards ..

Leonard
----- Original Message ----- 
From: "Iain Buchanan" <iaindb@netspace.net.au>
To: <gentoo-user@lists.gentoo.org>
Sent: Thursday, November 24, 2005 1:48 AM
Subject: Re: [gentoo-user] mail command and attachment?


> On Thu, 2005-11-24 at 01:15 -0500, Leonard - Gentoo wrote:
>> Thinking of this now.. but qmail is on this same box..
>>
>> Anyone know off hand the syntax to send a message feeding it to qmail for
>> delivery to an account on the box?
>
> I don't know about qmail, but most of the time you can say
> "user@localhost" or just "user" in most cases.
>
> HTH,
> -- 
> Iain Buchanan <iaindb@netspace.net.au>
>
> -- 
> gentoo-user@gentoo.org mailing list
>
> 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] mail command and attachment?
  2005-11-24  7:28         ` Mariusz Pękala
@ 2005-11-24 13:40           ` Leonard - Gentoo
  2005-11-24 14:14             ` Leonard - Gentoo
  0 siblings, 1 reply; 11+ messages in thread
From: Leonard - Gentoo @ 2005-11-24 13:40 UTC (permalink / raw
  To: gentoo-user

Hello .. thanks again.. but that doesn't work.. maybe mutt is the way to go 
..

Regards ..

Leonard
----- Original Message ----- 
From: "Mariusz Pekala" <skoot@qi.pl>
To: <gentoo-user@lists.gentoo.org>
Sent: Thursday, November 24, 2005 2:28 AM
Subject: Re: [gentoo-user] mail command and attachment?


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] mail command and attachment?
  2005-11-24 13:40           ` Leonard - Gentoo
@ 2005-11-24 14:14             ` Leonard - Gentoo
  0 siblings, 0 replies; 11+ messages in thread
From: Leonard - Gentoo @ 2005-11-24 14:14 UTC (permalink / raw
  To: gentoo-user

Hello All..

Found the uuencode method on the qmail list ..

uuencode file.ext file.ext | mail -s "This is a test" me@mydomain.com

Thank you everyone!

Regards ..

Leonard
----- Original Message ----- 
From: "Leonard - Gentoo" <gentoolist@pcnetsources.com>
To: <gentoo-user@lists.gentoo.org>
Sent: Thursday, November 24, 2005 8:40 AM
Subject: Re: [gentoo-user] mail command and attachment?


> Hello .. thanks again.. but that doesn't work.. maybe mutt is the way to 
> go ..
>
> Regards ..
>
> Leonard
> ----- Original Message ----- 
> From: "Mariusz Pekala" <skoot@qi.pl>
> To: <gentoo-user@lists.gentoo.org>
> Sent: Thursday, November 24, 2005 2:28 AM
> Subject: Re: [gentoo-user] mail command and attachment?
>
>
> -- 
> gentoo-user@gentoo.org mailing list
>
> 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-11-24 14:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-23 16:58 [gentoo-user] mail command and attachment? Leonard - Gentoo
2005-11-23 17:28 ` Neil Bothwick
2005-11-23 18:00   ` Leonard - Gentoo
2005-11-24  5:49   ` Heinz Sporn
2005-11-24  6:05     ` Leonard - Gentoo
2005-11-24  6:15       ` Leonard - Gentoo
2005-11-24  6:48         ` Iain Buchanan
2005-11-24 13:38           ` Leonard - Gentoo
2005-11-24  7:28         ` Mariusz Pękala
2005-11-24 13:40           ` Leonard - Gentoo
2005-11-24 14:14             ` Leonard - Gentoo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox