Package: w3m-el-snapshot Version: 1.4.393+0.20100421-1 Severity: normal I set up w3m-cookie-reject-domains, adding "google.com" and ".google.com" but google.com still installs its cookies. After checking w3m-cookie.el I found that problem might be in w3m-cookie-trusted-host-p function; lines 291-294
> ((eq (string-to-char (car reject)) ?.) > (setq regexp (concat (regexp-quote (car reject)) "$"))) > (t (setq regexp (concat "^" (regexp-quote (car reject)) "$")))) > (when (string-match (concat regexp "$") host) Here host (for example, ".google.com" is compared with > (concat (concat (regexp-quote ".google.com") "$") "$") which gives "\\.google\\.com$$"; string-match returns nil because of double $ in the end of regexp. If last concat is removed, all seems to be right:
Index: w3m-el-snapshot-1.4.393+0.20100421/w3m-cookie.el =================================================================== --- w3m-el-snapshot-1.4.393+0.20100421.orig/w3m-cookie.el 2010-05-22 12:52:53.000000000 +0400 +++ w3m-el-snapshot-1.4.393+0.20100421/w3m-cookie.el 2010-05-22 12:57:13.000000000 +0400 @@ -291,7 +291,7 @@ ((eq (string-to-char (car reject)) ?.) (setq regexp (concat (regexp-quote (car reject)) "$"))) (t (setq regexp (concat "^" (regexp-quote (car reject)) "$")))) - (when (string-match (concat regexp "$") host) + (when (string-match regexp host) (setq rlen (length (car reject)) reject nil)) (pop reject))
w3m-el package also seems to have this problem. -- Fedor. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-3-amd64 (SMP w/1 CPU core) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages w3m-el-snapshot depends on: ii apel 10.7+0.20080906-2 portable library for emacsen ii dpkg 1.15.7.1 Debian package management system ii emacs 23.2+1-2 The GNU Emacs editor (metapackage) ii emacs23-lucid [emacs23 23.2+1-2 The GNU Emacs editor ii install-info 4.13a.dfsg.1-5 Manage installed documentation in ii w3m 0.5.2-4 WWW browsable pager with excellent Versions of packages w3m-el-snapshot recommends: ii apel 10.7+0.20080906-2 portable library for emacsen ii flim 1:1.14.9+0.20100313-2 library about internet message for Versions of packages w3m-el-snapshot suggests: ii bzip2 1.0.5-4 high-quality block-sorting file co ii imagemagick 7:6.6.0.4-2 image manipulation programs pn libmoe1.5 <none> (no description available) pn mule-ucs <none> (no description available) pn namazu2 <none> (no description available) ii perl-doc 5.10.1-12 Perl documentation ii poppler-utils [xpdf-utils] 0.12.4-1 PDF utilitites (based on libpopple pn ppthtml <none> (no description available) ii wv 1.2.4-2 Programs for accessing Microsoft W ii xlhtml 0.5.1-6 A program for converting Microsoft -- no debconf information