[mew-int 3138] Re: handling multiple smtp settings in one config file

Harald Hanche-Olsen hanche at example.com
Wed Feb 20 17:09:07 JST 2013


[Charles Muller <acmuller at example.com> (2013-02-20 03:54:01 UTC)]

> (if (file-exists-p "/mail-u-tokyo")
> (setq mew-smtp-port "25")
> (setq mew-smtp-server "mail.l.u-tokyo.ac.jp")
> )

The meaning of that is:
If /mail-u-tokyo exists,
then (setq mew-smtp-port "25")
otherwise (setq mew-smtp-server "mail.l.u-tokyo.ac.jp")

which is not what you want.

Replacing if by when will fix this.

Compare  C-h f if RET  with  C-h f when RET  for the details.

– Harald


More information about the Mew-int mailing list