New applet: sendmail
Tito
farmatito at tiscali.it
Sat Feb 2 19:40:52 UTC 2008
On Saturday 02 February 2008 19:48:33 you wrote:
> Hello!
>
> I'm now developing in parallel to sendmail a simple fetchmail (or,
> better to say, getmail) applet. It's aimed to just dump the content of
> remote mailbox to local Maildir.
> Since it shares much code with sendmail (signal handling, openssl
> helper IPC, and so on) I would like to ask the list some questions.
>
> Will it be relevant to busybox?
>
> If so, should I just combine both applets as, e.g., swaponoff in one
> file or just make shared code non-static?
>
> If let them be combined, what is the best way to process options which
> are common for both applets (username, password, server, port, ...)?
> Is there a way to use getopt32 twice: one time for common options and
> second time for particular applet?
Hi,
maybe check the applet_name at startup and then
if (applet_name[0] == 'f')
getopt32(.............................);
else
getopt32(.............................);
Ciao,
Tito
> Plz, do answer.
>
> --
> Vladimir
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
>
More information about the busybox
mailing list