* Broken gnus-posting-styles?
@ 2022-05-22 16:51 Philip Kaludercic
2022-05-23 8:12 ` Arash Esbati
0 siblings, 1 reply; 3+ messages in thread
From: Philip Kaludercic @ 2022-05-22 16:51 UTC (permalink / raw)
To: help-gnu-emacs
(I'm posting here because I don't have anything concrete enough for a
bug report)
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.
Anyone know what is going on?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Broken gnus-posting-styles?
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
0 siblings, 1 reply; 3+ messages in thread
From: Arash Esbati @ 2022-05-23 8:12 UTC (permalink / raw)
To: Philip Kaludercic; +Cc: help-gnu-emacs
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
Best, Arash
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Broken gnus-posting-styles?
2022-05-23 8:12 ` Arash Esbati
@ 2022-05-23 15:29 ` Philip Kaludercic
0 siblings, 0 replies; 3+ messages in thread
From: Philip Kaludercic @ 2022-05-23 15:29 UTC (permalink / raw)
To: Arash Esbati; +Cc: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-23 15:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).