🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.mail.mta
Article #50117

Re: Jak nadać priorytet na mail + Cron jako przypominacz

#50117
From: Paweł Muszyński
Date: Thu, 08 Feb 2007 13:10
39 lines
2301 bytes
Zatara napisał(a):
>>>> W nagłówkach wiadomości :
>>> ok ale nie mam naglowka !
>>> korzystam z polecenia mail ktore mi kron odpala co jakis tam czas.
>>>> Importance: high
>>>> X-Priority: 1 (Highest)
>>> i gdzie to mam sobie wpisac ?
>>> WYSYLAM WIADOMOSC JEDYNIE Z TEMATEM bez tresci.
>>> chyba ze musze jakas tresc miec, ale jak to zrobic z crona ?
>> Do dowolnego pliku, np :
>>
>> From: a...@cos.pl
>> Importance: high
>> X-Priority: 1 (Highest)
>> To: : k...@cos.pl
>> Subject: cos jakos
>>
>> tresc tresc tresc  tresc tresc tresc tresc tresc tresc
>> tresc tresc tresc tresc tresc tresc tresc tresc tresc
>>
>> i następnie plik potraktować via sendmail, czyli :
> NIE MAM SENMAILA

masz /usr/bin/sendmail ;-)

>> cat plik | sendmail -t
>>
> cron nie przyjmuje takiego rozwiazania !
> 
> za pierona nie chce wyslac?
> Pawle moze jakis przyklad jak to w cronie wstrzyknac !
Zrób sobie skrypt:
#!/bin/bash
cat plik | sendmail -t

i wywołaj go z crona :-)

-- 
Paweł Muszyński
Technical Details
Message-ID: <eqf7i9$310$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <1170839845.831198.260180@k78g2000cwa.googlegroups.com> <mailman.14.1170840965.864.pcmm@histeria.pl> <1170847484.274185.322790@s48g2000cws.googlegroups.com> <mailman.15.1170854484.864.pcmm@histeria.pl> <1170932526.648911.24940@l53g2000cwa.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Paweł Muszyński
 <pmuch.NOSPAM@bolinko.wytnijto.org>
Newsgroups: pl.comp.mail.mta
Subject: Re: Jak nadać priorytet na mail + Cron jako
 przypominacz
Date: Thu, 08 Feb 2007 14:10:59 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 39
Message-ID: <eqf7i9$310$1@atlantis.news.tpi.pl>
References: <1170839845.831198.260180@k78g2000cwa.googlegroups.com>   <mailman.14.1170840965.864.pcmm@histeria.pl>   <1170847484.274185.322790@s48g2000cws.googlegroups.com>   <mailman.15.1170854484.864.pcmm@histeria.pl> <1170932526.648911.24940@l53g2000cwa.googlegroups.com>
NNTP-Posting-Host: cze50.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: atlantis.news.tpi.pl 1170940297 3104 83.19.190.50 (8 Feb 2007 13:11:37 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Thu, 8 Feb 2007 13:11:37 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; pl; rv:1.8) Gecko/20051025 Thunderbird/1.5 Mnenhy/0.6.0.104
In-Reply-To: <1170932526.648911.24940@l53g2000cwa.googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit