mutt in filepro and file permission

Richard D. Williams richard at axzas.com
Thu Dec 31 12:44:29 PST 2009


Scott,

Yes, you can use a system command within filepro to set the permissions .

(fn is the filename)
Just use,  system  "chmod 755"<fn

I created a login permission file for each user and create a text file in
/appl/MUTT for that user so I can call that mutt file in the mutt command
line..
g is the user @ID
EMAIL_TO is the email addrsss or addresses

g="richard"
EMAIL_TO="richard at appgrp.net cyndi at appgrp.net"

system "echo \"this is a test\" | mutt -F /appl/MUTT/"{g<"-s \"Subject
line\" -a /tmp/attachment.PDF -a /tmp/attachment.csv"<EMAIL_TO

sample /appl/MUTT/richard:
set hostname=axzas.com
my_hdr From:richard at axzas.com
set realname="Richard D. Williams"

I hope this helps,

Richard D. Wiliams

> filePro 5.0.13 on SCO 6
>
> I am trying to use mutt on a system line in filePro to send an email
> with a PDF attachment.  The PDF file is on a shared drive and is created
> by a windows program and it get;s the permission of the username that is
> logged into windows.  Even though the shared folder is owned by filePro,
> using a chmod on the system line will not change the permissions, and
> mutt will not pickup the file to attach.
>
> I need to change the permission on the PDF file, or perhaps do a script
> that filePro will call that will run mutt, keeping the same user name as
> who is logged in and using filePro to be the from name.  The PDF file is
> Not created by the user, but by a different filename and a program that
> runs on windows as that other user.
>
> I hope that my ramblings are clear, and I accept all ideas graciously.
>
> Happy New Year to All.
>
> Scott
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>
>




More information about the Filepro-list mailing list