Re: auto-kill mails with "X-Spam-Flag: YES"

2016-02-07 Thread Lars Ingebrigtsen
Emanuel Berg  writes:

> Lars Ingebrigtsen  writes:
>
>> I don't have X-Spam-Flag in my extra headers, but
>> I have To. If I score on that, it works as expected:
>>
>> (("extra" ("la...@gnus.org" nil nil s "To")))
>
> That works for me too but not so any header I try to
> add, e.g. Subject.

Well, Subject isn't one of the "extra" headers.  But it should work for
all the extra headers that you put in both those two variables
mentioned...

I saw that you had an "exact" match instead of a substring match, so
perhaps the X-Spam-Flag wasn't exactly "YES"?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Expirable mark preserved

2016-02-07 Thread Lars Ingebrigtsen
Marcin Włodarczak  writes:

> I see. But then the documentation of this variable is rather confusing,
> especially the part which says:
>
> If nil, the expirable marks will be unchanged except that the marks
> will be removed when copying or moving articles to a group that has
> not turned auto-expire on.

Sorry, I misread your message -- I thought you had the variable switched
on...

This is the code:

(when (and expirable
   gnus-mark-copied-or-moved-articles-as-expirable
   (not (memq 'expire to-marks)))
  ;; Mark this article as expirable.
  (push 'expire to-marks)
  (when (equal to-group gnus-newsgroup-name)
(push to-article gnus-newsgroup-expirable))
  ;; Copy the expirable mark to other group.
  (gnus-add-marked-articles
   to-group 'expire (list to-article) info))

So it looks like it really shouldn't be copying over the expirable
marks...  Hm...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: gnus hangs when refreshing Gmail

2016-02-07 Thread Bill Harris
As I posted here some time ago, I've also had problems with gmail but using
POP3.  I'm wondering if it has to do with gmail using something like OAuth2
but Gnus using something else for authentication.

Since the OP is using IMAP, it may well not be related, but I wanted to
raise the issue, just in case.

Bill

On Sun, Feb 7, 2016 at 11:19 AM, David Mann  wrote:

> Lars Ingebrigtsen  writes:
>
> > David Mann  writes:
> >
> >> I find that when pressing 'g' in the Group buffer, gnus will hang in the
> >> midst of fetching from imap.gmail.com, usually fetching about 90K of
> >> data and then freezing.  I can press C-g and then press 'g' again and it
> >> is able to complete fetching the mail.  After a while (5 mins or
> >> so?) the same phenomenon occurs.
> >
> > This sounds like there's something between you and Gmail that's dropping
> > the connection without notifying the client, so the network connection
> > dies, or something...  Is that possible?
>
> You are probably right, as my home internet connection is not great.  I
> just moved to France for 2 months and will see how it works there.
> Thank you for your help.
>
> DEM
>
> ___
> info-gnus-english mailing list
> info-gnus-english@gnu.org
> https://lists.gnu.org/mailman/listinfo/info-gnus-english
>
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: auto-kill mails with "X-Spam-Flag: YES"

2016-02-07 Thread Emanuel Berg
Lars Ingebrigtsen  writes:

> I would also recommend using scoring instead
> of killing.

I want to emphasize my total agreement with this to
anyone reading this still using the KILL system.

With minimal effort I've now setup the scoring system
to do exactly what some one hundred lines of creative
Elisp was (barely) able to do with the KILL system.

Ironically, it felt good writing all that Elisp, but
not as good as it feels now throwing it away :)

-- 
underground experts united
http://user.it.uu.se/~embe8573


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: auto-kill mails with "X-Spam-Flag: YES"

2016-02-07 Thread Emanuel Berg
Lars Ingebrigtsen  writes:

> I don't have X-Spam-Flag in my extra headers, but
> I have To. If I score on that, it works as expected:
>
> (("extra" ("la...@gnus.org" nil nil s "To")))

That works for me too but not so any header I try to
add, e.g. Subject.

Because the rest of scoring works, this is not an
issue for me as I can get rid of them posts in other
ways. So I'm just saying.

By the way, is it recommended you use scoring to
remove duplicate from Gmane groups as well?
Which I have so far done with splitting:

(setq nnmail-split-methods
  '(
("mail.ml-ooa" 
"\\(To\\|Cc\\):.*\\(help-gnu-em...@gnu.org\\|gnuplot-i...@lists.sourceforge.net\\)")
("mail.misc"   "")) )

With scoring, does the unwanted stuff always turn up
as "unread messages" in the Group buffer before they
are expunged upon selecting a group? Or can it be done
completely transparently?

If not perhaps I'll stick to splitting.

-- 
underground experts united
http://user.it.uu.se/~embe8573


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: gnus hangs when refreshing Gmail

2016-02-07 Thread David Mann
Lars Ingebrigtsen  writes:

> David Mann  writes:
>
>> I find that when pressing 'g' in the Group buffer, gnus will hang in the
>> midst of fetching from imap.gmail.com, usually fetching about 90K of
>> data and then freezing.  I can press C-g and then press 'g' again and it
>> is able to complete fetching the mail.  After a while (5 mins or
>> so?) the same phenomenon occurs.
>
> This sounds like there's something between you and Gmail that's dropping
> the connection without notifying the client, so the network connection
> dies, or something...  Is that possible?

You are probably right, as my home internet connection is not great.  I
just moved to France for 2 months and will see how it works there.
Thank you for your help.  

DEM

___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: imap split-fancy greedy match?

2016-02-07 Thread Emanuel Evans
Terrific, I'll try that. Thanks!


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: imap split-fancy greedy match?

2016-02-07 Thread Teemu Likonen
Emanuel Evans [2016-02-07 10:37:10-08] wrote:

> Lars Ingebrigtsen  writes:
>> If I remember correctly, the fancy splitting is word-based, sort of
>> -- it wraps the things in \b or something...
>
> Is there any way to customize this behavior?

There is: nnmail-split-fancy-match-partial-words.

-- 
/// Teemu Likonen   - .-..    //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///


signature.asc
Description: PGP signature
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: imap split-fancy greedy match?

2016-02-07 Thread Emanuel Evans
Lars Ingebrigtsen  writes:

> If I remember correctly, the fancy splitting is word-based, sort of --
> it wraps the things in \b or something...

Is there any way to customize this behavior? If not, I think I'll just
go back to non-fancy splitting (which works fine form my uses so far)...


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Expirable mark preserved

2016-02-07 Thread Marcin Włodarczak
On 02/07/2016 06:09 AM, Lars Ingebrigtsen wrote:
> Marcin Włodarczak  writes:
> 
>> In another attempt to move over to Gnus, I have been trying to figure
>> out a thing I have stubled over previously. So I have auto-expiry turn
>> on in my inbox and when I open an email, it is correctly marked as
>> expirable. However, when I then move a message to another mailbox with
>> auto-expiry turned off, the expirable mark is still there even though
>> `gnus-mark-copied-or-moved-articles-as-expirable' is set to nil. Do I
>> unerstand it correctly that in that case the E flat should be dropped
>> when copying/moving?
> 
> No, that variable only controls what happens when you move articles to
> groups that are total-expirable: Then they will be marked as expirable
> there even if they aren't originally.

I see. But then the documentation of this variable is rather confusing,
especially the part which says:

If nil, the expirable marks will be unchanged except that the marks
will be removed when copying or moving articles to a group that has
not turned auto-expire on.

> You have to remove the mark explicitly from the article before moving if
> you don't want it to remain expirable.

OK but that's probably something that could be done in the
gnus-summary-article-move-hook, right?

Cheers,
Marcin

___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english