New Bounce Processing Templates in Mailman - mailman

When mailman receives a bounceback in a format that it doesn't recognize, it discards the message and sends an "Uncaught bounce notification" to the list administrator.
How would it be possible to define new templates or rules for mailman to process bounces?
For example, the message below is unrecognized by mailman, but is a common bounceback message from a particular domain that many of my list members are using. I would like to be able to have mailman process these automatically.
This message was created automatically by mail delivery software.
A message that you have sent could not be delivered to one or more
recipients. This is a permanent error. The following address failed:
<user#domain.com>: 550 5.1.1 User unknown

You need to write a new bouncer class, eg. Mailman/Bouncers/MyMisbehavingSystem.py. You'll find this in your Mailman installation directory, which might be eg. /usr/lib/mailman/.
Have a look at the other files in Mailman/Bouncers/ for reference. It might be tricky, and I suggest taking a "if we are not absolutely certain, just pass" approach. And enclose your code in a try .. except.
Then, add MyMisbehavingSystem to BOUNCE_PIPELINE in Mailman/Bouncers/BouncerAPI.py.
Finally, please consider contributing the new class to Mailman sources.

Related

Rabbitmq set name for webstomp / stompjs temporary queues

I just wanted to ask if it is possible to specify the name for the temporary auto-delete queues, which are bound to the destination when I subscribe to a webstomp queue/exchange.
The reason is, that I would like to specify a fine graded JWT permission control, so I would like to give permission f.e. to "stomp-subscriptions-user123-abcde" and therefore I would like to call the temporary queue name not "stomp-subscription-randomstring", but "stomp-subscriptions-user123-randomstring".
Is this possible?
I looked through the available documentation, but couldn't find anything (only the name of the subscription id, but not of the temporary queue name).
Documentation: https://stomp-js.github.io/
Here is the source code for the function that generates a queue name:
https://github.com/rabbitmq/rabbitmq-server/blob/main/deps/rabbitmq_stomp/src/rabbit_stomp_util.erl#L368-L382
Notice that it only auto-generates a name if the x-queue-name header is NOT present. So, it looks like you can specify whatever name you'd like via that header. Here is the documentation for it:
https://www.rabbitmq.com/stomp.html#d.ugqn
NOTE: the RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow.

Power Automate: Send eMail mit Sharepoint attachement

I have a problem creating a flow. All files for the flow are in a sharepoint. In an Excel list, I call up various information such as name, surname, e-mail and also the file name of the e-mail attachment. The e-mail attachment is also stored on the Sharepoint in a different underlying folder. How do I include the attachment in the flow?
The whole flow works fine. However, when I let the attach file be selected dynamically like,
the flow runs into an error:
Without a dynamic attachment (hard coded) it runs through without error:
Here the eMail result - hard coded attachement:
Any idea how to select the attachment dynamicaly?
Thank you very much for your help.
Kind regards
Andi
You'll want to use this specific action ...
... there are two and the one I have shown is the one you'll need to use.

Cannot read Outlook Sent Items with Blue Prism Mapiex Get Mail function

I tested reading mail from Sent Items with BP Mapiex Get Mail, but it only works with Inbox (default folder in action). Folder name is correct (I took it as I see it in Outlook).
Error message: Failure in Get Mail function of Blue Prism Extended
MAPI Automation. Failed to open sub-folder 'Sent Items'.
Would anyone have any ideas, what can help it work with Sent Items?
Thanks!
This is because Get Mail was configured to look in the Inbox only (and sub folders within the inbox). You can add a rule in Outlook to move the sent items to a sub-folder (then you use the Get Mail action), or add a new page in your MAPIEx object. If you go with the latter, you can proceed like this:
Open the MAPIEx object and duplicate the page called 'Get Mail', rename the page and the code stage to something else, such as Get Sent Items, then publish it. I did it this way:
Open the code stage and edit this line (line 17) so that it looks like the following, from OpenInbox() to OpenSentItems():
Editing the highlighted items is optional but preferable as it makes it easier to debug should there be issues. For instance, you would change anything that says Inbox to Sent Items.
From there you can call the action from your process just like you would call Get Mail.

Windows SendTo from script

I'm writing an application where I have to send an email with an attachment using the default mail application.
Before the email is sent, I want the user to be able to edit the text, i.e. the application should just open the mail client with pre-filled recipient and attachment and give the user the opportunity to send it.
At very minimum I need the same effect I'd got if I selected "SendTo/Mail Recipient" from the context menu of the file.
Solutions based on the "mailto:" trick won't work as there are mail clients that do not support the "attachment=" part.
The most complete solution I've found is this one:
http://www.codeproject.com/Articles/3839/SendTo-mail-recipient
but it seems a lot of code for something so simple! (and also crashes when compiled with VS2008)
Is there any other option? It would be ok even if it was an external tool or script (e.g. a .vbs script to be launched with cscript).
I would advise you to use MAPI (Messaging Application Program Interface).
If dotNet can be part of the solution, here's a ready-to-use class in C# : Class for creating MAPI Mail Messages. It would give you something like this:
MapiMailMessage message = new MapiMailMessage("Test Message", "Test Body");
message.Recipients.Add("Test#Test.com");
message.Files.Add(#"C:\del.txt");
message.ShowDialog();
Otherwise, you can always do it in C++ if you feel confortable with it, like this answer suggest.
Then, you will be able to ShellExecute the binary executable and pass it some parameters.
Hope this helps :-)

TFS 2010 Email Alerts

I found this post, which seems to be an exact duplicate, but I can't figure out how to get the answer to work for me so I'm posting again...
TFS2010: Set up an alert that will email a member in the team when a work item is assigned to them
I want anyone (not everyone) using TFS to receive an email when they are assigned an item or when an item assigned to them changes. So, when the alert happens, the person who is currently assigned the item will receive an email.
I know I can set up this on a per-person basis with Alerts Explorer, but I can't figure out how to do this for everyone at once.
I looked at https://tfsalerts.codeplex.com/, but it looks like it's used to send alerts to groups of people...I only want to send the alert to a single relevant person (the equivalent of #Me). If this tool can do that, I'm not sure how to make it do so.
what you want to do is write a TFS Server Plugin. This plugin will fire whenever a certain event occurs. In your case, you will want to catch the WorkItemChangedEvent. In the notification, you will find old and new values of each field. By checking whether the assigned to field changed, you will know whether the WI has been reassigned.
Once you determined that the WI has been reassigned, you can take the New Value, and go to Active Directory (assuming you're using it), and get the email address. Finally, send a message.
For a code example of writing a robust server plugin (that happens to target the WorkItemChangedEvent, check out this blog post: How to Write a Robust TFS Server Plugin

Categories

Resources