[sylpheed:31516] Re: [Libsylph] Account preferences, and more...
hiro-y at kcn.ne.jp
Wed Jul 11 11:43:46 JST 2007
On Tue, 10 Jul 2007 13:24:37 +0200
Massimiliano Calamelli <mcalamelli at gmail.com> wrote:
> Hi all, i'm going on with E-Mail (now i've a svn repo
> http://code.google.com/p/e-mail and commit monitor
> http://cia.vc/stats/project/E-Mail , wow!), and atm it basically works
> like an "MH mailbox browser". Now i've done a 1st run wizard, in order
> to collect some data from user; i've choose to make a simple setup,
> and i need these data:
> 0) account name (required)
> 1) email (required)
> 2) pop3 server (required)
> 3) pop3 username
> 4) pop3 password
> 5) smtp server (required)
> 6) smtp username
> 7) smtp password
> Now i've to save it.
> Here's my questions:
> 0) the set of data i've choose to get is less than all data that
> libsylph can manage: these data are sufficient?
They are okay for normal POP3 accounts. In addition to them, I would
want full name (in your case, "Massimiliano Calamelli").
> 1) have you a small example related to storing account prefs? Or a
> list of functions that i've to use?
Very simple example:
account = prefs_account_new(); /* account is filled with default values */
/* modify members of account */
account->account_name = g_strdup("Test");
account->address = g_strdup("foo at bar.baz");
account->protocol = A_POP3;
account_append(account); /* append to internal account list */
account_write_config_all(); /* save all accounts to configuration file */
> 2) Atm still no traslation of libsylph docs?
Sorry, not yet. Until then, please look at Sylpheed's code ;)
Hiroyuki Yamamoto <hiro-y at kcn.ne.jp>
More information about the Sylpheed