From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Gardella Newsgroups: gmane.emacs.help Subject: Re: What's needed in .emacs on w32 build to send bug report thru the *mail-to- bug-gnu-emacs@gnu.org* buffer Date: Fri, 02 Nov 2012 18:03:31 -0400 Organization: Aioe.org NNTP Server Message-ID: <87ip9ny85o.fsf@gmail.com> References: <878vakzr51.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1351893913 5138 80.91.229.3 (2 Nov 2012 22:05:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2012 22:05:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 02 23:05:22 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TUPMf-0002SX-9U for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Nov 2012 23:05:21 +0100 Original-Received: from localhost ([::1]:52341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUPMW-0008NC-1g for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Nov 2012 18:05:12 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 87 Original-NNTP-Posting-Host: sypdE5dyfWYz8sfAApD9Aw.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:vnCbuLNyxHG88EDYRvWxGQgQLnQ= Original-Xref: usenet.stanford.edu gnu.emacs.help:195195 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87524 Archived-At: Hi Ed, "B. T. Raven" writes: > Thanks, William. I will reread that info section before I try to mail > through Emacs again. I'm sure that the port assignment is at least part > of the problem. My Tbird client is using port 995 on pop.gmail.com > server for TLS and 465 for outgoing smtp. This is the relevant section > in .emacs: > > > (setq smtpmail-default-smtp-server "smtp.gmail.com") > (setq smtpmail-local-domain "gmail.com") ;; was nil ??? > (setq send-mail-function 'smtpmail-send-it) > (setq smtpmail-smtp-service 465) ;;; port assigned in Tbird outgoing ;;; > server (smtp) > (load-library "smtpmail") `smtpmail-local-domain' does not need to be set. (you do, however, need to set `smtpmail-smtp-server'. > (setenv "MAILHOST" "pop.gmail.com") > ;;; ^^ the above doesn't seem to change the w64 env as revealed by the > set command or in Control Panel > System That setting is not exported to your w64 environment. It should be exported to anything run under Emacs, however. > My isp uses gmail for spam filtering and my normal email is not a > ...@gmail.com but one from my isp. If I wanted to point to port 995 > instead of 25, where would that go in my .emacs? The exact line for the pop setting would depend on what mail client you're using (Rmail, Gnus, Mew, Wanderlust, etc.). smtpmail.el only handles the outgoing end of things; it's modular and can be used with many different Elisp programs for *reading* the mail. > I thought mta's were like postfix, exim, etc. Yes, those are big sophisticated MTAs. There are also simpler examples, such as msmtp, nullmailer, etc. that are strictly to forward outgoing messages to an SMTP server. For submission of outgoing mail, MTAs of both kinds provide a replacement for the (now deprecated) "sendmail" program, which is what I was talking about there. Emacs can leverage that, just as other mailers like Mutt do. > I tried to get gnus working quite a while ago but gave up due to the > steep learning curve. I still have this Gnu's relevant stuff in my > .emacs but unfortunately I don't understand it (especially where > load-library should be called): > > (setq gnus-posting-styles > '( > ((message-news-p) > (address "btraven@nihilo.net") ;; bogus address > (name "B.T. Raven")) > ((message-mail-p) > (address "e@s.net") > (name "Ed C.")) ) ) > > (setq user-full-name "Ed C.") > (setq user-mail-address "e@s.net") > > (setq rmail-primary-inbox-list > '("e@s.net") rmail-pop-password-required t) > (setq gnus-check-new-newsgroups nil) > (load-library "message") > (setq message-send-mail-function 'smtpmail-send-it) This snippet is a somewhat confusing hybrid of setting up Rmail and setting up Gnus. It doesn't look quite complete for either. :) The placement of the library load for message is not especially important. In fact, here (Gnus 5.13/Emacs 24.2.1 on Debian GNU/Linux), I never explicitly load message in my .emacs. (It does already have some autoloads in your site init file, since message is part of the default Emacs distribution). For a setup like this, using POP, you might look at this as a basis and make modifications to your local setup as needed: http://eschulte.me/emacs24-starter-kit/starter-kit-gnus.html Hope this clarifies some things, WGG -- I use grml (http://grml.org/)