unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Ehud Karni" <ehud@unix.mvs.co.il>
Cc: help-gnu-emacs@gnu.org
Subject: Re: multiple pop-boxes in emacs
Date: Mon, 16 Feb 2004 16:18:24 +0200	[thread overview]
Message-ID: <200402161418.i1GEIO87017080@beta.mvs.co.il> (raw)
In-Reply-To: <20040216.133052.74747377.emacs@onecht.net> (message from Daan Hoogland on Mon, 16 Feb 2004 13:30:52 +0000 (GMT))

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 16 Feb 2004 13:30:52 +0000 (GMT), Daan Hoogland <emacs@onecht.net> wrote:
>
> I currently using mew. I want to open several mailboxes through
> pop3/pop3s or imap/imaps. I don't seem to be able to do this with
> mew. Can anybody tell me if this is at all possible with a emacs mail
> reader?

I use rmail and have defined a command that adds the mail from a pop
account into the rmail buffer.

(defun rmail-get-new-mail-from-pop (pop-host pop-user pop-pass)
  "Get mail from pop server into current rmail file
Accepts 3 parameters (strings):
    POP-HOST - host name of pop server
    POP-USER - login name of mail user
    POP-PASS - password of mail account"
  (interactive "sPOP host name: \nsUser name: \nsMail password: ")
       (let ((sv-host (getenv "MAILHOST"))
             (sv-p-inbox rmail-primary-inbox-list)
             (sv-pass rmail-pop-password)
             (rmail-pop-password-required (not (null pop-pass)))
            )
           (setq rmail-primary-inbox-list (list (concat "po:" pop-user)))
           (rmail-set-pop-password pop-pass)
           (setenv "MAILHOST" pop-host)            ;; pop host name
           (rmail)                                 ;; get mail from pop (rmail)
           (setq rmail-primary-inbox-list sv-p-inbox)
           (setq rmail-pop-password sv-pass)
           (setenv "MAILHOST" sv-host)))           ;; restore host name


I also defined a command for each of my pop mailbox like this:

(defun read-pop-acct-1  () "pop mail from account 1"
  (interactive)
       (require 'rmail)
       (rmail-get-new-mail-from-pop
           "pop.host.url" "acct" "passwd"))

Ehud.


- --
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D <http://www.keyserver.net/>    Better Safe Than Sorry
-----BEGIN PGP SIGNATURE-----
Comment: use http://www.keyserver.net/ to get my key (and others)

iD8DBQFAMNEvLFvTvpjqOY0RAj43AJ47t4WhS9NozAud7J1dSPQ/g6r0aACfZRdk
xbZeFiQPdZ1qQaoOD7/4134=
=Lofa
-----END PGP SIGNATURE-----

  reply	other threads:[~2004-02-16 14:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-16 13:30 multiple pop-boxes in emacs Daan Hoogland
2004-02-16 14:18 ` Ehud Karni [this message]
     [not found] <mailman.2466.1076934899.928.help-gnu-emacs@gnu.org>
2004-02-16 13:41 ` Reiner Steib

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=200402161418.i1GEIO87017080@beta.mvs.co.il \
    --to=ehud@unix.mvs.co.il \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).