GNU bug report logs -
#22315
[patch][gnus] allow functions for checking mails
Previous Next
Reported by: Rasmus <rasmus <at> gmx.us>
Date: Tue, 5 Jan 2016 18:58:01 UTC
Severity: wishlist
Tags: fixed, patch
Fixed in version 26.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22315 in the body.
You can then email your comments to 22315 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22315
; Package
emacs
.
(Tue, 05 Jan 2016 18:58:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Rasmus <rasmus <at> gmx.us>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 05 Jan 2016 18:58:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
I use my mydomain.net for all my private mails. As such my set of mail
accounts is basically ".*@mydomain.net". I reserve a couple of addresses
like foo <at> mydomain.net for the local foo club's mailing list, though.
Thus, foo <at> mydomain.net is not one of my emails.
Since Emacs doesn't have regexp look-ahead it's pretty difficult to bend
message-alternative-emails, message-dont-reply-to-names,
gnus-ignored-from-addresses to recognize the above rule.
The attached patches allow the three variables message-alternative-emails,
gnus-ignored-from-addresses and message-dont-reply-to-names to be
predicates. Thus, I can solve my woes with this simple predicate:
(defun rasmus/mailp (email)
(let (case-fold-search)
;; rasmus/my-mails is known.
(and (string-match-p rasmus/my-mails email)
(not (string-match-p rasmus/ml-mails email)))))
Also, I don't know how changelog works for Gnus now (or whenever it moves
to emacs.git). Also, I don’t know if the patch should be against gnus.git
or emacs.git. The attached patches should work with the master branch of
gnus.git.
Thanks,
Rasmus
--
Tack, ni svenska vakttorn. Med plutonium tvingar vi dansken på knä!
[0001-Allow-message-alternative-emails-to-be-a-function.patch (text/x-diff, attachment)]
[0002-Allow-gnus-ignored-from-addresses-to-be-a-function.patch (text/x-diff, attachment)]
[0003-Allow-message-dont-reply-to-names-to-be-a-function.patch (text/x-diff, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org
:
bug#22315
; Package
emacs,gnus
.
(Sun, 07 Feb 2016 05:48:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 22315 <at> debbugs.gnu.org (full text, mbox):
Rasmus <rasmus <at> gmx.us> writes:
> The attached patches allow the three variables message-alternative-emails,
> gnus-ignored-from-addresses and message-dont-reply-to-names to be
> predicates. Thus, I can solve my woes with this simple predicate:
Looks good. Do you have FSF copyright assignment papers on file with
the FSF?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org
:
bug#22315
; Package
emacs,gnus
.
(Sun, 07 Feb 2016 12:00:02 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi Lars,
>> The attached patches allow the three variables message-alternative-emails,
>> gnus-ignored-from-addresses and message-dont-reply-to-names to be
>> predicates. Thus, I can solve my woes with this simple predicate:
>
> Looks good. Do you have FSF copyright assignment papers on file with
> the FSF?
Yes I do. See e.g. commit bb19b229f9c1c32ed8829f14f670bfd9d7ebe2a2 in
emacs.git which uses this email address.
Thanks,
Rasmus
--
Enough with the blah blah!
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org
:
bug#22315
; Package
emacs,gnus
.
(Mon, 08 Feb 2016 02:30:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 22315 <at> debbugs.gnu.org (full text, mbox):
Rasmus <rasmus <at> gmx.us> writes:
> Hi Lars,
>
>>> The attached patches allow the three variables message-alternative-emails,
>>> gnus-ignored-from-addresses and message-dont-reply-to-names to be
>>> predicates. Thus, I can solve my woes with this simple predicate:
>>
>> Looks good. Do you have FSF copyright assignment papers on file with
>> the FSF?
>
> Yes I do. See e.g. commit bb19b229f9c1c32ed8829f14f670bfd9d7ebe2a2 in
> emacs.git which uses this email address.
Ok, I've now applied your patches to the trunk.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 08 Feb 2016 02:31:01 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 25.2, send any further explanations to
22315 <at> debbugs.gnu.org and Rasmus <rasmus <at> gmx.us>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 08 Feb 2016 02:31:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 07 Mar 2016 12:24:04 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 04 Dec 2016 02:50:09 GMT)
Full text and
rfc822 format available.
bug Marked as fixed in versions 26.1.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 04 Dec 2016 02:50:09 GMT)
Full text and
rfc822 format available.
bug No longer marked as fixed in versions 25.2.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 04 Dec 2016 02:50:09 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 01 Jan 2017 12:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 229 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.