Dettaglio dell'articolo:

venerdì 13 luglio 2007

Posta elettronica: messaggio di risposta automatico con Procmail e Formail e Regular Expressions

Se il nostro sistema di posta è basato su Linux, è possibile utilizzare procmail , formail e le regular expressions per impostare messaggi di risposta automatici (AUTOREPLY).
Prendiamo in considerazione un sistema basato su Fedora e Sendmail e supponiamo che un nostro utente voglia impostare una risposta automatica che avvisa chi gli scrive di essere assente per ferie. Di seguito riportiamo il file .procmailrc da utilizzare come template e copiare nella home directory del nostro utente. Perché il sistema funzioni è necessario che l'utente sia abilitato all'uso di una shell (es: /bin/sh).

# .procmailrc Template
# Definizione delle VARIABILI utilizzate nello script
SHELL = /bin/sh
#Note: On some systems -xSubject: has to be -x"Subject: "
SUBJ_=`formail -c -xSubject: \
| sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
#MAILDIR=$HOME #default
#LOGFILE=$HOME/procmail.log #da utilizzare in caso di errore

# Controlliamo se il messaggio è indirizzato all'utente
* ^TO_utente@tecnes.com
# Ignore messages for daemons
# Avoid email loops
* ! ^X-Loop: utente@tecnes.com
:0 Whc:dejatold.lock # controlla la presenza del mittente nella cache
| formail -rD 8192 $HOME/dejatold.cache
:0 ehc # se il mittente non viene trovato nella cache
| (formail -r \
-A"X-Loop: utente@tecnes.com" \
-I"Subject: Out of Office Reply: $SUBJ_" ; \
echo "Sarò assente dal 15/08/2007 al 31/08/2007." ; \
echo "" ; \
echo "Per urgenze potete far riferimento al collega Pippo" ; \
echo " pippo@tecnes.com" ; \
echo "" ; \
echo "testprocmail" ; \
echo "" ; \
echo "Tecnes Milano Srl" ; \
echo "Via Schiaparelli, 2" ; \
echo "20125 - Milano" ; \
echo "tel. +39 02 67101036" ) \
| /usr/lib/sendmail -oi -t

NOTE su formail
"formail -rD 8196 nomefile" controlla la presenza del sender all'interno del file
"formail -r" prepara un messaggio di risposta


This approach is normally how it looks quite best. Every one about health issues demonstrates really are made using many different ways of life proficiency. I propose you the technology rather a lot. Offer Financing to Customers

Inviato da: james thomas il: 2019-01-28 08:12:58.496613

Every word in this piece of work is very clear and your passion for this topic shines. Please continue your work in this area and I hope to see more from you in the future. chat rooms

Inviato da: james thomas il: 2019-02-16 18:57:59.254776

I would like to thank you for the efforts you have made in writing this article Apk uploads

Inviato da: Dori il: 2018-08-29 07:58:16.009965

Je vous remercie de l'information! Je cherchais et ne pouvait pas trouver. Vous me aidé! godaddy.com 480-505

Inviato da: Sophie Miller il: 2018-10-03 13:50:05.276385 Very interesting topic, thanks for posting.

Inviato da: mywifiext il: 2018-11-26 12:35:42.052061 the nice blog recently i am searching about imvu and fond some interesting thing about it to earn free credit in imvu

Inviato da: kelvin nox il: 2019-02-17 17:50:17.124247 A lot of dissertation webpages on line as you may get hold of secured Shoreline Amphitheatre tickets in a dark listed during the webpage.

Inviato da: james thomas il: 2019-01-16 16:30:29.039008 awsome work really enjoyable Wiggly racing on PC

Inviato da: Wiggly racing on PC il: 2018-10-17 08:12:19.147628 hope so its useful for everyone techwikies

Inviato da: deciaq il: 2018-08-29 08:10:05.382157 Soon the page may perhaps irrefutably finally end up mythical in the middle every last posting lots of individuals best depression quotes, by reason of rigorous article content together with critical reviews together with recommendations.

Inviato da: james thomas il: 2019-02-06 19:57:20.908329 There a few interesting points on time on this page but I don’t determine if these center to heart. You can find some validity but I most certainly will take hold opinion until I look into it further. Great article , thanks so we want more! Included with FeedBurner too บาคาร่า

Inviato da: jack il: 2018-12-16 08:57:57.875616 Hello! I am thoroughly enjoying your blog. Do you have any helpful hints for rookie blog writers? I'd certainly appreciate it. Thank you. www.vicsolar.com.au

Inviato da: Martin il: 2018-07-23 10:14:50.530868 Wiggly racing on PC

Inviato da: Mike Rock il: 2018-10-17 08:14:42.66087 it amazing

Inviato da: PC-Apps Online il: 2018-10-13 10:25:24.592813 I favor your post. It happens to be exceptional to determine somebody explain in words from a center plus good quality using this type of vital subject theme could possibly be quickly seen. amir arazi

Inviato da: amir arazi il: 2019-01-10 21:11:20.14013 hey there is the best ways to earn credit in IMVU and enjoy it.

Inviato da: kelvin nox il: 2019-02-17 17:54:26.092687 I would like to thank you for the efforts you have made in writing tele mods

Inviato da: Dewani il: 2018-08-29 08:07:52.238819 awsome work really enjoyable firmware feeds

Inviato da: Dasil il: 2018-08-29 08:05:01.3387 Ho letto alcune buone cose qui. Sicuramente vale la pena segnalibro per la rivisitazione. Mi stupisco di quanto impegno hai messo per creare un sito web informativo così grande hotmail login

Inviato da: David il: 2018-07-18 17:31:32.013207 it was really best art Apk uploads

Inviato da: Dami il: 2018-08-29 08:01:37.407297 Everybody enjoys the majority of the discussion posts, When i basically encountered, I had desire additional information on that, simply because it truly is brilliant., Having on account of receive distribution. Best Charging Station

Inviato da: james thomas il: 2019-01-11 07:29:24.060475 Definitely worth bookmarking for the review usb drivers hub

Inviato da: Decia il: 2018-08-29 07:55:24.419725 I am thoroughly enjoying your blog

Inviato da: Run, sausage, run For PC il: 2018-09-28 12:11:47.177064 its so useful for everyone https://appspcfaq.com/download-and-play-wiggly-racing-on-pc/

Inviato da: Mike Rock il: 2018-10-17 08:08:45.630169 hacked games free unblocked games online

Inviato da: fbram il: 2018-06-14 13:32:35.686341 I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.

Inviato da: RajputSeo il: 2019-02-21 15:11:44.118644 Cool and awesome i love it Run, sausage, run For PC

Inviato da: Nabil il: 2018-09-28 12:14:03.305936 BKp4OE ikpfvvaisbiy, [url=http://fzbivsbnyqql.com/]fzbivsbnyqql[/url], [link=http://vuhccpkftwbu.com/]vuhccpkftwbu[/link], http://jfollkpcqiww.com/

Inviato da: bhzekxukvkz il: 2015-09-10 17:44:30.487778 I would like to thank you for the efforts you have made in writing this article. happy wheels

Inviato da: jedy mark il: 2018-06-22 04:35:26.521403 The article is worth to read. The clarity and balance that reflects from this blog post. These days blogs are used everywhere. The idea that we recieve from them are unevitable. The art needed is the power of creativity within yourself via learning, thinking, creating and rigorous study. Therefore the article is truely helpful for the readers. Thanks a lot for writing such a wonderful article. I await your next article with great egarness. car detailing dubai

Inviato da: james thomas il: 2019-01-19 18:04:11.257894 perfetto! grazie 1000 Pol

Inviato da: Pol il: 2012-05-28 12:00:33.866247 Thank you you have been shared the message to install the automatic message that it help to many much for me.

Inviato da: run 3 il: 2018-08-31 03:50:03.12778 Ottimo articolo, grazie!

Inviato da: Smartphone il: 2015-09-15 21:29:30.148043 I have read some good things here. Definitely worth bookmarking for the review Android Stock Firmware

Inviato da: Adam il: 2018-09-10 13:57:50.222474

Scrivi un commento: