Re: Trying to add a reply-to header using pgsql lookup

"Rowney, Dion via Exim-users" <[email protected]>
Newsgroups gmane.mail.exim.user
Message-ID <YQBPR0101MB4033C9E5CB6E29D4ADDFE2BE9364A@YQBPR0101MB4033.CANPRD01.PROD.OUTLOOK.COM>
That did appear to solve the issue.

Used ${quote_pgsql::$local_part} and encountered success.

Thanks


-----Original Message-----
From: Jeremy Harris via Exim-users <[email protected]>
Sent: Monday, May 26, 2025 5:16 PM
To: [email protected]
Subject: [exim] Re: Trying to add a reply-to header using pgsql lookup

CAUTION: External to USask. Verify sender and use caution with links and attachments. Forward suspicious emails to [email protected]


On 2025/05/27 12:01 AM, Rowney, Dion via Exim-users wrote:
>    headers_remove = ${if eq{${lookup pgsql \
>      {SELECT '1' FROM  listman.lists  \
>        WHERE  \
>          listname = '${quote_pgsql:$local_part}'  \
>          AND lists.options LIKE '%"reply-to-list"%'  } \
>      }}{1} \
>    {Reply-to} \
>    {} \
>    }

headers_remove takes a list, colon-sep by default.
There is a colon after "quote_pgsql".

See "Warning 3" in the docs, "Generic options for routers" chapter, the "headers_remove" entry.

--
Cheers,
   Jeremy

--
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

-- 
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.