From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32134 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: mail-sources strangeness Date: 13 Aug 2000 20:42:20 +0200 Organization: Programmerer Ingebrigtsen Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035168455 18027 80.91.224.250 (21 Oct 2002 02:47:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:47:35 +0000 (UTC) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id 45669D051E for ; Sun, 13 Aug 2000 14:42:03 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id NAC10697; Sun, 13 Aug 2000 13:41:57 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 13 Aug 2000 13:39:53 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id NAA08498 for ; Sun, 13 Aug 2000 13:39:42 -0500 (CDT) Original-Received: from quimby.gnus.org (quimby.gnus.org [195.204.10.139]) by mailhost.sclp.com (Postfix) with ESMTP id 85B2BD051E for ; Sun, 13 Aug 2000 14:40:08 -0400 (EDT) Original-Received: (from news@localhost) by quimby.gnus.org (8.9.3/8.9.3) id UAA26018 for ding@gnus.org; Sun, 13 Aug 2000 20:41:19 +0200 (CEST) Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 39 Original-NNTP-Posting-Host: ti01a01-0031.dialup.online.no Original-X-Trace: quimby.gnus.org 966192078 26783 130.67.3.31 (13 Aug 2000 18:41:18 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 13 Aug 2000 18:41:18 GMT Mail-Copies-To: never X-Now-Playing: Oval's _94diskont_: "Do While (Command X)" User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 X-Face: &w!^oO~dS|}-P0~ge{$c!h\ `mail-sources' uses pop3-movemail if nothing is specified, right? Well, no. :-) If nothing is specified, it kinda calls another function (well, progn, but in Emacs Lisp there's not much of a difference) which then calls pop3-movemail. > So > the following two behave the same, right? > > (setq mail-sources '((pop :user "foo" :server "bar")) > (setq mail-sources '((pop :user "foo" :server "bar" :function pop3-movemail)) > > Wrong. Yup. > I think there should be a specified protocol for passing the necessary > information to the function: user name, host name, password, port, > authentication scheme. It's not clear to me how a function is > supposed to get at these values, anyway. (Well, there is > `mail-source-bind' which might do this, but it's not easy to > understand what that does... Hm. It appears to provide defaults for > the colon keywords.) Yup. > Whichever scheme is chosen, it should be documented, I think. And > there should be a function which can be put in like `:function foo' > such that the default behavior is chosen. Well, OK, but the function will just look like the progn there, with a defun before it. Emacs Lisp has nice dynamic variables, so they should be used. :-) -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen