diff options
author | Peter Williams <peterw@ximian.com> | 2001-07-27 23:36:42 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2001-07-27 23:36:42 +0800 |
commit | 4157d65284dfe6d8547bd2176cbe48f13f08bc5a (patch) | |
tree | 56253d8bab379800f6c17f651f3c385077f32d62 /mail/mail-config.c | |
parent | 68481415b4bd4eca6ed941cd34b90db5fef70b55 (diff) | |
download | gsoc2013-evolution-4157d65284dfe6d8547bd2176cbe48f13f08bc5a.tar.gz gsoc2013-evolution-4157d65284dfe6d8547bd2176cbe48f13f08bc5a.tar.zst gsoc2013-evolution-4157d65284dfe6d8547bd2176cbe48f13f08bc5a.zip |
Figure out whether we're getting the password for the source or the
2001-07-26 Peter Williams <peterw@ximian.com>
* mail-mt.c (do_get_pass): Figure out whether we're getting the password
for the source or the transport, and get the toggle button accordingly.
(pass_got): Same.
* mail-config.c (mail_config_get_account_by_transport_url): New function.
Cut + paste + search + replace of _by_source_url.
* mail-config.h: Prototype here.
svn path=/trunk/; revision=11446
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c index 48e735814f..e88c9a5a1f 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -1326,6 +1326,29 @@ mail_config_get_account_by_source_url (const char *source_url) return NULL; } +const MailConfigAccount * +mail_config_get_account_by_transport_url (const char *transport_url) +{ + const MailConfigAccount *account; + GSList *l; + + g_return_val_if_fail (transport_url != NULL, NULL); + + l = config->accounts; + while (l) { + account = l->data; + if (account + && account->transport + && account->transport->url + && e_url_equal (account->transport->url, transport_url)) + return account; + + l = l->next; + } + + return NULL; +} + const GSList * mail_config_get_accounts (void) { |