Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-28-2008, 04:36 AM
Jeff Hyman
 
Posts: n/a
Default mutt -a redirect

MUTT shell script question: SCO 5.0.6 mutt v1.5.3i

:
mutt -s "SUBJECT HEADER" -a file.pdf -c bill@dealer.com john@customer.com
exit

Objective: Not having to interact with 'mutt'.
Ability to "attach" a PDF file

The above example, when executed, goes into an interactive mode.
mutt -s "SUBJECT HEADER" john@customer.com < file.pdf
This example does not solve the -[a]ttachment PDF issue.

Any ideas?
- Jeff H
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-28-2008, 04:36 AM
Robert T. Repko (R Squared Consultants)
 
Posts: n/a
Default Re: mutt -a redirect

Believe it or not at 3/27/2008 08:17 AM, Jeff Hyman said:
>MUTT shell script question: SCO 5.0.6 mutt v1.5.3i
>
>:
>mutt -s "SUBJECT HEADER" -a file.pdf -c bill@dealer.com john@customer.com
>exit
>
>Objective: Not having to interact with 'mutt'.
> Ability to "attach" a PDF file
>
>The above example, when executed, goes into an interactive mode.
>mutt -s "SUBJECT HEADER" john@customer.com < file.pdf
>This example does not solve the -[a]ttachment PDF issue.
>
>Any ideas?
>- Jeff H
>This incoming email was scanned and deemed free of spam and virii by
>R Squared Consultants.


I use the following to send reports out of my database program
(filepro), it is automated running via cron.

08pfdpaidl:/usr/local/bin/mutt -s "07-08 PFD Paid Report" -a
/reports/pfdpaid.doc rtr@rsquared.com </reports/message/pfdpaid

In order for it to not go interactive you need the
'</reports/message/pfdpaid' at the end of the command.
I put an explanation of the report in the file I redirect, it gets
placed in he body of the email.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-28-2008, 04:36 AM
Jeff Hyman
 
Posts: n/a
Default Re: mutt -a redirect

--- clipped ---

mutt -s "SUBJECT" -a file.pdf -c copy@me.com to@you.com < /tmp/ascii

This worked. - text in '/tmp/ascii' would show up in the body
- file.pdf is attached.
- no interaction

I'm now going to tackle doing a loop where multiple 'file.pdf' files
are attached to ONE email.

Please forgive me for the early (unnecessary) post.
- Jeff H

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-28-2008, 04:36 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: mutt -a redirect

On 27 Mar, 12:17, Jeff Hyman <scol...@cactus.com> wrote:
> MUTT shell script question: * *SCO 5.0.6 * *mutt v1.5.3i
>
> :
> mutt -s "SUBJECT HEADER" *-a file.pdf *-c b...@dealer.com *j...@customer.com
> exit
>
> Objective: Not having to interact with 'mutt'.
> * * * * * *Ability to "attach" a PDF file
>
> The above example, when executed, goes into an interactive mode.
> mutt -s "SUBJECT HEADER" j...@customer.com < file.pdf *
> This example does not solve the -[a]ttachment PDF issue.
>
> Any ideas? *
> - Jeff H


Don't use mutt. Use the "mpack" utility to generate concatenatable
files, and feed them to /bin/mail. Using a complex and pecular mail
client such as mutt for system operations and non-interactice
operations is begging for pain.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-28-2008, 04:36 AM
Bill Campbell
 
Posts: n/a
Default Re: mutt -a redirect

On Thu, Mar 27, 2008, Nico Kadel-Garcia wrote:
>On 27 Mar, 12:17, Jeff Hyman <scol...@cactus.com> wrote:
>> MUTT shell script question: * *SCO 5.0.6 * *mutt v1.5.3i
>>
>> :
>> mutt -s "SUBJECT HEADER" *-a file.pdf *-c b...@dealer.com *j...@customer.com
>> exit
>>
>> Objective: Not having to interact with 'mutt'.
>> * * * * * *Ability to "attach" a PDF file
>>
>> The above example, when executed, goes into an interactive mode.
>> mutt -s "SUBJECT HEADER" j...@customer.com < file.pdf *
>> This example does not solve the -[a]ttachment PDF issue.
>>
>> Any ideas? *
>> - Jeff H

>
>Don't use mutt. Use the "mpack" utility to generate concatenatable
>files, and feed them to /bin/mail. Using a complex and pecular mail
>client such as mutt for system operations and non-interactice
>operations is begging for pain.


The ``mpack'' I find with a Google search is a rather nasty piece
of malware.

