From: Gaute B Strokkenes <biggaute@uwc.net>
Subject: Re: Problems with IMAP-over-ssl mail source.
Date: Mon, 25 Aug 2003 03:54:58 +0100 [thread overview]
Message-ID: <874r06winx.fsf@srcf.ucam.org> (raw)
In-Reply-To: <87vfu39rcz.fsf@cam.ac.uk> (Gaute B. Strokkenes's message of "Wed, 16 Jul 2003 02:45:32 +0100")
On 16 jul 2003, gs234@cam.ac.uk wrote:
>> It should continue with the login. Could you perhaps edebug
>> `mail-source-fetch-imap' to see what is going on?
>
> Mmm. I'd have to work out how edebug works first. I'll do it if I
> get round to it, I'm a bit busy right now.
It's taken me a while, but I've finally gotten round to this.
Consider the following snippet from mail-source-fetch-imap:
(let* ((from (format "%s:%s:%s" server user port))
(found 0)
(buffer-name " *imap source*")
(buf (get-buffer-create (generate-new-buffer-name buffer-name)))
(mail-source-string (format "imap:%s:%s" server mailbox))
(imap-shell-program (or (list program) imap-shell-program))
remove)
(if (and (imap-open server port stream authentication buffer-name)
(imap-authenticate
user (or (cdr (assoc from mail-source-password-cache))
password) buf)
(imap-mailbox-select mailbox nil buf))
The problem appear to be that the " *imap source*" buffer is not
deleted when I interrupt a fetching session. Then, the next time this
code is called, generate-new-buffer-name ensures that `buf' is a new
buffer called " *imap source*<1>". However, when imap-open is called
it is passed buffer-name which is still set to " *imap source",
causing imap-open to operate on the wrong temporary buffer.
--
Gaute Strokkenes http://www.srcf.ucam.org/~gs234/
I have a TINY BOWL in my HEAD
next prev parent reply other threads:[~2003-08-25 2:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-14 1:49 Gaute B Strokkenes
2003-07-14 7:41 ` Simon Josefsson
2003-07-14 7:54 ` Gaute B Strokkenes
2003-07-14 12:49 ` Simon Josefsson
2003-07-16 1:45 ` Gaute B Strokkenes
2003-07-16 23:53 ` Gaute B Strokkenes
2003-08-25 2:54 ` Gaute B Strokkenes [this message]
2003-08-26 19:34 ` Gaute B Strokkenes
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874r06winx.fsf@srcf.ucam.org \
--to=biggaute@uwc.net \
/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 NNTP newsgroup(s).