From: Niklas Morberg <niklas.morberg@axis.com>
Subject: [PATCH] Re: Fancy splitting getting headers from included text
Date: Fri, 13 Jun 2003 11:50:53 +0200 [thread overview]
Message-ID: <ud6hiuwzm.fsf_-_@axis.com> (raw)
In-Reply-To: <un0gmuxpu.fsf@axis.com> (Niklas Morberg's message of "Fri, 13 Jun 2003 11:35:09 +0200")
[-- Attachment #1: Type: text/plain, Size: 895 bytes --]
Niklas Morberg <niklas@axis.com> writes:
> Niklas Morberg <niklas@axis.com> writes:
>
>> I'm stumped. The regexp in i-d-n-t-h looks fine. If I go to
>> the *nntpd* buffer and manually do `M-x re-search-forward
>> [RET] ^\r?$' it will move point to the end of headers. Yet
>> the function i-d-n-t-h fails to narrow the buffer to
>> headers.
>
> And if I go an article buffer in gnus and do `M-:
> (ietf-drums-narrow-to-header) [RET]' the buffer is properly
> narrowed. But it does not work with the *nntpd* buffer...
Clarification: if I manually go to the *nntpd* buffer and
do `M-: (ietf-drums-narrow-to-header) [RET]' it will get
narrowed properly. But it doesn't work when called from
nnimap-split-articles.
Could it be that nnimap-split-articles is using the wrong
buffer? Hm. It seems that it is. The following patch makes
splitting work as expected (not taking body text into
account).
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Narrow proper buffer. --]
[-- Type: text/x-patch, Size: 677 bytes --]
cd c:/cygwin/usr/share/site-lisp/
diff -u -b "c:/cygwin/usr/share/site-lisp/nnimap.el~" "c:/cygwin/usr/share/site-lisp/nnimap.el"
--- c:/cygwin/usr/share/site-lisp/nnimap.el~ 2003-06-05 09:53:38.000000000 +0200
+++ c:/cygwin/usr/share/site-lisp/nnimap.el 2003-06-13 11:44:28.000000000 +0200
@@ -1271,7 +1271,7 @@
nnimap-split-download-body-default
nnimap-split-download-body)
(and (nnimap-request-article article)
- (mail-narrow-to-head))
+ (with-current-buffer nntp-server-buffer (mail-narrow-to-head)))
(nnimap-request-head article))
;; copy article to right group(s)
(setq removeorig nil)
Diff finished at Fri Jun 13 11:48:11
[-- Attachment #3: Type: text/plain, Size: 207 bytes --]
I have nnimap as my primary select method, maybe the above
patch will break stuff for people who have it as their
secondary select method? All I know is that with this patch
splitting works for me.
Niklas
next prev parent reply other threads:[~2003-06-13 9:50 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-25 19:02 David Z Maze
2003-03-26 8:21 ` Niklas Morberg
2003-03-30 2:47 ` Lars Magne Ingebrigtsen
2003-03-30 9:31 ` Kai Großjohann
2003-03-30 12:08 ` Simon Josefsson
2003-04-05 13:29 ` Ted Zlatanov
2003-04-14 15:53 ` David Z Maze
2003-04-14 16:33 ` Simon Josefsson
2003-04-14 20:25 ` David Z Maze
2003-04-15 17:44 ` Ted Zlatanov
2003-04-15 18:12 ` David Z Maze
2003-04-15 19:47 ` Ted Zlatanov
2003-05-07 14:27 ` Niklas Morberg
2003-06-11 9:23 ` Niklas Morberg
2003-06-13 8:33 ` Niklas Morberg
2003-06-13 9:35 ` Niklas Morberg
2003-06-13 9:50 ` Niklas Morberg [this message]
2003-06-13 21:07 ` [PATCH] " Kai Großjohann
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=ud6hiuwzm.fsf_-_@axis.com \
--to=niklas.morberg@axis.com \
/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).