bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enhancement of ticket_t API.


From: Alain Magloire
Subject: Re: Enhancement of ticket_t API.
Date: Thu, 15 Nov 2001 11:39:01 -0500 (EST)

> 
> Bon soir!
> 
> Produtive night for me :-)
> 
> --
> 
> Ok, I tried to integrate it.
> 
> However, what would make me blissful is to be able to do:

8-)

> (sieve.c)
> int
> mu_save_to (const char *toname, message_t mesg, const char **errmsg)
> {
...
> }
> 
> The mailbox url had ticket material, or it didn't, there was a
> ~/.tickets, or there wasn't, either way, not my problem!
> 
> The alternative is to do a url_parse() on toname, see if it is missing
> all the auth stuff it needs, and see if there is enough for me to call the
> wicket_get_ticket().
> 
> I've attached a hack to your wicket, note that it can't work because
> the ticket doesn't know what url it is being asked about.
> 
> There's a comment to that effect.
> 

Ok, I see where you are going.
How about to go back to the orginal:
        wicket_get_ticket (wicket, &ticket);

This will require some surgery, mainly to redefine ticket_pop() to
ticket_pop (ticket_t ticket, url_t url,
            const *char challenge, char **result);

This should give enough info to the ticket_pop () callback
to fetch the righ information in the file "home/alain/.tickets"

> Do you think you could get it to work?

Yes.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]