Gnus development mailing list
 help / color / mirror / Atom feed
* headers and being stumped.
@ 2003-06-05 17:15 Wes Hardaker
  2003-06-05 21:49 ` Simon Josefsson
  0 siblings, 1 reply; 3+ messages in thread
From: Wes Hardaker @ 2003-06-05 17:15 UTC (permalink / raw)



Ok, so lets say I want to do something special with generic headers
and the summary buffer.  I thought I'd start with something simple,
like the user formatting and insert something boring then.  From what
I gather:

1) I can't find a way given a header structure to return a generic
   header (say x-my-gnus-is-cool:).  You only have access to the
   contents of the header structure.
2) There should be a way to get a generic header given the message id,
   but its hard to wade through all the gnus functions looking for it.
3) its likely that if #2 is possible, it'll be slow.  yes?

[note this is mostly for use within my nnimap groups]
-- 
"In the bathtub of history the truth is harder to hold than the soap,
 and much more difficult to find."  -- Terry Pratchett



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: headers and being stumped.
  2003-06-05 17:15 headers and being stumped Wes Hardaker
@ 2003-06-05 21:49 ` Simon Josefsson
  2003-06-05 22:39   ` Wes Hardaker
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Josefsson @ 2003-06-05 21:49 UTC (permalink / raw)
  Cc: ding

Wes Hardaker <wes@hardakers.net> writes:

> Ok, so lets say I want to do something special with generic headers
> and the summary buffer.  I thought I'd start with something simple,
> like the user formatting and insert something boring then.  From what
> I gather:
>
> 1) I can't find a way given a header structure to return a generic
>    header (say x-my-gnus-is-cool:).  You only have access to the
>    contents of the header structure.

Perhaps adding the header you want to nnmail-extra-headers works?

> 2) There should be a way to get a generic header given the message id,
>    but its hard to wade through all the gnus functions looking for it.

For me

(gnus-request-head "<sdwug0h2ds.fsf@wanderer.hardakers.net>"
                   "nnimap+yxa:INBOX.ding")

returns the headers of your message in the *nntpd* buffer, where you
can parse it to get the headers you want.

> 3) its likely that if #2 is possible, it'll be slow.  yes?

If you know the article number instead of message id, and you cache
articles in the agent, perhaps the agent will return what is cached.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: headers and being stumped.
  2003-06-05 21:49 ` Simon Josefsson
@ 2003-06-05 22:39   ` Wes Hardaker
  0 siblings, 0 replies; 3+ messages in thread
From: Wes Hardaker @ 2003-06-05 22:39 UTC (permalink / raw)


>>>>> On Thu, 05 Jun 2003 23:49:54 +0200, Simon Josefsson <jas@extundo.com> said:

Simon> Perhaps adding the header you want to nnmail-extra-headers
Simon> works?

Ah.  Thanks!  I'll try that.

Simon> (gnus-request-head "<sdwug0h2ds.fsf@wanderer.hardakers.net>"
Simon> "nnimap+yxa:INBOX.ding")

Or that!

-- 
"In the bathtub of history the truth is harder to hold than the soap,
 and much more difficult to find."  -- Terry Pratchett



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-05 22:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-05 17:15 headers and being stumped Wes Hardaker
2003-06-05 21:49 ` Simon Josefsson
2003-06-05 22:39   ` Wes Hardaker

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).