D
2024-03-04 22:08:33 UTC
Hello alpiners,
So my nntp adventures continue, and after getting a local nntp server
working (leafnode) I decided that due to the weird way it tended to
interact with my "live" news reading (not showing messages correctly due
to deletes etc.) I need to figure out another way.
So basically, what I want to achieve, is a way for me to read news in
alpine while disconnected. Writing while disconnected I would ideally do
the same way I write regular emails, by just postponing them. And when I'm
online again, I'll send the postponed messages one by one.
So if not leafnode, then what?
I discovered that when setting up folder collections, there is the
"#news." type I can use.
My question is if I can use this, somehow, to make alpine pick up
downloaded news messages from a local directory?
My idea is to use fetchnews from leadnode to download my news messages to
the spool/news directory. I noticed that in this directory, groups are
directories and subdirectories, and each individual messages in a news
group is just a nr, with the full messages in the file. So for instance,
comp.mail.pine would be located under spool/news/comp/mail/alpine, and
under that directory I have the files 1, 2, 3, 4... etc. each a complete
message with headers and all.
So my question is if I can setup somehow, a folder collection of the type
"#news." and then point it at the spool/news folder and have it pick up
everything correctly?
A little bit like the Maildir-patch. I just use #md/path/to/Maildir, and
the patch picks up all messages perfectly?
If that is not possible... my second idea is to just write together a
short script that converts the messages in spool/news/... to Maildir
messages and setup each news group as a Maildir folder.
By running fetchnews, converting the files in the spool directory to
messages in a local Maildir directory, I should then be able to read all
messages in a nice and structured way.
What would not work, I assume, is replying, since I would reply with a
Maildir role and Maildir headers and news headers are not compatible.
So, those are my thoughts so far.
What do you think?
Best regards,
Daniel
So my nntp adventures continue, and after getting a local nntp server
working (leafnode) I decided that due to the weird way it tended to
interact with my "live" news reading (not showing messages correctly due
to deletes etc.) I need to figure out another way.
So basically, what I want to achieve, is a way for me to read news in
alpine while disconnected. Writing while disconnected I would ideally do
the same way I write regular emails, by just postponing them. And when I'm
online again, I'll send the postponed messages one by one.
So if not leafnode, then what?
I discovered that when setting up folder collections, there is the
"#news." type I can use.
My question is if I can use this, somehow, to make alpine pick up
downloaded news messages from a local directory?
My idea is to use fetchnews from leadnode to download my news messages to
the spool/news directory. I noticed that in this directory, groups are
directories and subdirectories, and each individual messages in a news
group is just a nr, with the full messages in the file. So for instance,
comp.mail.pine would be located under spool/news/comp/mail/alpine, and
under that directory I have the files 1, 2, 3, 4... etc. each a complete
message with headers and all.
So my question is if I can setup somehow, a folder collection of the type
"#news." and then point it at the spool/news folder and have it pick up
everything correctly?
A little bit like the Maildir-patch. I just use #md/path/to/Maildir, and
the patch picks up all messages perfectly?
If that is not possible... my second idea is to just write together a
short script that converts the messages in spool/news/... to Maildir
messages and setup each news group as a Maildir folder.
By running fetchnews, converting the files in the spool directory to
messages in a local Maildir directory, I should then be able to read all
messages in a nice and structured way.
What would not work, I assume, is replying, since I would reply with a
Maildir role and Maildir headers and news headers are not compatible.
So, those are my thoughts so far.
What do you think?
Best regards,
Daniel