should archivemail strip X-Keywords headers from mbox? - Mutt

This is a discussion on should archivemail strip X-Keywords headers from mbox? - Mutt ; I have a cron job to archive mail every month. All mailboxes are mbox format. The script calls archivemail[1], which takes messages older than certain date and moves them to a gzipped mbox. What I'm finding, though, is after it's ...

+ Reply to Thread
Results 1 to 4 of 4

should archivemail strip X-Keywords headers from mbox?

  1. Default should archivemail strip X-Keywords headers from mbox?

    I have a cron job to archive mail every month. All mailboxes are
    mbox format. The script calls archivemail[1], which takes
    messages older than certain date and moves them to a gzipped
    mbox.

    What I'm finding, though, is after it's finished the more recent
    messages left in the original mbox no longer have their
    X-Keywords: $Label1 headers (eg "Tags" in Thunderbird, after
    archivemail is run the messages no longer have their tag colours).

    Anyone know of an alternative to archivemail?

    [1] http://archivemail.sourceforge.net

    --
    Troy Piggins ,-O (o- O All your sigs are belong to us.
    http://piggo.com/~troy O ) //\ O
    RLU#415538 `-O V_/_ OOO
    hackerkey://v3sw5HPUhw5ln4pr6OSck1ma9u6LwXm5l6Di2e6t5MGSRb8OTen4g7OPa3Xs7MIr8p7

  2. Default Re: should archivemail strip X-Keywords headers from mbox?

    Troy Piggins writes:

    > I have a cron job to archive mail every month. All mailboxes are
    > mbox format. The script calls archivemail[1], which takes
    > messages older than certain date and moves them to a gzipped
    > mbox.
    >
    > What I'm finding, though, is after it's finished the more recent
    > messages left in the original mbox no longer have their
    > X-Keywords: $Label1 headers (eg "Tags" in Thunderbird, after
    > archivemail is run the messages no longer have their tag colours).


    You must be using it to archive your mail as an IMAP mailstore. You are
    using UW-IMAP which stores IMAP keywords in this header. UW-IMAP must
    silently remove this header because it's for its internal use only, and IMAP
    clients never see it.

    > Anyone know of an alternative to archivemail?


    There is no alternative to archive mail as IMAP mail, that will preserve
    this header, because, as far as any IMAP client is concerned, it does not
    exist.

    You will have to use archivemail to pull mail from the mbox files directly,
    and deal with any locking issues between archivemail and UW-IMAP. That's
    the only way to preserve this header.


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.7 (GNU/Linux)

    iD8DBQBF+nqzx9p3GYHlUOIRAgV5AJ9uJUjY9z6rwqGmLGYJAsQrivoDGACeLM50
    pFHrjF9zv2z1nVAht7yl72Y=
    =18A7
    -----END PGP SIGNATURE-----


  3. Default Re: should archivemail strip X-Keywords headers from mbox?

    * Sam is quoted & my replies are inline below :
    > Troy Piggins writes:
    >
    >> I have a cron job to archive mail every month. All mailboxes are
    >> mbox format. The script calls archivemail[1], which takes
    >> messages older than certain date and moves them to a gzipped
    >> mbox.
    >>
    >> What I'm finding, though, is after it's finished the more recent
    >> messages left in the original mbox no longer have their
    >> X-Keywords: $Label1 headers (eg "Tags" in Thunderbird, after
    >> archivemail is run the messages no longer have their tag colours).

    >
    > You must be using it to archive your mail as an IMAP mailstore. You are
    > using UW-IMAP which stores IMAP keywords in this header. UW-IMAP must
    > silently remove this header because it's for its internal use only, and IMAP
    > clients never see it.


    Correct - the T'bird clients access the mboxes via IMAP. Sorry I
    didn't mention that.

    >> Anyone know of an alternative to archivemail?

    >
    > There is no alternative to archive mail as IMAP mail, that will preserve
    > this header, because, as far as any IMAP client is concerned, it does not
    > exist.


    What's confusing me here, though, is that if I use mutt, or
    indeed simply open the mbox with vim, I can see the X-Keywords:
    header in the messages. Doesn't that mean it "exists"?

    > You will have to use archivemail to pull mail from the mbox files directly,
    > and deal with any locking issues between archivemail and UW-IMAP. That's
    > the only way to preserve this header.


    Not sure what you mean by "directly". archivemail is run on the
    same machine the mboxes are on. From the man page:

    "When reading an mbox-format mailbox, archivemail will create a
    lockfile with the extension .lock so that procmail will not
    deliver to the mailbox while it is being processed. It
    will also create an advisory lock on the mailbox using
    flock..."

    Or should I stop the IMAP server completely while archivemail is
    running?

    Thanks Sam.

    --
    Troy Piggins ,-O (o- O All your sigs are belong to us.
    http://piggo.com/~troy O ) //\ O
    RLU#415538 `-O V_/_ OOO
    hackerkey://v3sw5HPUhw5ln4pr6OSck1ma9u6LwXm5l6Di2e6t5MGSRb8OTen4g7OPa3Xs7MIr8p7

  4. Default Re: should archivemail strip X-Keywords headers from mbox?

    * Blinky the Shark is quoted & my replies are inline below :
    > Troy Piggins wrote:
    >> I have a cron job to archive mail every month. All mailboxes are mbox
    >> format. The script calls archivemail[1], which takes messages older
    >> than certain date and moves them to a gzipped mbox.
    >>
    >> What I'm finding, though, is after it's finished the more recent
    >> messages left in the original mbox no longer have their X-Keywords:
    >> $Label1 headers (eg "Tags" in Thunderbird, after archivemail is run
    >> the messages no longer have their tag colours).

    >
    > It seems Thunderbirdies are kind of their own insulated group, but do I
    > read you correctly that they call headers "Tags"?


    Not quite. You can 'tag' messages 'Important', 'Work',
    'Personal' and so on. All this really does is add a header to
    the message 'X-Keywords: $Label1', 'X-Keywords: $Label2' etc.
    You can add your own too. Each one has a different colour.

    I should clarify, TB2 calls them 'tags', TB1 calls them 'labels'.

    I didn't think this was relevant, and didn't post to a specific
    TB group, because I thought it more an archivemail issue. I
    posted also to mutt group, because I thought there was a good
    chance mutt users may implement archivemail or similar.

    --
    Troy Piggins ,-O (o- O All your sigs are belong to us.
    http://piggo.com/~troy O ) //\ O
    RLU#415538 `-O V_/_ OOO
    hackerkey://v3sw5HPUhw5ln4pr6OSck1ma9u6LwXm5l6Di2e6t5MGSRb8OTen4g7OPa3Xs7MIr8p7

+ Reply to Thread

Similar Threads

  1. mbox
    By Application Development in forum Mutt
    Replies: 1
    Last Post: 09-07-2006, 09:19 PM
  2. Overhead of STRIP() vs. STRIP(,'t')?
    By Application Development in forum REXX
    Replies: 16
    Last Post: 08-11-2006, 01:18 PM
  3. mbox corruptions
    By Application Development in forum IMAP
    Replies: 5
    Last Post: 12-09-2005, 02:53 PM
  4. Converting headers into IMAP keywords with SIEVE ?
    By Application Development in forum IMAP
    Replies: 0
    Last Post: 02-25-2005, 06:38 PM
  5. Breaking apart MBOX
    By Application Development in forum Perl
    Replies: 1
    Last Post: 02-19-2004, 03:50 PM