$ cd blah
$ mkdir RCS
$ echo “# $Id$” >> prog.py
$ ci -l prog.py
$ rlog prog.py
$ rcsdiff prog.py
danulk’s brain dump: NetBSD, python et des shmurtz
$ cd blah
$ mkdir RCS
$ echo “# $Id$” >> prog.py
$ ci -l prog.py
$ rlog prog.py
$ rcsdiff prog.py
With this in my .vimrc if I press CTRL and “:” a nice timestamp will automagically be inserted
imap ^_ <C-R>=strftime('[ %d/%m/%y %H:%M ] ')<CR>
lovely !
Yay!
# grep header_checks /etc/main.cf
header_checks = regexp:/etc/postfix/header_checks
Then
# cat /etc/postfix/header_checks
/^Subject:.*R0407z2 postfix$/ REDIRECT root@localhost
finally
# postfix reload
Now every mail subject ending with “R0407z2 postfix” will be redirected to root@localhost, the original recipient won’t receive the mail.
You can reject, hold, redirect the mail etc. All you need is here and there.
Ca aussi, m’a l’air bien alors je teste… voir ici
maximal_queue_lifetime = 1d
un jour ça suffira…
Ensuite ya plus qu’a customiser les bounce pour ne pas effrayer les users
C’est ici que ca se passe.
Par défaut soft_bounce est à yes dans main.cf… bah je viens de le passer à no et fissa !
Sinon, quand un gus envoi un mail hyper important et qu’avec ces gros doigts boudinés il fait une typo dans l’email du destinataire… son mail va rester dans la file d’attente jusqu’a expiration de maximal_queue_lifetime soit par défaut 5 jours… et c’est seulement à la fin de ce délai que Mooonsieur recevra un message d’erreur.
En gros soft_bounce est utile pour tester des modifs de config, il réécrit les erreurs 5xx (permanente) en erreur 4xx (temporaire) ce qui devrait me permettre de corriger un éventuel pb et de relancer la distribution des mails sans en perdre…l’inconvénient faut surveiller la file d’attente en permanence…
Dans main.cf:
sender_bcc_maps=hash:/etc/postfix/sender_bcc_maps
recipient_bcc_maps=hash:/etc/postfix/recipient_bcc_maps
Dans /etc/sender_bcc_maps:
@mondomain.tld root@localhost
Ne pas oublier de faire un postmap hash:/etc/postfix/sender_bcc_maps
Pareil pour recipient_bcc_maps
Type this :
T. to tag all the messages
;WN to clear-flag N on all the tagged messages
Pour partager une session avec Bob, Bill dans un screen fait ctrl+a “:multiuser on” puis ctrl+a “:acladd bob”.
Bob dans un shell fait “screen -x bill/”