Skip to content

Instantly share code, notes, and snippets.

View berserker1's full-sized avatar
🎯
Focusing

Aaryan Bhagat berserker1

🎯
Focusing
View GitHub Profile
@berserker1
berserker1 / bounce_processing.md
Created March 27, 2019 19:06
Current status of bounce processing in Mailman.

Bounce processes

  • File bounce.py in mailman/src/mailman/interfaces is an interface file which defines various class of bounce functions.Here the templates are to define a registration record and register bounce events.

  • File bounce.py in mailman/src/mailman/model is a model file for various functions, it works on the interfaces provided by the above files.

  • File bounce.py in mailman/src/mailman/runners/bounce.py runs the bounce runner.
    More info below link in the title Imp doc having Runners of mailman

    • Currently it is just finding out the temporary and permanent failures and storing the addresses to be processed. >
//Test case you can try ["foo", {"bar":["baz",null,1.0,2]}]
//Try another examples also
#include<bits/stdc++.h>
using namespace std;
int prettyjson(string s,stack<char> st,int length,int i,int tabs)
{
if(i<length)
{
if((s[i]=='[') || (s[i]=='{'))
{
#include<bits/stdc++.h>
using namespace std;
int lps(string a)
{
int n = a.size();
int length = 0;
bool dp[n][n];
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
File bounce.py in mailman/src/mailman/interfaces is an interface file which defines various class of bounce functions.Here the templates are to define a registration record and register bounce events.
File bounce.py in mailman/src/mailman/model is a model file for various functions, it works on the interfaces provided by the above files.
File bounce.py in mailman/src/mailman/runners/bounce.py runs the bounce runner.
Currently it is just finding out the temporary and permanent failures and storing the addresses to be processed.
Usage: mailman members [OPTIONS] LISTSPEC
Display a mailing list's members, with filtering along various criteria.
Options:
-a, --add FILENAME Add all member addresses in FILENAME.
FILENAME can be '-' to indicate standard
input. Blank lines and lines That start
with a '#' are ignored. Without this
option, this command displays mailing list
@berserker1
berserker1 / snippet.py
Last active August 17, 2019 19:52
candy
mailing_lists_set = set()
list_manager = getUtility(IListManager)
for mlist in list_manager.mailing_lists:
mailing_lists_set.add(mlist)
for mlist in mailing_lists_set:
# obtain members whose deliverystatus is disabled by_bounce
status_type = DeliveryStatus.by_bounces
roster = mlist.members
addresses = list(roster.addresses)
for address in addresses:
def dbconnection(function):
"""Decorator for getting at the database connection.
Use this to avoid having to access the global `config.db.store`
attribute. This calls the function with `store` as the first argument.
"""
def wrapper(*args, **kws):
# args[0] is self, if there is one.
if len(args) > 0:
return function(args[0], config.db.store, *args[1:], **kws)
from flask import Flask, render_template
# from db_setup import init_db, db_session
from forms import MusicSearchForm
from flask import flash, request, redirect, url_for
import requests
from query import do_query
# from models import Album
app = Flask(__name__)