Subject: running pine non-interactively

From: Dan Bell <[email-masked]>
Date: Fri, 13 Apr 2001 12:01:44 -0400 (EDT)

I am running 4.33 on SunOS 5.7, and have been using it for a few months.

I would like to use pine to send out attached files from within a
shellscript or C program.  I would like to do this without pine ever
starting from the user's point of view.  I used to use mailx for this,
e.g. "mailx user@domail < letterfile", but cannot do attachments with
mailx easily.

So far, I have tried "pine user@domain -attach attachfile < letterfile".

This gets everything I want there, and fires up pine in composer mode.  I
really would just like to send the ^X to send the message at that point.

I thought the -I command line option was the answer, but find that you
cannot give the composer commands using it.

Am I missing something?

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Mohit Agarwal <[email-masked]>
Date: Fri, 13 Apr 2001 22:01:44 +0530 (IST)

*** Dan Bell wrote today at 12:01 -0400:

: I would like to use pine to send out attached files from within a
: shellscript or C program.  I would like to do this without pine ever
: starting from the user's point of view.  I used to use mailx for this,
: e.g. "mailx user@domail < letterfile", but cannot do attachments with
: mailx easily.

: Am I missing something?

Yes, you are.  Check out Eduardo's patch for sending mail from the command
line:

   http://www.math.washington.edu/~chappa/pine/

-- 
Mohit Agarwal

---

From: "Daniel Sands" <[email-masked]>
Date: Fri, 13 Apr 2001 12:53:37 -0600

1) First of all, this is a FAQ that was asked only a couple of days ago.
2) You may get a patch to make Pine do what it's not intended to do, or
3) use mpack, a utility for sending mail noninteractively with attachments.