On Sun, Nov 07, 2021 at 04:39:34PM -0300, Rafael Azevedo wrote:
> This is the kind of knowledge that comes from Mars...
The `jq` interpreter is a rather handy tool. It is is worth learning if
you spend enough time working with JSON data. No Martian passport
required, just enough incentive and
Where did Viktor come from...
Definitely not from this Earth.
This is the kind of knowledge that comes from Mars...
For more humans like you here... cheers!
Em sex., 5 de nov. de 2021 às 22:04, Viktor Dukhovni <
postfix-us...@dukhovni.org> escreveu:
> On Sat, Nov 06, 2021 at 12:32:14AM +0100,
There are times when you get temporary blocked and the message has to be
delivery.
For those cases, hold is a great tool. I do use HOLD for yahoo deliveries
very often.
BR,
R
Em qui., 28 de out. de 2021 às 06:12, Bastian Blank escreveu:
> On Thu, Oct 28, 2021 at 10:39:52AM +0200, richard
On Fri, 5 Nov 2021 21:03:34 -0400
Viktor Dukhovni wrote:
> > I have run the jq script for a week or so ($days = 5) and it works
> > like a charm :-)
>
> You're welcome. Of course if the number of days will never vary in
> your case, it would be simpler to just hard-code the number into the
>
On Sat, Nov 06, 2021 at 12:32:14AM +0100, richard lucassen wrote:
> > > postqueue -j | jq -nr --argjson days $days '
> > > ...
>
> I have run the jq script for a week or so ($days = 5) and it works like
> a charm :-)
You're welcome. Of course if the number of days will never
On Fri, 29 Oct 2021 00:24:36 -0400
Viktor Dukhovni wrote:
> On Thu, Oct 28, 2021 at 10:14:15PM -0400, Viktor Dukhovni wrote:
>
> > postqueue -j | jq -nr --argjson $days '
>
> Correction, that first line should be:
>
> postqueue -j | jq -nr --argjson days $days '
>
> Setting the
On Fri, 29 Oct 2021 00:24:36 -0400
Viktor Dukhovni wrote:
> On Thu, Oct 28, 2021 at 10:14:15PM -0400, Viktor Dukhovni wrote:
>
> > postqueue -j | jq -nr --argjson $days '
>
> Correction, that first line should be:
>
> postqueue -j | jq -nr --argjson days $days '
>
> Setting the
On Fri, Oct 29, 2021 at 05:26:53AM +0100, Dominic Raferd wrote:
> Always great to learn from a master! I had not used postqueue -j, json
> or jq until yesterday...
Here's a more convincing demo, mock partial "postqueue -j" output:
$ jq -cn '
now as $t
|
On 29/10/2021 05:24, Viktor Dukhovni wrote:
On Thu, Oct 28, 2021 at 10:14:15PM -0400, Viktor Dukhovni wrote:
postqueue -j | jq -nr --argjson $days '
Correction, that first line should be:
postqueue -j | jq -nr --argjson days $days '
Setting the "jq" variabe "$days" to the shell
On Thu, Oct 28, 2021 at 10:14:15PM -0400, Viktor Dukhovni wrote:
> postqueue -j | jq -nr --argjson $days '
Correction, that first line should be:
postqueue -j | jq -nr --argjson days $days '
Setting the "jq" variabe "$days" to the shell variable "$days".
The rest is unchanged:
>
On 29/10/21 2:53 pm, Peter wrote:
On 28/10/21 9:39 pm, richard lucassen wrote:
Hello list,
Anyone here who wrote a shell script that deletes messages older than X
days from the hold queue?
It's just a one-liner with postqueue -j and a bit of perl:
postqueue -j | perl -MJSON -MData::Dumper
On Thu, Oct 28, 2021 at 12:01:35PM +0100, Dominic Raferd wrote:
> # obtain QIDs, if any
> QIDS=( $("$POSTQUEUE" -j|grep -F '"queue_name": "hold"'|"$JQ" '.arrival_time,
> .queue_id'|sed 'N;s/\n//;s/"/,/g'|awk -F, -v BEFORE="$BEFORE" '{if
> ($1 echo -n "${#QIDS[*]} mail(s) earlier than $1 found
On 28/10/21 9:39 pm, richard lucassen wrote:
Hello list,
Anyone here who wrote a shell script that deletes messages older than X
days from the hold queue?
It's just a one-liner with postqueue -j and a bit of perl:
postqueue -j | perl -MJSON -MData::Dumper -ne 'my $j = decode_json($_);
next
On Thu, 28 Oct 2021 12:01:35 +0100
Dominic Raferd wrote:
> I attach a script that can do it.
Thnx, but I did not ask to write one, I'm just too lazy to reinvent the
wheel :)
I will put it to the test anyway :)
--
richard lucassen
http://contact.xaq.nl/
I attach a script that can do it.
On 28/10/2021 11:56, richard lucassen wrote:
On Thu, 28 Oct 2021 12:26:31 +0200
Matus UHLAR - fantomas wrote:
Why do you have _any_ messages in the hold queue? Don't do that!
kind of quarantine I guess.
Yep. Most of these messages are bank phishing mails
On Thu, 28 Oct 2021 12:26:31 +0200
Matus UHLAR - fantomas wrote:
> >Why do you have _any_ messages in the hold queue? Don't do that!
>
> kind of quarantine I guess.
Yep. Most of these messages are bank phishing mails BTW, I delete the
hold queue once a day. But never mind, was just wondering
On Thu, Oct 28, 2021 at 10:39:52AM +0200, richard lucassen wrote:
Anyone here who wrote a shell script that deletes messages older than X
days from the hold queue?
On 28.10.21 11:10, Bastian Blank wrote:
Why do you have _any_ messages in the hold queue? Don't do that!
kind of quarantine I
On Thu, Oct 28, 2021 at 10:39:52AM +0200, richard lucassen wrote:
> Anyone here who wrote a shell script that deletes messages older than X
> days from the hold queue?
Why do you have _any_ messages in the hold queue? Don't do that!
Bastian
--
You're too beautiful to ignore. Too much woman.
Hello list,
Anyone here who wrote a shell script that deletes messages older than X
days from the hold queue?
R.
--
richard lucassen
http://contact.xaq.nl/
19 matches
Mail list logo