Hi, i'm writing a parser for lines having a repeated field on the same line eg(Recipient is repeated 3 times): ID: 123AABB456 Sender: user1@example.com Recipient: user2@example.com Recipient: user3@example.com Recipient: user3@example.com Status: Sent I would like to have a CUSTOM MACRO with all recipients. Is there a way to do this? Thanks --
Well, regexp is probably the best option. Or three patterns in db-parser What kind of application is this? On Oct 19, 2015 7:07 PM, "Giovanni Mancuso" <giovanni.mancuso@par-tec.it> wrote:
Hi, i'm writing a parser for lines having a repeated field on the same line eg(Recipient is repeated 3 times):
ID: 123AABB456 Sender: user1@example.com Recipient: user2@example.com Recipient: user3@example.com Recipient: user3@example.com Status: Sent
I would like to have a CUSTOM MACRO with all recipients.
Is there a way to do this?
Thanks
--
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
Hi, This is a custom mailserver. The number of recipients is dynamic(one or n). For each recipient i should use a different destination. Thanks Inviato con AquaMail per Android http://www.aqua-mail.com Il 19 ottobre 2015 19:47:16 "Scheidler, Balázs" <balazs.scheidler@balabit.com> ha scritto:
Well, regexp is probably the best option.
Or three patterns in db-parser
What kind of application is this? On Oct 19, 2015 7:07 PM, "Giovanni Mancuso" <giovanni.mancuso@par-tec.it> wrote:
Hi, i'm writing a parser for lines having a repeated field on the same line eg(Recipient is repeated 3 times):
ID: 123AABB456 Sender: user1@example.com Recipient: user2@example.com Recipient: user3@example.com Recipient: user3@example.com Status: Sent
I would like to have a CUSTOM MACRO with all recipients.
Is there a way to do this?
Thanks
--
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
If there are multiple values then one message needs to be delivered how many times? On Oct 19, 2015 8:58 PM, "Giovanni Mancuso" <giovanni.mancuso@par-tec.it> wrote:
Hi, This is a custom mailserver. The number of recipients is dynamic(one or n). For each recipient i should use a different destination.
Thanks
Inviato con AquaMail per Android http://www.aqua-mail.com
Il 19 ottobre 2015 19:47:16 "Scheidler, Balázs" < balazs.scheidler@balabit.com> ha scritto:
Well, regexp is probably the best option.
Or three patterns in db-parser
What kind of application is this? On Oct 19, 2015 7:07 PM, "Giovanni Mancuso" <giovanni.mancuso@par-tec.it> wrote:
Hi, i'm writing a parser for lines having a repeated field on the same line eg(Recipient is repeated 3 times):
ID: 123AABB456 Sender: user1@example.com Recipient: user2@example.com Recipient: user3@example.com Recipient: user3@example.com Status: Sent
I would like to have a CUSTOM MACRO with all recipients.
Is there a way to do this?
Thanks
--
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
I would generate different line for each recipient (with custom template) and send this log to different destination Inviato con AquaMail per Android http://www.aqua-mail.com Il 19 ottobre 2015 21:12:53 Balazs Scheidler <bazsi77@gmail.com> ha scritto:
If there are multiple values then one message needs to be delivered how many times? On Oct 19, 2015 8:58 PM, "Giovanni Mancuso" <giovanni.mancuso@par-tec.it> wrote:
Hi, This is a custom mailserver. The number of recipients is dynamic(one or n). For each recipient i should use a different destination.
Thanks
Inviato con AquaMail per Android http://www.aqua-mail.com
Il 19 ottobre 2015 19:47:16 "Scheidler, Balázs" < balazs.scheidler@balabit.com> ha scritto:
Well, regexp is probably the best option.
Or three patterns in db-parser
What kind of application is this? On Oct 19, 2015 7:07 PM, "Giovanni Mancuso" <giovanni.mancuso@par-tec.it> wrote:
Hi, i'm writing a parser for lines having a repeated field on the same line eg(Recipient is repeated 3 times):
ID: 123AABB456 Sender: user1@example.com Recipient: user2@example.com Recipient: user3@example.com Recipient: user3@example.com Status: Sent
I would like to have a CUSTOM MACRO with all recipients.
Is there a way to do this?
Thanks
--
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
---------- ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
This means that from a single message you want to generate several others, is that right? This is unfortunately not possible right now, except for using a program destination the submits multiple messages back to syslog-ng, each with a single recipient. On Oct 19, 2015 8:58 PM, "Giovanni Mancuso" <giovanni.mancuso@par-tec.it> wrote:
Hi, This is a custom mailserver. The number of recipients is dynamic(one or n). For each recipient i should use a different destination.
Thanks
Inviato con AquaMail per Android http://www.aqua-mail.com
Il 19 ottobre 2015 19:47:16 "Scheidler, Balázs" < balazs.scheidler@balabit.com> ha scritto:
Well, regexp is probably the best option.
Or three patterns in db-parser
What kind of application is this? On Oct 19, 2015 7:07 PM, "Giovanni Mancuso" <giovanni.mancuso@par-tec.it> wrote:
Hi, i'm writing a parser for lines having a repeated field on the same line eg(Recipient is repeated 3 times):
ID: 123AABB456 Sender: user1@example.com Recipient: user2@example.com Recipient: user3@example.com Recipient: user3@example.com Status: Sent
I would like to have a CUSTOM MACRO with all recipients.
Is there a way to do this?
Thanks
--
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
participants (3)
-
Balazs Scheidler
-
Giovanni Mancuso
-
Scheidler, Balázs