unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: 14271@debbugs.gnu.org
Cc: Monte Stevens <montkemp@yahoo.ca>
Subject: bug#14271: 24.3; MAILHOST set in mail-source.el when using pop3.el
Date: Fri, 26 Apr 2013 19:42:41 +0900	[thread overview]
Message-ID: <b4mzjwlbmji.fsf@jpl.org> (raw)
In-Reply-To: <8761za9may.fsf@cletus.six.dalnet.ca>

Katsumi Yamaoka wrote:
> (shell-command-to-string "echo -n $MAILHOST")
>  => ""

> (let* ((server "mail.example.com")
>        (process-environment (append (list (concat "MAILHOST=" server))
> 				    process-environment)))
>   (shell-command-to-string "echo -n $MAILHOST"))
>  => "mail.example.com"

> (let* ((server nil)
>        (process-environment (append (list (concat "MAILHOST=" server))
> 				    process-environment)))
>   (shell-command-to-string "echo -n $MAILHOST"))
>  => ""

> I've done it in this way.

Oops, it should also have been:

(setenv "MAILHOST" "mail.example.com")

(let* ((server nil)
       (process-environment (if server
				(append (list (concat "MAILHOST=" server))
					process-environment)
			      process-environment)))
  (shell-command-to-string "echo -n $MAILHOST"))
 => "mail.example.com"

Fixed.





  reply	other threads:[~2013-04-26 10:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-26  0:18 bug#14271: 24.3; MAILHOST set in mail-source.el when using pop3.el Monte Stevens
2013-04-26  2:37 ` Katsumi Yamaoka
2013-04-26  7:01   ` Glenn Morris
2013-04-26 10:22     ` Katsumi Yamaoka
2013-04-26 10:42       ` Katsumi Yamaoka [this message]
2013-04-26 13:26         ` Stefan Monnier
2013-04-26 13:56           ` Katsumi Yamaoka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4mzjwlbmji.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=14271@debbugs.gnu.org \
    --cc=montkemp@yahoo.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).