Gnus development mailing list
 help / color / mirror / Atom feed
From: wmperry@aventail.com (William M. Perry)
Cc: Steinar Bang <sb@metis.no>, ding@gnus.org
Subject: Re: nnimap URLs? (Was: What now?)
Date: 08 Dec 1999 13:23:08 -0500	[thread overview]
Message-ID: <86ogc11ecz.fsf@localhost.localdomain> (raw)
In-Reply-To: Simon Josefsson's message of "08 Dec 1999 19:02:45 +0100"

[-- Attachment #1: Type: text/plain, Size: 1457 bytes --]

Simon Josefsson <jas@pdc.kth.se> writes:

> William M. Perry <wmperry@aventail.com> writes:
> 
> > I'm not sure if I know enough about the guts of 'imap.el' to hack this
> > together or not.  Fortunately, it is easy to add a new URL type. :)  If
> > anyone (simon?) wants to work on this, let me know and I'll concentrate on
> > getting the documentation on how to do this written tonight.  I would LOVE
> > to see this get written.
> 
> If there is a url-nntp.el to look at I could have a go at it.

This is a work-in-progress, but should be a good starting point.  Will this
be able to be asynchronous?  I noticed there was an imap-fetch-asynch call,
but I didn't see how it ever got a callback or anything like that handed to
it.  If it is, you need to add:

(defconst url-imap-asynchronous-p t "IMAP retrievals are asynchronous.")

And the url-imap routine would get a callback and a cbargs argument that it
is expected to call with the current buffer set to where the article is.
If there is no data to return, it just never calls the callback.

If nil is returned (or the callback is not activated), then that means
there is no real data to return (ie: someone did imap://mail.server.com/
and we just go straight into gnus) to the calling app.

Basically, the new URL stuff expects a buffer to look like a MIME message,
with headers intact at the top, including a content-type and content-length
when available.

Any questions, lemme know.

-Bill P.


[-- Attachment #2: url-news.el --]
[-- Type: application/emacs-lisp, Size: 5031 bytes --]

[-- Attachment #3: url-imap.el --]
[-- Type: application/emacs-lisp, Size: 1499 bytes --]

  reply	other threads:[~1999-12-08 18:23 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-24  0:06 Forwarding Mail Messages Brian May
1999-12-01 19:47 ` Lars Magne Ingebrigtsen
1999-12-02  0:42   ` Nevin Kapur
1999-12-02  1:19     ` What now? (was: Forwarding Mail Messages) Lars Magne Ingebrigtsen
1999-12-02  2:59       ` What now? Brian May
1999-12-02 16:23         ` Colin Marquardt
1999-12-02 16:56         ` Jody M. Klymak
1999-12-06  4:26           ` Lars Magne Ingebrigtsen
1999-12-06  5:31             ` Brian May
1999-12-07  5:36               ` William M. Perry
1999-12-07  5:59                 ` Brian May
1999-12-07 16:09                   ` William M. Perry
1999-12-08  8:02                     ` nnimap URLs? (Was: What now?) Steinar Bang
1999-12-08 16:08                       ` William M. Perry
1999-12-08 18:02                         ` Simon Josefsson
1999-12-08 18:23                           ` William M. Perry [this message]
1999-12-08 17:26                       ` Simon Josefsson
1999-12-10 16:07                         ` William M. Perry
1999-12-08 22:51                     ` What now? Brian May
1999-12-06 17:36             ` Jody M. Klymak
1999-12-06 20:34               ` Bruce Stephens
1999-12-06 22:38               ` Kai Großjohann
1999-12-03 19:12       ` What now? (was: Forwarding Mail Messages) Jody M. Klymak
1999-12-04 17:05         ` Hrvoje Niksic
1999-12-04 22:53           ` Jody M. Klymak
2000-04-21 21:13         ` Lars Magne Ingebrigtsen
2000-04-21 21:05           ` William M. Perry
2000-04-21 21:16             ` Arcady Genkin
2000-04-21 23:32               ` William M. Perry
2000-04-22  9:36             ` Hans de Graaff
1999-12-05 21:46       ` Kai Großjohann
1999-12-05 21:51       ` Kai Großjohann
1999-12-06  1:27       ` Richard Hoskins
1999-12-02  1:48   ` Forwarding Mail Messages Brian May
1999-12-06  4:12     ` Lars Magne Ingebrigtsen

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=86ogc11ecz.fsf@localhost.localdomain \
    --to=wmperry@aventail.com \
    --cc=ding@gnus.org \
    --cc=sb@metis.no \
    /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).