On Sat, Apr 22, 2023 at 03:04:26PM -0700, Kevin Fenzi wrote:
> 
> So I've been using the email bridge for a while (I think since we set it
> up) and it's got it's issues for sure, but I am not sure if it's as bad
> as folks fear. 
> 
> https://discussion.fedoraproject.org/t/guide-to-interacting-with-this-site-by-email/25960
> has general info. 
> 
> I had just been dumping it into one mailbox, but today I poked at
> getting it sorted better. For those of you ancient dinosaurs like myself
> still using procmail (written in 1990!), the following hacky recipe
> works for me: 
> 
> 
> :0
> * ^List-Id: .*<\/[-a-z0-9]*\.discussion\.fedoraproject\.org>
> {
>                  NAME=`echo "${MATCH}" | sed 
> 's/\.discussion\.fedoraproject\.org>$//'`
> 
>                  :0
>                  $HOME/Maildir/.fedora.discussion.$NAME/ 
> }
> 
> This gets posts flowing into folders by list-id, so: 
> 
> .fedora.discussion.Ask-Fedora_Ask-in-English/
> .fedora.discussion.Project-Discussion/
> 
> And of course you can filter more with the actual tags from there if you
> like. Posts should work fine as they have a reply-to hash with the
> topic/post and who the email was sent to.

One bug I hit setting this up this weekend... some (but not all) of the
categories appear to have newlines in the List-ID: header. ;( 

ie, 

List-ID: Fedora Discussion | Ask Fedora Ask in English
 <ask-in-english.ask-fedora.discussion.fedoraproject.org>

Hopefully this is a bug that can be fixed... 

So the above won't really work as the MATCH doesn't include the second
line with the actual listid in it, only the description. ;( 

kevin

Attachment: signature.asc
Description: PGP signature

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to