• how to import or add an mbox file?

    From Nicholas Saunders@21:1/5 to All on Mon Nov 27 12:13:11 2023
    I'm just looking to read old messages offline and local.

    I backed up the .pinerc file and have a foo.mbox file which I'd like to add. When I launch pine I see a list of old file. Can I somehow add or import this mbox to that list?


    thanks,

    Nick

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adam H. Kerman@21:1/5 to Nicholas Saunders on Mon Nov 27 20:32:37 2023
    Nicholas Saunders <saunders.nicholas@gmail.com> wrote:

    I'm just looking to read old messages offline and local.

    I backed up the .pinerc file and have a foo.mbox file which I'd like to
    add. When I launch pine I see a list of old file. Can I somehow add or >import this mbox to that list?

    No importing required.

    Just move it into the same directory or initiate your alpine session
    with the full path to the file.

    For instance, when I download control messages, they are in an mbox
    archive and I can read them with alpine. I don't care to save them so
    they get FTP'd to /tmp. Here's an archive I recently looked at.

    alpine -if /tmp/uk.local.midlands

    Without the full path, in my setup, my archived mboxes are in ~/mail, so
    alpine would find it if I moved it to that directory.

    Your mbox archive might be ~/Mail or something else. Check your .pinerc.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nicholas Saunders@21:1/5 to All on Mon Nov 27 13:07:27 2023
    When I run "alpine -f foo.mbox" I get a single large message rather than the expected list of messages.

    The backup came from Thunderbird.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kalevi Kolttonen@21:1/5 to Nicholas Saunders on Mon Nov 27 20:32:52 2023
    Nicholas Saunders <saunders.nicholas@gmail.com> wrote:
    I'm just looking to read old messages offline and local.

    I backed up the .pinerc file and have a foo.mbox file
    which I'd like to add. When I launch pine I see a list
    of old file. Can I somehow add or import this mbox to
    that list?

    In your .pinerc, you need to define folder collections
    with something like this:

    folder-collections=Mail/[]

    If you want to add more folders, separate their names
    using commas.

    Then just move your mbox file into the right directory:

    mv -iv foo.mbox ~/Mail

    You can then read your mailbox directly by using:

    alpine -f foo.mbox

    Or you can choose the correct folder from Folder List
    menu that is in alpine's main menu.

    br,
    KK

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nicholas Saunders@21:1/5 to Kalevi Kolttonen on Mon Nov 27 13:02:56 2023
    On Monday, 27 November 2023 at 12:32:55 UTC-8, Kalevi Kolttonen wrote:
    Nicholas Saunders <saunders...@gmail.com> wrote:
    I'm just looking to read old messages offline and local.

    I backed up the .pinerc file and have a foo.mbox file
    which I'd like to add. When I launch pine I see a list
    of old file. Can I somehow add or import this mbox to
    that list?
    In your .pinerc, you need to define folder collections
    with something like this:

    folder-collections=Mail/[]

    If you want to add more folders, separate their names
    using commas.

    Then just move your mbox file into the right directory:

    mv -iv foo.mbox ~/Mail

    You can then read your mailbox directly by using:

    alpine -f foo.mbox

    Or you can choose the correct folder from Folder List
    menu that is in alpine's main menu.

    br,
    KK


    Thanks, and that's what I've done. However, it just loads as a massive text file and not individual e-mails:

    ALPINE 2.25 FOLDER LIST Folder: INBOX No Messages

    INBOX sent-mail saved-messages 22aug_saved foo.mbox foobar sent-mail-aug-2022 sent-mail-dec-2022 sent-mail-may-2022 sent-mail-nov-2022
    sent-mail-oct-2022 sent-mail-sep-2022


    It's the "foo.mbox" which I'm looking at.

    I'm thinking there's a setting in the pinerc to parse mbox?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nicholas Saunders@21:1/5 to All on Mon Nov 27 13:23:44 2023
    I think that I'm using the "maildir" format.

    How do I switch to mbox?


    thanks,

    Nick

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kalevi Kolttonen@21:1/5 to Nicholas Saunders on Tue Nov 28 12:07:27 2023
    Nicholas Saunders <saunders.nicholas@gmail.com> wrote:
    Thanks, and that's what I've done. However, it just loads as
    a massive text file and not individual e-mails:

    Well, mbox-format *is* a massive or not so massive text file.

    It's the "foo.mbox" which I'm looking at.

    I'm thinking there's a setting in the pinerc to parse mbox?

    Alpine should do that automatically as far as I know.

    br,
    KK

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Levine@21:1/5 to All on Wed Nov 29 03:16:02 2023
    According to Nicholas Saunders <saunders.nicholas@gmail.com>:
    I think that I'm using the "maildir" format.

    No, maildir puts each message in a separate file. This sounds like it's
    just a bunch of messages dumped into a file.

    In an mbox file each message is preceded by a 'From ' line like the
    one below with the sender's address and a timestamp. The first line in
    the file has to be a From line.

    From johnl@iecc.com Sun Sep 18 08:53:38 2016 -0400

    How do I switch to mbox?

    If you're exporting the messages from Thunderbird, I am reasonably
    sure that it uses mbox as its internal format, so I'd just look for
    the mailbox you want in Thunderbird's directory and copy it.

    --
    Regards,
    John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
    Please consider the environment before reading this e-mail. https://jl.ly

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)