Mutt question

Bill Campbell bill at celestial.com
Sun Oct 11 10:04:23 PDT 2009


On Sun, Oct 11, 2009, Tom Aldridge wrote:
>Here's another question resulting from moving our filePro stuff from an 
>older Fedora box to this new Fedora 11 box.
>
>We've been successfully emailing an attachment and bodytext using mutt 
>as follows:
>
>::        'now email it:
>::sc="sudo mutt":
>:                'build subject string
>::sc=sc <"-s" <"\"Aldridge Payroll W/E" <mid(d_week,"1","8"){"\""
>::                'build attachment string
>::sc=sc <"-a /appl/fpmerge/payroll/803_Payroll_"{d_week
>:                'build recipient and body string
>::sc=sc <"xyz at aldridgeinc.com < /appl/fpmerge/payrollemailtext":
>::system sc:
>
>Now on this new box, I get this:
>
>Can't stat xyz at aldridgeinc.com: No such file or directory
>xyz at aldridgeinc.com: unable to attach file.
>
>It's like the shell or mutt is interpreting the addressee as a file, it 
>obviously couldn't attach.
>
>Any insights would be greatly appreciated.

I would write a wrapper script that handles the mutt invocation
hiding the redirects from the invocation in FilePro.  The only
thing that seems to change here is the week, and possibly the
e-mail address while the file name doesn't change.  These
arguments don't contain whitespace so that eliminates the
necessity of dealing with quoting, and should make the call from
FilePro much simpler.  By using a wrapper, you can also change
the mailing method, say from mutt, to something that doesn't
depend on mutt (e.g. Mark's mail program) to do MIME attachments
per the recent thread here.

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

Manual, n.:
	A unit of documentation.  There are always three or more on a
	given item.  One is on the shelf; someone has the others.  The
	information you need is in the others.
		-- Ray Simard


More information about the Filepro-list mailing list