Thread View: news.software.nntp
25 messages
25 total messages
Started by Jon Bendtsen
Wed, 25 Feb 2009 12:25
posting oooold email archive to my inn2 server
Author: Jon Bendtsen
Date: Wed, 25 Feb 2009 12:25
Date: Wed, 25 Feb 2009 12:25
19 lines
1687 bytes
1687 bytes
Hi I have an old lurker email archive which i would like to port to a inn2 newsgroup. I run my own server. i used csplit to split the lurker mbox file into 1 email pr. file and then mailpost to actually post it to the newsgroup. However, it didnt get posted, and i got this error message: inews failed: inews: cannot send article to server: 441 437 Too old -- "Mon, 13 Dec 2004 20:59:58 +0100" inews: article not posted So, how do i force inn to post them anyway? JonB ps: there is an error in the mailpost script because it does not exit with an exitcode different from 0 when it hits the above error message.
Re: posting oooold email archive to my inn2 server
Author: Karl Kleinpaste
Date: Wed, 25 Feb 2009 12:44
Date: Wed, 25 Feb 2009 12:44
5 lines
1565 bytes
1565 bytes
Jon Bendtsen <noone@example.com> writes: > inews failed: inews: cannot send article to server: 441 437 Too old > So, how do i force inn to post them anyway? innd -c0
Re: posting oooold email archive to my inn2 server
Author: Jon Bendtsen
Date: Wed, 25 Feb 2009 12:58
Date: Wed, 25 Feb 2009 12:58
15 lines
1591 bytes
1591 bytes
Karl Kleinpaste wrote: > Jon Bendtsen <noone@example.com> writes: >> inews failed: inews: cannot send article to server: 441 437 Too old >> So, how do i force inn to post them anyway? > > innd -c0 okay, will this also fix the error message i get from todays wikidiff? X-Changes since February..." inews: article not posted JonB ps: mailpost exits with error code 0 but no post
Re: posting oooold email archive to my inn2 server
Author: Julien ÉLIE
Date: Wed, 25 Feb 2009 18:32
Date: Wed, 25 Feb 2009 18:32
20 lines
1907 bytes
1907 bytes
Hi Jon,
> ps: there is an error in the mailpost script because it does not
> exit with an exitcode different from 0 when it hits the above error
> message.
The problem is that I read in mailpost, at the end of mailArtAndDie():
exit (0) ; # Using a non-zero exit may cause problems.
I do not know the reason for that but I believe there is one...
Maybe because of its being used in newsfeeds?
I do not see other scripts mailpost interacts with.
--
Julien ÉLIE
« Moi, je n'ai pas goûté le sel de cette plaisanterie. » (Astérix)
Re: posting oooold email archive to my inn2 server
Author: Julien ÉLIE
Date: Wed, 25 Feb 2009 18:48
Date: Wed, 25 Feb 2009 18:48
23 lines
1997 bytes
1997 bytes
Hi Jon,
>> innd -c0
To change the "c" param when INN is running, you can use:
ctlinnd param c 0
(The default is 10 -- for 10 days.)
> okay, will this also fix the error message i get from todays wikidiff?
>
> X-Changes since February..." inews: article not posted
Is it a header named "X-Changes since February" ? Then it is invalid.
Though I do not understand why the error message is not more explicit.
--
Julien ÉLIE
« It is better to sit in silence and appear ignorant,
than to open your mouth and remove all doubt. »
Re: posting oooold email archive to my inn2 server
Author: Jeffrey M. Vinocur
Date: Thu, 26 Feb 2009 02:46
Date: Thu, 26 Feb 2009 02:46
30 lines
2140 bytes
2140 bytes
In article <go43ra$90n$1@news.trigofacile.com>, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >Hi Jon, > >>> innd -c0 > >To change the "c" param when INN is running, you can use: > ctlinnd param c 0 > >(The default is 10 -- for 10 days.) Note, however, that by attempting to feed the articles without making this change, they have been recorded into history and will not be accepted even if offered again. There are a few solutions to this problem; if you are using a brand new server, it's easiest to simply wipe history. If not, you have to either wipe history and rebuild from spool, or else figure out how to remove only the articles you are worried about and leave the rest. Alternatively, you can wait the length of time of /remember/ in expire.ctl (perhaps after changing that time to a shorter one). If you can give us more details about your server, or a sense of which of these options work for you, we can try to help further. -- Jeffrey M. Vinocur jeff@litech.org
Re: posting oooold email archive to my inn2 server
Author: Jon Bendtsen
Date: Thu, 26 Feb 2009 08:12
Date: Thu, 26 Feb 2009 08:12
29 lines
2439 bytes
2439 bytes
Jeffrey M. Vinocur wrote: > In article <go43ra$90n$1@news.trigofacile.com>, > Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >> Hi Jon, >> >>>> innd -c0 >> To change the "c" param when INN is running, you can use: >> ctlinnd param c 0 >> >> (The default is 10 -- for 10 days.) > > Note, however, that by attempting to feed the articles without > making this change, they have been recorded into history and will > not be accepted even if offered again. > > There are a few solutions to this problem; if you are using a > brand new server, it's easiest to simply wipe history. If not, > you have to either wipe history and rebuild from spool, or else > figure out how to remove only the articles you are worried about > and leave the rest. Alternatively, you can wait the length of > time of /remember/ in expire.ctl (perhaps after changing that > time to a shorter one). > > If you can give us more details about your server, or a sense of > which of these options work for you, we can try to help further. I changed the Message id header in every message. like cat $file | sed -e "s///" | mailpost $group
Re: posting oooold email archive to my inn2 server
Author: Jon Bendtsen
Date: Thu, 26 Feb 2009 08:18
Date: Thu, 26 Feb 2009 08:18
51 lines
2911 bytes
2911 bytes
Julien ÉLIE wrote:
> Hi Jon,
>
>>> innd -c0
>
> To change the "c" param when INN is running, you can use:
> ctlinnd param c 0
>
> (The default is 10 -- for 10 days.)
>
>
>> okay, will this also fix the error message i get from todays wikidiff?
>>
>> X-Changes since February..." inews: article not posted
>
> Is it a header named "X-Changes since February" ? Then it is invalid.
> Though I do not understand why the error message is not more explicit.
I did check, and no, there is NO such header.
The top of the message are:
1 Received: from smtp.internal ([192.168.12.43]) by
mail.internal with Microsoft SMTPSVC(6.0.3790.3959);
2 Wed, 25 Feb 2009 13:47:25 +0100
3 Received: from wiki.internal ([192.168.12.39])
4 by smtp.internal with smtp (Exim 4.69)
5 (envelope-from <root@internal>)
6 id 1LcJAa-0004aO-Nx
7 for wikidiff@internal; Wed, 25 Feb 2009 13:47:25 +0100
8 Received: by wiki.internal (sSMTP sendmail emulation); Wed,
25 Feb 2009 13:47:24 +0100
9 Date: Wed, 25 Feb 2009 13:47:24 +0100
10 To: wikidiff@internal
11 Subject: Wikidiff since February 24th 2009 @ 13:47:21
12 From: root@internal
13 Message-Id: <dE1LcJAa-0004aO-Nx@smtp.internal>
14 Return-Path: root@internal
15 X-OriginalArrivalTime: 25 Feb 2009 12:47:25.0863 (UTC)
FILETIME=[35D89B70:01C99747]
The body of the message starts now. It clearly does complain about
the line 19.
16
17
18
19 Changes since February 24th 2009 @ 13:47:21
20 =======================================================
Re: posting oooold email archive to my inn2 server
Author: Jon Bendtsen
Date: Thu, 26 Feb 2009 08:21
Date: Thu, 26 Feb 2009 08:21
32 lines
2190 bytes
2190 bytes
Julien ÉLIE wrote: > Hi Jon, > >> ps: there is an error in the mailpost script because it does not >> exit with an exitcode different from 0 when it hits the above error >> message. > > The problem is that I read in mailpost, at the end of mailArtAndDie(): > > exit (0) ; # Using a non-zero exit may cause problems. Proper error handling is importent. Errors should propergate until they can be dealt with. > I do not know the reason for that but I believe there is one... > Maybe because of its being used in newsfeeds? > I do not see other scripts mailpost interacts with. I use it like this: fetchmail gets email from pop3 server which then runs maildrop and mailfilter which checks the to address and sets the correct group. Then i call mailpost. The result is that if there is an error, then mailpost wont show this error to maildrop which means the bad message wont spill over and be saved in a Maildir storage i can handle manually. JonB
Re: posting oooold email archive to my inn2 server
Author: Julien ÉLIE
Date: Thu, 26 Feb 2009 19:15
Date: Thu, 26 Feb 2009 19:15
26 lines
2201 bytes
2201 bytes
Hi Jon, >>> X-Changes since February..." inews: article not posted > > 15 X-OriginalArrivalTime: 25 Feb 2009 12:47:25.0863 (UTC) > FILETIME=[35D89B70:01C99747] > > The body of the message starts now. It clearly does complain about > the line 19. > > 16 > 17 > 18 > 19 Changes since February 24th 2009 @ 13:47:21 > 20 ======================================================= I think mailpost still considers line 19 to be a header. Are you sure that lines 16, 17 and 18 are totally empty? What if you delete them and rewrite them (with only return carriages)? -- Julien ÉLIE « Les ordinateurs dans le futur ne pèseront peut-être pas plus de 1,5 tonne. » (Popular Mechanics, 1949)
Re: posting oooold email archive to my inn2 server
Author: Jon Bendtsen
Date: Thu, 26 Feb 2009 21:20
Date: Thu, 26 Feb 2009 21:20
23 lines
2048 bytes
2048 bytes
Julien ÉLIE wrote: > Hi Jon, > >>>> X-Changes since February..." inews: article not posted >> >> 15 X-OriginalArrivalTime: 25 Feb 2009 12:47:25.0863 (UTC) >> FILETIME=[35D89B70:01C99747] >> >> The body of the message starts now. It clearly does complain about >> the line 19. >> >> 16 >> 17 >> 18 >> 19 Changes since February 24th 2009 @ 13:47:21 >> 20 ======================================================= > > I think mailpost still considers line 19 to be a header. > Are you sure that lines 16, 17 and 18 are totally empty? > What if you delete them and rewrite them (with only return carriages)? I agree that it still considers line 19 a header. I will check if 16, 17 and 18 are empty.
Re: posting oooold email archive to my inn2 server
Author: Jon Bendtsen
Date: Fri, 27 Feb 2009 11:25
Date: Fri, 27 Feb 2009 11:25
25 lines
2234 bytes
2234 bytes
Jon Bendtsen wrote: > Julien ÉLIE wrote: >> Hi Jon, >> >>>>> X-Changes since February..." inews: article not posted >>> 15 X-OriginalArrivalTime: 25 Feb 2009 12:47:25.0863 (UTC) >>> FILETIME=[35D89B70:01C99747] >>> >>> The body of the message starts now. It clearly does complain about >>> the line 19. >>> >>> 16 >>> 17 >>> 18 >>> 19 Changes since February 24th 2009 @ 13:47:21 >>> 20 ======================================================= >> I think mailpost still considers line 19 to be a header. >> Are you sure that lines 16, 17 and 18 are totally empty? >> What if you delete them and rewrite them (with only return carriages)? > > I agree that it still considers line 19 a header. I will check if > 16, 17 and 18 are empty. They are indeed empty. They do have a dos? newline ^M which is strange because it runs on a Linux debian.
Re: posting oooold email archive to my inn2 server
Author: Julien ÉLIE
Date: Fri, 27 Feb 2009 18:56
Date: Fri, 27 Feb 2009 18:56
50 lines
2684 bytes
2684 bytes
Hi Jon,
>> I agree that it still considers line 19 a header. I will check if
>> 16, 17 and 18 are empty.
>
> They are indeed empty. They do have a dos? newline ^M which is
> strange because it runs on a Linux debian.
Thanks!
It was a bug in mailpost. Fixed in INN 2.4.6.
--- mailpost.in 2009-02-27 18:54:27 UTC (rev 8359)
+++ mailpost.in 2009-02-27 18:56:16 UTC (rev 8360)
@@ -147,7 +147,8 @@
}
}
-chomp $_;
+# Remove (CR)LF at the end of each line.
+s/\r?\n$//;
my $line = undef;
if (/^From\s+([^\s]+)\s+/) {
@@ -167,7 +168,8 @@
$_ = <STDIN> ;
last unless defined $_ ;
- chomp ;
+ # Remove (CR)LF at the end of each line.
+ s/\r?\n$//;
# Gather up a single header with possible continuation lines into $line.
if (/^\s+/) {
@@ -428,7 +430,8 @@
}
for (;;) {
$_ = <TMPFILE> ;
- chomp ;
+ # Remove (CR)LF at the end of each line.
+ s/\r?\n$//;
last if defined($_) && /^$/ ;
if (/^Newsgroups:\s*/sio) {
--
Julien ÉLIE
« Il ne faut compter que sur soi-même.
Et encore, pas beaucoup. » (Tristan Bernard)
Re: posting oooold email archive to my inn2 server
Author: Julien ÉLIE
Date: Fri, 27 Feb 2009 18:59
Date: Fri, 27 Feb 2009 18:59
30 lines
2181 bytes
2181 bytes
Hi Jon,
>> The problem is that I read in mailpost, at the end of mailArtAndDie():
>>
>> exit (0) ; # Using a non-zero exit may cause problems.
>
> Proper error handling is importent. Errors should propergate until
> they can be dealt with.
Change added to INN 2.5.0. (You can backport it to your INN 2.4.x if you want.)
--- mailpost.in 2009-02-27 18:50:53 UTC (rev 8358)
+++ mailpost.in 2009-02-27 18:54:27 UTC (rev 8359)
@@ -510,8 +510,9 @@
close SENDMAIL ;
# unlink $tmpfile ;
-
- exit (0) ; # Using a non-zero exit may cause problems.
+
+ # We use here a non-zero exit. It should normally not cause problems.
+ exit(1);
}
--
Julien ÉLIE
« La moitié des hommes politiques sont des bons à rien.
Les autres sont prêts à tout. » (Coluche)
Re: posting oooold email archive to my inn2 server
Author: Jon Bendtsen
Date: Fri, 27 Feb 2009 19:51
Date: Fri, 27 Feb 2009 19:51
31 lines
2273 bytes
2273 bytes
Julien ÉLIE wrote: > Hi Jon, > >>> The problem is that I read in mailpost, at the end of mailArtAndDie(): >>> >>> exit (0) ; # Using a non-zero exit may cause >>> problems. >> >> Proper error handling is importent. Errors should propergate until >> they can be dealt with. > > Change added to INN 2.5.0. (You can backport it to your INN 2.4.x if > you want.) > > --- mailpost.in 2009-02-27 18:50:53 UTC (rev 8358) > +++ mailpost.in 2009-02-27 18:54:27 UTC (rev 8359) > @@ -510,8 +510,9 @@ > close SENDMAIL ; > > # unlink $tmpfile ; > - > - exit (0) ; # Using a non-zero exit may cause problems. > + > + # We use here a non-zero exit. It should normally not cause problems. > + exit(1); I already changed my own script. i changed ALL exit(0) to another number. First exit 0 to exit 1, then 2, then ... So far i have hit 3 and 6. I think 3 is "known Message-ID" and 6 is some other error (this one gives me an error message).
Re: posting oooold email archive to my inn2 server
Author: Julien ÉLIE
Date: Fri, 27 Feb 2009 20:08
Date: Fri, 27 Feb 2009 20:08
28 lines
2448 bytes
2448 bytes
Hi Jon,
> I already changed my own script. i changed ALL exit(0) to another
> number. First exit 0 to exit 1, then 2, then ...
>
> So far i have hit 3 and 6. I think 3 is "known Message-ID" and 6 is
> some other error (this one gives me an error message).
The expected behaviour of mailpost is said in the man page when it receives
a "known Message-ID":
If the article has been seen before (mailpost records the Message-ID
of each article it handles), then the article will be silently dropped.
I do not see a reason why we should really change that and return an error.
mailpost also exits silently when fed nothing (empty input).
However, it is true that we should return an error if mailpost could not
write its temporary file or fork a process upon crossposting.
--
Julien ÉLIE
« A man inserted an 'ad' in the classifieds: "Wife wanted".
Next day he received a hundred letters. They all said
the same thing: "You can have mine." »
Re: posting oooold email archive to my inn2 server
Author: Jon Bendtsen
Date: Fri, 27 Feb 2009 22:00
Date: Fri, 27 Feb 2009 22:00
43 lines
3039 bytes
3039 bytes
Julien ÉLIE wrote: > Hi Jon, > >> I already changed my own script. i changed ALL exit(0) to another >> number. First exit 0 to exit 1, then 2, then ... >> >> So far i have hit 3 and 6. I think 3 is "known Message-ID" and 6 is >> some other error (this one gives me an error message). > > The expected behaviour of mailpost is said in the man page when it receives > a "known Message-ID": > > If the article has been seen before (mailpost records the Message-ID > of each article it handles), then the article will be silently dropped. > > I do not see a reason why we should really change that and return an error. > mailpost also exits silently when fed nothing (empty input). i dont see why exit code 0 should mean one of 2 things happened. Either the post got posted or it was dropped If it was dropped, i want to know why, so i can handle it. Silently dropping stuff and returning the message "everything is okay" is not something i consider good data management. Rather than thinking about if the exit(0) was correct i changed all that was not exit($status) and figured i could handle it later. This paied off. Today i have posted alot of old mail messages to our new archive system, and i have been seeing posts which was "rejected" allergedly because the Message-ID had been seen earlier. However when manually changing the Message-ID and then reposting it, there was no duplicates in the group. There might been some emails that was stored on 2 different lists, but was really a single email to both lists. Or more lists. However i also experienced that the post would just go wrong for some reason and if i tried again, then it would all work. JonB
Re: posting oooold email archive to my inn2 server
Author: Russ Allbery
Date: Sat, 28 Feb 2009 01:27
Date: Sat, 28 Feb 2009 01:27
31 lines
2644 bytes
2644 bytes
Jon Bendtsen <noone@example.com> writes:
>> The expected behaviour of mailpost is said in the man page when it
>> receives a "known Message-ID":
>>
>> If the article has been seen before (mailpost records the Message-ID
>> of each article it handles), then the article will be silently dropped.
>>
>> I do not see a reason why we should really change that and return an
>> error. mailpost also exits silently when fed nothing (empty input).
>
> i dont see why exit code 0 should mean one of 2 things happened.
> Either the post got posted
> or it was dropped
> If it was dropped, i want to know why, so i can handle it. Silently
> dropping stuff and returning the message "everything is okay" is not
> something i consider good data management.
Then what you're arguing with is the "silently" part, not the exit
status. You're basically saying that mailpost shouldn't silently drop
articles that it's seen before.
The reason why it does this is because it provides better behavior in the
presence of crossposting. But perhaps someone will want to develop an
option so that they can choose the behavior they want.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: posting oooold email archive to my inn2 server
Author: D. Stussy
Date: Sat, 28 Feb 2009 08:00
Date: Sat, 28 Feb 2009 08:00
35 lines
3118 bytes
3118 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message news:87fxhze4fs.fsf@windlord.stanford.edu... > Jon Bendtsen <noone@example.com> writes: > >> The expected behaviour of mailpost is said in the man page when it > >> receives a "known Message-ID": > >> > >> If the article has been seen before (mailpost records the Message-ID > >> of each article it handles), then the article will be silently dropped. > >> > >> I do not see a reason why we should really change that and return an > >> error. mailpost also exits silently when fed nothing (empty input). > > > > i dont see why exit code 0 should mean one of 2 things happened. > > Either the post got posted > > or it was dropped > > If it was dropped, i want to know why, so i can handle it. Silently > > dropping stuff and returning the message "everything is okay" is not > > something i consider good data management. > > Then what you're arguing with is the "silently" part, not the exit > status. You're basically saying that mailpost shouldn't silently drop > articles that it's seen before. > > The reason why it does this is because it provides better behavior in the > presence of crossposting. But perhaps someone will want to develop an > option so that they can choose the behavior they want. Option: OK, but why? If mailpost has seen it before, then chances are the message ID will still be in the news server's history file (assuming it hasn't expired out) and will reject as a duplicate. I don't think such an option would therefore be useful.
Re: posting oooold email archive to my inn2 server
Author: Julien ÉLIE
Date: Sat, 28 Feb 2009 08:14
Date: Sat, 28 Feb 2009 08:14
18 lines
2192 bytes
2192 bytes
Hi Jon, > Today i have posted alot of old mail messages to our new archive > system, and i have been seeing posts which was "rejected" allergedly > because the Message-ID had been seen earlier. However when manually > changing the Message-ID and then reposting it, there was no > duplicates in the group. You may want to use the "-c nn" option with mailpost. It waits for nn seconds before posting the articles it receives (then, if it detects a crosspost, it properly sends it). -- Julien ÉLIE « -- Ils devraient pourtant savoir que le sanglier c'est sacré pour nous. -- Et toi, tu as une sacrée façon de l'adorer. » (Astérix)
Re: posting oooold email archive to my inn2 server
Author: Julien ÉLIE
Date: Sat, 28 Feb 2009 08:20
Date: Sat, 28 Feb 2009 08:20
39 lines
2989 bytes
2989 bytes
Hi D. Stussy,
>> The reason why it does this is because it provides better behavior in the
>> presence of crossposting. But perhaps someone will want to develop an
>> option so that they can choose the behavior they want.
We only have not to execute the test:
if (defined $DATABASE{$message_id}) {
exit 0 if (!$opt_c);
}
"-c" is used for crossposts, as you mention. So it will not change the behaviour
of mailpost when crossposts are seen (with "-c").
> Option: OK, but why? If mailpost has seen it before, then chances are the
> message ID will still be in the news server's history file (assuming it
> hasn't expired out) and will reject as a duplicate. I don't think such an
> option would therefore be useful.
Indeed. If I bypass the test:
% cat test | ./mailpost trigofacile.test
inews failed: inews: cannot send article to server: 441 435 Duplicate inews: article not posted
zsh: done cat test |
zsh: exit 1 ./mailpost trigofacile.test
[with exit 1 -- but maybe we could just exit(1) after the test when "-c" is not used,
and write a message error to say what happened]
Is it what you want? or another thing?
--
Julien ÉLIE
« -- Ils devraient pourtant savoir que le sanglier c'est sacré pour nous.
-- Et toi, tu as une sacrée façon de l'adorer. » (Astérix)
Re: posting oooold email archive to my inn2 server
Author: Jon Bendtsen
Date: Sat, 28 Feb 2009 09:00
Date: Sat, 28 Feb 2009 09:00
45 lines
2800 bytes
2800 bytes
Julien ÉLIE wrote:
> Hi D. Stussy,
>
>>> The reason why it does this is because it provides better behavior in
>>> the
>>> presence of crossposting. But perhaps someone will want to develop an
>>> option so that they can choose the behavior they want.
>
> We only have not to execute the test:
>
> if (defined $DATABASE{$message_id}) {
> exit 0 if (!$opt_c);
> }
>
> "-c" is used for crossposts, as you mention. So it will not change the
> behaviour
> of mailpost when crossposts are seen (with "-c").
>
>
>> Option: OK, but why? If mailpost has seen it before, then chances
>> are the
>> message ID will still be in the news server's history file (assuming it
>> hasn't expired out) and will reject as a duplicate. I don't think
>> such an
>> option would therefore be useful.
>
> Indeed. If I bypass the test:
>
> % cat test | ./mailpost trigofacile.test
> inews failed: inews: cannot send article to server: 441 435 Duplicate
> inews: article not posted
i dont remember ever seeing that error message.
> zsh: done cat test |
> zsh: exit 1 ./mailpost trigofacile.test
>
> [with exit 1 -- but maybe we could just exit(1) after the test when "-c"
> is not used,
> and write a message error to say what happened]
>
> Is it what you want? or another thing?
i guess that could be okay
Re: posting oooold email archive to my inn2 server
Author: Jon Bendtsen
Date: Sat, 28 Feb 2009 09:04
Date: Sat, 28 Feb 2009 09:04
27 lines
2399 bytes
2399 bytes
Julien ÉLIE wrote: > Hi Jon, > >> Today i have posted alot of old mail messages to our new archive >> system, and i have been seeing posts which was "rejected" allergedly >> because the Message-ID had been seen earlier. However when manually >> changing the Message-ID and then reposting it, there was no >> duplicates in the group. > > You may want to use the "-c nn" option with mailpost. It waits for nn > seconds > before posting the articles it receives (then, if it detects a crosspost, > it properly sends it). Please elaborate how this would work? (in my setup) I have an exchange server that i pop from. The user account is on multiple mailing lists. I do not know if a message posted to 2 or more mailing lists will result in 1 or a mail for each mailinglist. But when i fetchmail all the emails, and use mailpost i also use maildrop and mailfilter to set more than one group based on recognizing the to/cc addresses. It would be great to do propper crossposting. JonB
Re: posting oooold email archive to my inn2 server
Author: Julien ÉLIE
Date: Sat, 28 Feb 2009 14:46
Date: Sat, 28 Feb 2009 14:46
30 lines
2710 bytes
2710 bytes
Hi Jon,
>> You may want to use the "-c nn" option with mailpost. It waits for nn seconds
>> before posting the articles it receives (then, if it detects a crosspost,
>> it properly sends it).
>
> Please elaborate how this would work? (in my setup)
According to the man page:
http://www.eyrie.org/~eagle/software/inn/docs/mailpost.html
-c wait-time
The -c flag indicates a length of time to sleep before posting. If duplicate
messages are received in this interval (by any instance of mailpost using
the same database), the article is only posted once, but with Newsgroups: header
modified to crosspost the article to all indicated groups. The units for wait-time
are seconds; a reasonable value may be anywhere from tens to hundreds of seconds,
or even higher, depending on how long mail can be delayed on its way to your system.
So maybe you could try to run "mailpost -c 60" (or higher).
--
Julien ÉLIE
« Vous savez, les idées, elles sont dans l'air. Il suffit que quelqu'un
vous en parle de trop près, pour que vous les attrapiez ! » (Raymond Devos)
Re: posting oooold email archive to my inn2 server
Author: Julien ÉLIE
Date: Sat, 28 Feb 2009 15:05
Date: Sat, 28 Feb 2009 15:05
83 lines
3982 bytes
3982 bytes
Hi Jon,
>> [with exit 1 -- but maybe we could just exit(1) after the test when "-c"
>> is not used, and write a message error to say what happened]
>>
>> Is it what you want? or another thing?
>
> i guess that could be okay
% cat test | ./mailpost trigofacile.test
Duplicate article <test-article@news.trigofacile.com>.
zsh: done cat test |
zsh: exit 1 ./mailpost trigofacile.test
Index: mailpost.in
===================================================================
--- mailpost.in (révision 8359)
+++ mailpost.in (copie de travail)
@@ -333,7 +333,8 @@
if ( ! $tmpfile ) {
# We had to bail and mail the article to the admin.
- exit (0) ;
+ print STDERR "The creation of the temporary file $tmpfile failed.\n" if -t STDERR;
+ exit(1);
}
@@ -377,7 +378,10 @@
if (defined $DATABASE{$message_id}) {
- exit 0 if (!$opt_c) ;
+ if (!$opt_c) {
+ print STDERR "Duplicate article <$message_id>.\n" if -t STDERR;
+ exit(1);
+ }
## crosspost -c
$newsgroups = &append_newsgroups($DATABASE{$message_id}, $newsgroups) ;
@@ -399,7 +403,8 @@
if ($opt_c) {
if (fork() != 0) {
undef $tmpfile; # Don't unlink $tmpfile.
- exit 0;
+ print STDERR "An error occurred during the fork.\n" if -t STDERR;
+ exit(1);
}
sleep $opt_c ;
@@ -430,7 +435,7 @@
if (defined($dup)) {
syslog("err", "mismatch $newsgroups\n") if $debugging && $use_syslog;
- exit 0 ;
+ exit(1);
}
# Replace Newsgroups:.
@@ -604,9 +609,9 @@
of unknown headers).
If the article has been seen before (B<mailpost> records the Message-ID of
-each article it handles), then the article will be silently dropped. Other
-errors will cause the article to be mailed to the newsmaster (selected
-at configure time and defaulting to C<usenet>).
+each article it handles), then the article will be dropped with a non-zero
+error status. Other errors will cause the article to be mailed to the
+newsmaster (selected at configure time and defaulting to C<usenet>).
Normally, B<mailpost> is run by sendmail(8) via an alias entry:
I hope this patch suits you.
--
Julien ÉLIE
« Vous savez, les idées, elles sont dans l'air. Il suffit que quelqu'un
vous en parle de trop près, pour que vous les attrapiez ! » (Raymond Devos)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads