lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev [2.8.1dev24] one more cookie-file patch (.lynxrc, lynx.c


From: Leonid Pauzner
Subject: Re: lynx-dev [2.8.1dev24] one more cookie-file patch (.lynxrc, lynx.cfg)
Date: Sat, 5 Sep 1998 12:33:36 +0400 (MSD)

>      * From: pk <address@hidden>
>      * Date: Fri, 4 Sep 1998 21:26:33 -0700

> One more small patch re: cookie_file handling, this time one that adds
> a description of the cookie_file option to lynx.cfg and to the code in
> LYrcFile.c that creates .lynxrc.
>
> Against a clean dev24.
>
> Anyone who has better ideas for what to say as documentation here, jump
> right in...

It will be plain ignored
until you declare LYCookieFile in LYGlobalDefs.h and LYMain.c,
use LYCookieFile in Cookie.c, and declare COOKIE_FILE in LYReadCFG.c
Also I have not see where LYrcFile.c *read* cookie_file, or it should not?

>
> diff -cr 2.8.1dev.24/lynx.cfg 2.8.1dev.24.bri/lynx.cfg
> *** 2.8.1dev.24/lynx.cfg        Sat Aug 29 16:22:40 1998
> --- 2.8.1dev.24.bri/lynx.cfg    Fri Sep  4 20:57:11 1998
> ***************
> *** 787,792 ****
> --- 787,797 ----
>   #COOKIE_ACCEPT_DOMAINS:
>   #COOKIE_REJECT_DOMAINS:
>
> + # COOKIE_FILE is the default file to store persistent downloaded cookies
> + # in, if Lynx was compiled with EXP_PERSISTENT_COOKIES. The cookie file
> + # can also be specified in .lynxrc or on the commandline.
> + #COOKIE_FILE:~/.lynx_cookies
> +
>   # VMS:
>   #=====
>   # The mail command and qualifiers are defined in userdefs.h.  Lynx
> diff -cr 2.8.1dev.24/src/LYrcFile.c 2.8.1dev.24.bri/src/LYrcFile.c
> *** 2.8.1dev.24/src/LYrcFile.c  Tue Sep  1 19:00:43 1998
> --- 2.8.1dev.24.bri/src/LYrcFile.c      Fri Sep  4 21:01:13 1998
> ***************
> *** 892,897 ****
> --- 892,908 ----
>                          (user_mode == ADVANCED_MODE ?
>                                           "ADVANCED" : "INTERMEDIATE")));
>
> + #ifdef EXP_PERSISTENT_COOKIES
> +     /*
> +      * Cookie file.
> +      */
> +     fprintf(fp, "\
> + # cookie_file specifies the file in which to store persistent cookies.\n\
> + # The default is ~/.lynx_cookies.\n");
> +     fprintf(fp, "cookie_file=%s\n\n",
> +                 (LYCookieFile == NULL ? "~/.lynx_cookies" : LYCookieFile));
> + #endif /* EXP_PERSISTENT_COOKIES */
> +
>   #if defined(EXEC_LINKS) || defined(EXEC_SCRIPTS)
>       /*
>        *  Local execution mode - all links.
>
> --
> If you can't learn to do it well, learn to enjoy doing it badly.
> "Sendmail == peace of mind." -Louis-David Mitterrand
>      _________________________________________________________________
>
>      * Prev: Re: lynx-dev internal links
>      * Next: Re: lynx-dev LYNX: "&#151": em-dash?
>      * Index(es):
>           + Main
>           + Thread
>      _________________________________________________________________
>
>    Lynx mailing list archives
>
>    [FLORA HOME] [LYNX Home]
>
>


reply via email to

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