Subject: 23.2; password-cache and smtpmail useless default

From: Shawn Betts <[email-masked]>
Date: Wed, 16 Jun 2010 12:20:09 -0700

The default value for password-cache-expiry is 16 seconds. smtpmail uses
password-cache to save the password. However, since it expires 16
seconds after its cached it never functionally stores my password. The
next time I send an email I always have to enter my password which
doesn't seem right.

Obviously, I just set my password-cache-expiry to nil to fix the problem
but it strikes me that 16 seconds is a useless default for
smtpmail. Perhaps password-cache-add should have an optional
cache-expiry-override variable.

In GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.29)
 of 2010-05-08 on black.local
Windowing system distributor `Apple', version 10.3.949
configured using `configure  '--host=x86_64-apple-darwin' '--build=i686-apple-darwin' '--with-ns' 'build_alias=i686-apple-darwin' 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.5''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  shell-dirtrack-mode: t
  show-paren-mode: t
  iswitchb-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<return> C-n C-n C-x C-e C-x o C-M-a C-M-a C-M-a C-l 
C-p C-n M-f M-f M-f C-M-b C-SPC C-M-f M-w C-x 4 b s 
c r <return> C-x b . e m <return> M-> <return> ( s 
e t q SPC C-y SPC n i l ) C-a C-o ; ; SPC p a s s w 
o r d SPC c a c h i n g M-b M-b s m p t <backspace> 
<backspace> t p m a i l SPC u s e s SPC C-e SPC a n 
d SPC i t SPC d e f a u l s t <backspace> <backspace> 
t s SPC i n <backspace> t o <backspace> <backspace> 
<backspace> t o SPC 1 6 SPC s e c o n d s SPC w h i 
c h SPC i s SPC u s e l e s s . M-q C-a C-l C-n C-e 
C-x C-e M-> <return> C-x C-s C-x b <down-mouse-1> <mouse-1> 
C-g C-x o C-x o C-g C-x m e m a c s M-x C-g C-x k <return> 
y e s <return> M-x r e p o r t - e m <tab> <return

Recent messages:
nil
Mark set [3 times]
nil
"hi" [2 times]
Mark set [4 times]
nil
Mark set
Saving file /Users/sabetts/.emacs...
Wrote /Users/sabetts/.emacs
Quit [3 times]
Quit

Load-path shadows:
~/elisp/apel-10.7/timezone hides /Applications/Emacs.app/Contents/Resources/lisp/timezone
~/elisp/semi-1.14.6/pgg hides /Applications/Emacs.app/Contents/Resources/lisp/pgg
~/elisp/semi-1.14.6/pgg-pgp5 hides /Applications/Emacs.app/Contents/Resources/lisp/pgg-pgp5
~/elisp/semi-1.14.6/pgg-pgp hides /Applications/Emacs.app/Contents/Resources/lisp/pgg-pgp
~/elisp/semi-1.14.6/pgg-parse hides /Applications/Emacs.app/Contents/Resources/lisp/pgg-parse
~/elisp/semi-1.14.6/pgg-gpg hides /Applications/Emacs.app/Contents/Resources/lisp/pgg-gpg
~/elisp/semi-1.14.6/pgg-def hides /Applications/Emacs.app/Contents/Resources/lisp/pgg-def
~/elisp/apel-10.7/env hides /Applications/Emacs.app/Contents/Resources/lisp/env
~/elisp/rst hides /Applications/Emacs.app/Contents/Resources/lisp/textmodes/rst
~/elisp/wl-2.14.0/elmo/utf7 hides /Applications/Emacs.app/Contents/Resources/lisp/gnus/utf7
~/elisp/semi-1.14.6/smime hides /Applications/Emacs.app/Contents/Resources/lisp/gnus/smime
/Applications/Emacs.app/Contents/Resources/lisp/mail/smtpmail hides ~/elisp/flim-1.14.8/smtpmail
/Applications/Emacs.app/Contents/Resources/lisp/sha1 hides ~/elisp/flim-1.14.8/sha1
/Applications/Emacs.app/Contents/Resources/lisp/net/sasl hides ~/elisp/flim-1.14.8/sasl
/Applications/Emacs.app/Contents/Resources/lisp/net/sasl-ntlm hides ~/elisp/flim-1.14.8/sasl-ntlm
/Applications/Emacs.app/Contents/Resources/lisp/net/sasl-digest hides ~/elisp/flim-1.14.8/sasl-digest
/Applications/Emacs.app/Contents/Resources/lisp/net/sasl-cram hides ~/elisp/flim-1.14.8/sasl-cram
/Applications/Emacs.app/Contents/Resources/lisp/net/ntlm hides ~/elisp/flim-1.14.8/ntlm
/Applications/Emacs.app/Contents/Resources/lisp/md4 hides ~/elisp/flim-1.14.8/md4
/Applications/Emacs.app/Contents/Resources/lisp/gnus/mailcap hides ~/elisp/flim-1.14.8/mailcap
/Applications/Emacs.app/Contents/Resources/lisp/net/hmac-md5 hides ~/elisp/flim-1.14.8/hmac-md5
/Applications/Emacs.app/Contents/Resources/lisp/net/hmac-def hides ~/elisp/flim-1.14.8/hmac-def
/Applications/Emacs.app/Contents/Resources/lisp/hex-util hides ~/elisp/flim-1.14.8/hex-util

Features:
(shadow emacsbug jka-compr auth-source starttls mailalias gnus-msg
gnus-art mm-uu mml2015 epg-config mm-view smime gnus-sum nnoo gnus-group
gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range
gnus-win gnus gnus-ems sort mail-extr message ecomplete rfc822 mml
mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse
rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util
netrc mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1
hex-util hashcash warnings mel-q-ccl mule-util help-mode view mel-b-ccl
wl-score elmo-internal newcomment compile dabbrev multi-isearch vc-git
ansi-color shell format-spec elmo-imap4 elmo-net elmo-dop elmo-cache
elmo-map modb-legacy modb-standard wl-mime mime-play filename mime-edit
pgg-parse pccl pccl-20 ccl pgg-def signature mail-utils mime-setup
mail-mime-setup semi-setup mime-image wl-demo wl-draft eword-encode
wl-template wl-news wl-address wl-thread wl-action wl-summary ps-print
ps-def lpr wl-refile wl-message elmo-mime mmelmo-buffer mmelmo-imap
mime-view mime-conf calist semi-def mmimap mime-parse mmbuffer mmgeneric
wl-highlight elmo-multi wl-folder wl wl-e21 wl-util elmo-flag
elmo-localdir wl-vars wl-version elmo elmo-signal elmo-msgdb modb
modb-generic modb-entity mime elmo-util emu invisible inv-19 poem
poem-e20 poem-e20_3 utf7 eword-decode mel mime-def alist std11 mcharset
mcs-20 mcs-e20 pces pces-e20 pces-20 broken pcustom elmo-date path-util
elmo-vars poe elmo-version luna smart-tab bbdb-autoloads bbdb timezone
pym static apel-ver product slime-repl slime byte-opt bytecomp
byte-compile derived apropos hideshow pp comint hyperspec thingatpt
browse-url git log-edit easy-mmode pcvs-util add-log ewoc find-func
info-look info cl cl-19 ssl tls smtpmail sendmail uniquify advice
help-fns advice-preload edmacro kmacro rcirc time-date ring paren
dired-x dired-aux dired regexp-opt iswitchb tooltip ediff-hook vc-hooks
lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev loaddefs button minibuffer faces cus-face files text-properties
overlay md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process ns multi-tty
emacs)