Welcome, Guest. Please login or register.

Login with username, password and session length
Pages: [1]   Go Down
Print
Author Topic: Newbie needs Help coding for FilePro 5.0/Mutt/Linux  (Read 1622 times)
0 Members and 1 Guest are viewing this topic.
jmchap1
Member

Posts: 1


View Profile
« on: December 21, 2006, 10:29:47 AM »

I have never used FilePro but have an application that I support. We need to move
it to Linux from UNIX SCO. With Rays help I found out that the USER command does
not work with Linux to execute Mutt. I needed to use the SYSTEM command. The problem
I am having now is within the code there is a variable??? (not sure) named emx.

I do not know where to find what emx means equals???

I changed lines 3 and 4 and 5.



    þ If:                                                                   þ
       Then: errorbox "nemail"                                                 þ
  2  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   
       þ If:                                                                   þ
       Then: declare extern EMailTo                                            þ
  3  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   
       þ If:                                                                   þ
       Then: system "/usr/bin/mutt -s\"spice-order\""<EMailTo<"</bin/spcmail"  þ
  4  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   
       þ If:                                                                   þ
       Then: beep;errorbox "Could not create email for"<(EMailTo){"!";end      þ
  5  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   
       þ If:                                                                   þ
       Then: "** PLEASE DO NOT REPLY TO THIS NOTE **"                          þ
  6  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   
       þ If:                                                                   þ
       Then: emx = ""                                           
  7  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   
       þ If: 2 = ""                                                            þ
       Then: emx = ""{3 & "                      " & 13                        þ
  8  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   
       þ If: 2 ne ""                                                           þ
       Then: emx = ""{3 & "                      " & 13                        þ
  9  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   
       þ If:                                                                   þ
       Then: emx = ""                                                          þ
 10  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   
       þ If:                                                                   þ
       Then: emx = "This is to confirm that your order has been received.  Plea>
 11  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   
       þ If:                                                                   þ
       Then: emx = "be advised that log number"<1<"has been assigned to your or>
 12  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   
       þ If:                                                                   þ
       Then: emx = "When inquiring about your order pleas refer to this number.>

*** A filePro Error Has Occurred ***                                           
                                                                               
Line Number: 5                                                                 
                                                                               
"** PLEASE DO NOT REPLY TO THIS NOTE **"                                       
^                                                                             
Process contains a syntax error at position indicated.
Logged
Chris Henschen
Administrator

Posts: 5


View Profile WWW
« Reply #1 on: December 21, 2006, 04:50:50 PM »

The issue you have with line 5, is it's neither a command or comment.  To make it a comment use the single quote under the double quote.  If you are attempting to place this in the value of emx you'll have to add emx= in front of the quote.

I'm guessing you wish to have lines 5-12 in the body of you message?  If this is the case you'll have to combine the values of emx. (This assumes the fields length is long enough)

ex change for line 17:
emx=emx{"\n"{3&"    "&13

Another method I usually do, is run my mutt as a printer and call the printer in SCO Unix versions.

printer1: mail2,nocodes,|/usr/local/bin/mutt -x -F "$MRCFILE" -s "$SUBJECT" $EMAIL

Then in processing I assign PFPRINTER=mail2, and use PUTENV and assign the values for MRCFILE, SUBJECT, and EMAIL  the form results become the body.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Valid XHTML 1.0! Powered by SMF 1.1.15 | SMF © 2011, Simple Machines | Massive Blue Theme By Cadosoas Valid CSS!