euglug.org

[Eug-lug] OT attachments to email

작성자

카테고리:



beaker at myrealbox.comThu Aug 4 17:43:39 PDT 2005

larry price <laprice at gmail.com> wrote:

> On 8/4/05, Fred James <fredjame at fredjame.cnc.net> wrote:
> > All
> > This a bit off topic, but it does start with Unix.  The question first,
> > and then the details for those who are interested.
> > 
> > Question:
> >  From a Unix system, I need to send script generated email to a list of
> > addresses with an attachment.  The recipients are a mixed bag - PC and
> > MAC users, and some use Notes as their mail client.  As detailed below,
> > the result for some MAC/Notes user is less than satisfactory when I use
> > 'uuencode'.  Can anyone suggest another route, or some documentation,
> > please?  Or is this just a hopeless case of non-interoperability?
> > 
>
> is base64 encoding more palatable?
>
> generating well formed MIME attachments is tricky, I have had the most
> success using python's Email package to solve that prob.
>
Is it possible for you to install and use 'nail' - a MIME-compliant
replacement for mail/mailx ?  If so you can then do away with the
uuencode thing which, IIRC, is for sending attachments to
non-MIME-compliant clients - which none of your "customers" are I
bet.