[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Howto specify password and AUTH field in POP url ?
From: |
Olivier Bornet |
Subject: |
Re: Howto specify password and AUTH field in POP url ? |
Date: |
Fri, 25 Oct 2002 16:55:36 +0200 |
User-agent: |
Mutt/1.4i |
Hello,
I will answer to myself for the archive...
> I can use for url something like :
>
> pop://user:address@hidden
>
> or:
>
> pop://user;address@hidden
>
> Can I "mix" both ? I have try without success. What I want is to have my
> program no asking the user for having his password (has I allready have
> it).
No, we can't mix it. See the documentation. ;-)
> How can I do this ?
To do this, you must set the "pop" function of the ticket attached to
the authority informations... Here is a quick guideline :
- get the folder of the mailbox with mailbox_get_folder()
- get the authority info of this folder with folder_get_authority()
- get the ticket attached to this authority info with
authority_get_ticket()
- set your new pop function with ticket_set_pop()
- optionnaly use ticket_set_data() to attach your password to the pop
function.
The pop function must look like :
int my_pop (ticket_t the_ticket, url_t url,
const char *challenge, char **pwd)
Just put the passwor in *pwd.
Good day.
Olivier
--
Olivier Bornet http://www.smartdata.ch/
address@hidden SMARTDATA SA
Phone: +41-27-723'55'03 Rue du Collège 5A
GPG key ID: C53D9218 CH-1920 Martigny
pgp8lxkSoK51p.pgp
Description: PGP signature