Pine arguments

Pine arguments

Post by Michael Thoma » Mon, 05 Jun 2000 04:00:00



Hi there

I am currently developing an address book program
 http://asmodeus.linuxave.net )

I want to include support for e-mail but I am having a bit of a problem.
When you start pine from the command line you can type:


that I can run pine this way from within my program?

i tried to use system() as in:

 char email[50] = "emailaddress";
 system("pine %s", emailaddress);

but this approach didn't work since system() only accepts one argument.

Please help!!  I would really appreciate it

Thanks alot
Michael

 
 
 

Pine arguments

Post by Andreas Kaha » Mon, 05 Jun 2000 04:00:00




>Hi there

>I am currently developing an address book program
> http://asmodeus.linuxave.net )

>I want to include support for e-mail but I am having a bit of a problem.
>When you start pine from the command line you can type:


>that I can run pine this way from within my program?

>i tried to use system() as in:

> char email[50] = "emailaddress";
> system("pine %s", emailaddress);

char command[80]; /* this will hold the command line */
snprintf(command, 80, "pine %s", email); /* generate command line */
system(command); /* execute command line */

Might work (untested).

/A

--
# Andreas K?h?ri, <URL:http://hello.to/andkaha/>.
# All junk e-mail is reported to the
# appropriate authorities, no exceptions.

 
 
 

Pine arguments

Post by Amic » Mon, 05 Jun 2000 04:00:00



> i tried to use system() as in:
>  char email[50] = "emailaddress";
>  system("pine %s", emailaddress);
> but this approach didn't work since system() only accepts one argument.

Build a string using sprintf() or the like and pass that to system()
instead.

--
Eric Amick
Columbia, MD

 
 
 

1. Pine 3.95 and pine.conf/pine.conf.fixed

Hello all,

Just a quick question for today.  I recently installed q-mail on my
system to replace sendmail.  One of the things required by this install
is moving the mail folders to the users directories.  System is FreeBSD
2.1.5-Release, Pine is version 3.95.

I would like to set up Pine to default to a file (Mailbox) in the user's
home directory.  I know I need to set inbox-path=Mailbox but for some
reason Pine seems to ignore it's system wide configuration file.  If you
specify the system wide file, it works fine.

I've got pine.conf in /usr/local/lib/ as specified as the default
location for the global config file in the man pages....  Where'd I go
wrong?

Thanks for any pointers!!

-Dave

PS: An e-mailed reply in addition to a follow up post is greatly
appreciated as my news feed isn't all that great ;)

--
~|~|_  _   |  _  _ _|   _  |`  /~`|_  _  _  _
 | | |(/_  |_(_)| (_|  (_)~|~  \_,| |(_((_)_\
Ever been to the Realm of Chaos? Check it out!!

2. can't compile with gcc

3. Why is pine(elf) much slower than pine(a.out)?

4. cdrecord multisession for HP 8100 CD Writer+

5. argument parser strips out " in arguments

6. Disabling header page for remote printing

7. script questions - passing argument as argument to another program

8. Parsing strings via shell vars?

9. newbie: (command and its arguments) as a sh script argument

10. Taking arguments from pipe 'plus' one more argument

11. pushd <no arguments> versus cd <no arguments>

12. The argument to end all pro-Linux arguments

13. RedHat 5.0 && Pine 3.96: Another Pine is accessing Inbox. Session now Read-Only.