Gnus development mailing list
 help / color / mirror / Atom feed
From: Nevin Kapur <nevin@jhu.edu>
Subject: Re: nnimap, expiry-target, nnmail-fancy-expiry-targets
Date: Fri, 19 Jul 2002 11:24:00 -0400	[thread overview]
Message-ID: <m3bs93kagf.fsf@fermat.mts.jhu.edu> (raw)
In-Reply-To: <87sn2fiznh.fsf@hal.Olympus.INVALID>

"Davide G. M. Salvetti" <salve@debian.org> writes:

> I've a problem with the stuff in the subject line.
>

[...]

>   * nnmail-fancy-expiry-targets:
> <======================================================================>
> (setq nnmail-fancy-expiry-targets
>       '(("from" ".*" "nnimap+mail:Mail/Archive/%Y-%m")))
> <======================================================================>
>
> (note that here nnimap+mail is a well working backend).
>
> However, it doesn't work as I expected: when I press "C-c C-x" on the
> group from the *Group* buffer I get the following backtrace:
>
> <======================================================================>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   string-match(".*" nil)
                      ^^^
Bizarre. This implies that one of the articles that you were trying to
expire did not have a From header.  Is that true?

[...]

> 1737 UID FETCH 3 BODY.PEEK[]
> 1737 OK UID FETCH completed
> <======================================================================>
>
> (note 1737 here above).
>
> I'm afraid I don't know enough of the IMAP protocol to understand it any
> further. :-(

Unfortunately, me neither.  When I wrote the fancy expiry stuff, I
relied on message-fetch-field to find the header to match against.

> Am I doing this thing properly, or is there an other way to reach my
> archiving goal?

If it's true that the message in question does not have a From header,
then I guess we should decide on the right behavior.  Certainly an
error is not the right behavior!

If the message does have a from header, could you run

M-: (message-fetch-field "from")

on it and see if you get something non-nil?

-Nevin





  reply	other threads:[~2002-07-19 15:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-19 14:02 Davide G. M. Salvetti
2002-07-19 15:24 ` Nevin Kapur [this message]
2002-07-20  8:23   ` nnimap-request-expire-articles bug? (Was Re: nnimap, expiry-target, nnmail-fancy-expiry-targets) Davide G. M. Salvetti
2002-07-20 23:34     ` [PATCH] nnmail-fancy-expiry-target Nevin Kapur
2002-07-21  8:54       ` Kai Großjohann
2002-07-21 14:12         ` Nevin Kapur
2002-07-21 15:56           ` Kai Großjohann
2002-07-26 14:30       ` Davide G.M.Salvetti
2002-07-26 15:43         ` Nevin Kapur
2002-07-26 16:43         ` Simon Josefsson
2002-07-28 16:17           ` Nevin Kapur
2002-07-29 11:46             ` Simon Josefsson
2002-07-29 13:10               ` Nevin Kapur
2002-07-29 11:47     ` nnimap-request-expire-articles bug? (Was Re: nnimap, expiry-target, nnmail-fancy-expiry-targets) Simon Josefsson
2002-07-29 11:58       ` Simon Josefsson
2002-07-19 15:38 ` nnimap, expiry-target, nnmail-fancy-expiry-targets Nevin Kapur

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=m3bs93kagf.fsf@fermat.mts.jhu.edu \
    --to=nevin@jhu.edu \
    /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).