Unless your mpack generates proper multipart MIME, the e-mail
files will be difficult to handle with any modern mail client
(uuencode is also deprecated).

Bill
--
INTERNET: bill@celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676

During times of universal deceit, telling the truth becomes
a revolutionary act. --George Orwell
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-03-2008, 02:45 PM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: mutt -a redirect

On 28 Mar, 04:53, Bill Campbell <b...@celestial.com> wrote:
> On Thu, Mar 27, 2008, Nico Kadel-Garcia wrote:
> >On 27 Mar, 12:17, Jeff Hyman <scol...@cactus.com> wrote:
> >> MUTT shell script question: * *SCO 5.0.6 * *mutt v1.5.3i

>
> >> :
> >> mutt -s "SUBJECT HEADER" *-a file.pdf *-c b...@dealer.com *j...@customer.com
> >> exit

>
> >> Objective: Not having to interact with 'mutt'.
> >> * * * * * *Ability to "attach" a PDF file

>
> >> The above example, when executed, goes into an interactive mode.
> >> mutt -s "SUBJECT HEADER" j...@customer.com < file.pdf *
> >> This example does not solve the -[a]ttachment PDF issue.

>
> >> Any ideas? *
> >> - Jeff H

>
> >Don't use mutt. Use the "mpack" utility to generate concatenatable
> >files, and feed them to /bin/mail. Using a complex and pecular mail
> >client such as mutt for system operations and non-interactice
> >operations is begging for pain.

>
> The ``mpack'' I find with a Google search is a rather nasty piece
> of malware.
>
> Unless your mpack generates proper multipart MIME, the e-mail
> files will be difficult to handle with any modern mail client
> (uuencode is also deprecated).
>
> Bill
> --
> INTERNET: * b...@celestial.com *Bill Campbell; Celestial Software LLC
> URL:http://www.celestial.com/*PO Box 820; 6641 E. Mercer Way
> FAX: * * * * * *(206) 232-9186 *Mercer Island, WA 98040-0820; (206) 236-1676
>
> During times of universal deceit, telling the truth becomes
> a revolutionary act. *--George Orwell- Hide quoted text -
>
> - Show quoted text -


I'm referring to the product at Skunkware:
ftp://ftp2.sco.com/pub/skunkware/osr...k-1.5-VOLS.tar

It's also a standard product used in modern Linux systems for mime
encapsulation of files from the command line.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-03-2008, 02:45 PM
Brian K. White
 
Posts: n/a
Default Re: mutt -a redirect


----- Original Message -----
From: "Bill Campbell" <bill@celestial.com>
Newsgroups: comp.unix.sco.misc
To: <sco-misc@lists.celestial.com>
Sent: Friday, March 28, 2008 12:53 AM
Subject: Re: mutt -a redirect


> On Thu, Mar 27, 2008, Nico Kadel-Garcia wrote:
>>On 27 Mar, 12:17, Jeff Hyman <scol...@cactus.com> wrote:
>>> MUTT shell script question: SCO 5.0.6 mutt v1.5.3i
>>>
>>> :
>>> mutt -s "SUBJECT HEADER" -a file.pdf -c b...@dealer.com j...@customer.com
>>> exit
>>>
>>> Objective: Not having to interact with 'mutt'.
>>> Ability to "attach" a PDF file
>>>
>>> The above example, when executed, goes into an interactive mode.
>>> mutt -s "SUBJECT HEADER" j...@customer.com < file.pdf
>>> This example does not solve the -[a]ttachment PDF issue.
>>>
>>> Any ideas?
>>> - Jeff H

>>
>>Don't use mutt. Use the "mpack" utility to generate concatenatable
>>files, and feed them to /bin/mail. Using a complex and pecular mail
>>client such as mutt for system operations and non-interactice
>>operations is begging for pain.

>
> The ``mpack'' I find with a Google search is a rather nasty piece
> of malware.
>
> Unless your mpack generates proper multipart MIME, the e-mail
> files will be difficult to handle with any modern mail client
> (uuencode is also deprecated).



He means this,
ftp://ftp.andrew.cmu.edu/pub/mpack/
and the sco binary here:
http://www.aljex.com/bkw/sco/#mpack

Whos pupose is just exactly that, to non-interactively assemble files and command line arguments into a mime encoded email. It's somewhat smaller and lighter than mutt since it's not also an interactive curses mail client with all that implies. I use it a lot, however, I think mutt is a fine way to go since it is far more common.
I have to say that lightmail is really excellent too.
http://lightmail.fairlite.com/index.shtml


--
Brian K. White brian@aljex.com http://www.myspace.com/KEYofR
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:12 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145