From: Philip Kaludercic <philipk@posteo.net>
To: Arash Esbati <arash@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Broken gnus-posting-styles?
Date: Mon, 23 May 2022 15:29:39 +0000 [thread overview]
Message-ID: <878rqsjmho.fsf@posteo.net> (raw)
In-Reply-To: <86bkvooefu.fsf@gnu.org> (Arash Esbati's message of "Mon, 23 May 2022 10:12:21 +0200")
Arash Esbati <arash@gnu.org> writes:
> Philip Kaludercic <philipk@posteo.net> writes:
>
>> Is anyone else tracking master and experiencing issues with
>> `gnus-posting-styles'? I read my mail via nnimap, and had it set up so
>> that it Gcc's outgoing mail into my Sent directory. As I have two
>> addresses I use, I sed `gnus-posting-styles' to
>>
>> '(((header "from" "fau.de^")
>> ("Gcc" "nnimap+faumail.fau.de:Sent")
>> (address "cuvyvc.xnyhqrepvp@snh.qr")) ;Anti-spam
>> ("" ;Fallback
>> ("Gcc" "nnimap+posteo.de:Sent")))
>>
>> But for some reason the "(header ...)" doesn't work anymore, and all my
>> messages are stored in the "Sent" directory of my primary account. If I
>> invert the rule, I get the opposite behaviour. Yet `(gnus) Posting
>> Styles' indicates that that this approach should work.
>
> I'm using Emacs master (1a72248901) and have no problems with
> posting-styles. I admit I have most of my config now in
> `gnus-parameters', but would it help if you re-write the lines above
> like this:
>
> (setq gnus-posting-styles
> '((".*" ;Fallback
> ("Gcc" "nnimap+posteo.de:Sent"))
> ((header "from" "fau.de")
> ("Gcc" "nnimap+faumail.fau.de:Sent")
> (address "cuvyvc.xnyhqrepvp@snh.qr")))) ;Anti-spam
>
> Things I've changed are order of fallback, added ".*" instead of empty
> string and removed ^ after fau.de
I just realised that the ^ after "fau.de" was obviously wrong (it was
supposed to be $, matching the end of a string). Removing that and
swapping the order did fix the issue! I seem to have assumed that
`gnus-posting-styles' was to be used like a `cond', but apparently that
is not the case. The empty regular expression is fine though, because
the empty regular expression matches every string, as an empty string is
a sub string-of any string.
Thank you!
> Best, Arash
prev parent reply other threads:[~2022-05-23 15:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-22 16:51 Broken gnus-posting-styles? Philip Kaludercic
2022-05-23 8:12 ` Arash Esbati
2022-05-23 15:29 ` Philip Kaludercic [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878rqsjmho.fsf@posteo.net \
--to=philipk@posteo.net \
--cc=arash@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).