<html>
  <head>
    <meta content="text/html; charset=KOI8-R" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 9/22/2014 1:58 PM, Henry Arredondo
      wrote:<br>
    </div>
    <blockquote
cite="mid:BE94C54938AC674099C7E16911E286E231C971C6@LKQEXCHG01.LKQ.LKQX.NET"
      type="cite">
      <pre wrap="">-----Original Message-----
From: Filepro-list [<a class="moz-txt-link-freetext" href="mailto:filepro-list-bounces+hxarredondo=lkqcorp.com@lists.celestial.com">mailto:filepro-list-bounces+hxarredondo=lkqcorp.com@lists.celestial.com</a>] On Behalf Of Kenneth Brody
Sent: Monday, September 22, 2014 12:57 PM
To: Fairlight; <a class="moz-txt-link-abbreviated" href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>
Subject: Re: Mutt - filepro report processing - Unix

On 9/22/2014 1:16 PM, Fairlight wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">The user you are logged in as before you go into filePro is the one to
which the bash shell drops privileges between the SYSTEM() call and
the actual execution of mutt.

If that user did not have permissions for /usr2/henry/, this could
result in an inability to see anything being redirected in, and might
result in that message.

Are your permissions set appropriately?
</pre>
      </blockquote>
      <pre wrap="">
If the user didn't have access to that directory, then the shell would give an error on the redirect, and mutt would never even run.

[...]
</pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap="">Example :

/usr2/henry> umask 0
/usr2/henry> cal 2014 > 2014      # generates a file called 2014 with the 2014 calendar

Then a run the command and it works perfectly:

/usr2/henry> mutt -s subject <a class="moz-txt-link-abbreviated" href="mailto:henry@email.com">henry@email.com</a><a class="moz-txt-link-rfc2396E" href="mailto:henry@email.com"><mailto:henry@email.com></a>
< 2014

But this below will throw a "Could not send the message." Right after running the report.

63  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
        . If:                                                        .
        Then: system "cd /usr2/henry ; mutt -s Subject <a class="moz-txt-link-abbreviated" href="mailto:henry@vegena.net">henry@vegena.net</a> < 2014"
</pre>
        </blockquote>
      </blockquote>
      <pre wrap="">[...]

Are there any flags to mutt to have it give you more info beyond "I'm sorry, Dave, I can't do that"?  Perhaps an error log file with details?

--
Kenneth Brody


Ken,

I made the command even simpler and still no good.

63  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
       . If:
       Then: system "mutt -s Test <a class="moz-txt-link-abbreviated" href="mailto:henry@vegena.net">henry@vegena.net</a> < /dev/null"

I get a blank email when ran on the command line with subject test, but run from filepro all I get is:

                          
                           Email Shipment Packslip 
                          







                          Records Selected:         1

                         Generating Output:         1









                                        H
Could not send the message.




I checked Mutt's Man page but I don't see any logs at all. I even checked the system's mail log file but it's not showing any entry at the time of running the process.

Please consider the environment before printing
_______________________________________________
Filepro-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a>
Subscribe/Unsubscribe/Subscription Changes
<a class="moz-txt-link-freetext" href="http://mailman.celestial.com/mailman/listinfo/filepro-list">http://mailman.celestial.com/mailman/listinfo/filepro-list</a>
</pre>
    </blockquote>
    Henry,<br>
    <br>
    Mark is right. Try this ....<br>
    <br>
    <pre wrap="">system "cd /usr2/henry ; mutt -s <b><font color="#cc0000">\"</font></b>Subject<font color="#cc0000"><b>\"</b></font> <a class="moz-txt-link-abbreviated" href="mailto:henry@vegena.net">henry@vegena.net</a> < 2014"</pre>
    <br>
    Richard<br>
    <br>
  </body>
</html>