A utility to convert BibTeX files to mbox archives.
Project description
BibTeX to Mbox Converter
A command-line utility to convert a BibTeX (.bib) file into an mbox email archive. Each BibTeX entry becomes an email message, making your reference library searchable and readable in any standard email client.
Features
- Author as Sender: The
authorfield becomes the email's "From" address. - Title as Subject: The
titlefield becomes the email's "Subject". - Abstract as Body: The
abstractfield becomes the main body of the email. - Link Extraction: Automatically appends
urlanddoilinks to the end of the email body. - LaTeX to Text: Converts common LaTeX commands (e.g.,
{\'e},\textit{...},{...}) into clean, readable plain text. - Progress Bar: Shows a progress bar via
tqdmwhen processing large files.
Installation
You can install the tool directly from PyPI using pip:
bash pip install bibtex2mbox
Usage
The script is a command-line tool. You must provide the path to your input BibTeX file and the desired path for the output mbox file. You can download a specific BibTeX file from the ADS site, selecting "BibTeX-ABS" as download option.
Command-Line Syntax
bibtex2mbox [INPUT_BIB_FILE] [OUTPUT_MBOX_FILE]
Example
You can use any BibTeX file, as long as it is in the correct format. For example you can download one from the ADS library. Make sure you also export the abstract by selecting BibTeX ABS format from the menu. Unfortunately ADS allows only 500 entries at the time, so you will have to download large libraries with multiple downloads. The good news is that bibtex2mbox will add them (if you keep the same mbox output), resulting in one big mbox.
Let's say you have a file named my_library.bib in your current directory. To convert it into an archive named my_archive.mbox, you would run:
bibtex2mbox my_library.bib my_archive.mbox
You will see the following output as the tool processes your file:
Found 150 entries in 'my_library.bib'. Starting conversion...
Converting entries: 100%|██████████| 150/150 [00:00<00:00, 850.12entry/s]
Successfully converted 150 entries into 'my_archive.mbox'.
The file my_archive.mbox will be created in your current directory.
Importing the Mbox File into Email Clients
Here are instructions for common clients.
Mozilla Thunderbird (Recommended)
- Install Add-on: In Thunderbird, go to
Tools > Add-ons and Themes, search for and installImportExportTools NG, then restart. - Import: Right-click on Local Folders, navigate to
ImportExportTools NG > Import mbox file, choose "Import directly one or more mbox files", and select your.mboxfile.
Apple Mail
- Open Import Wizard: Go to
File > Import Mailboxes.... - Select Format: Choose "Files in mbox format" and click "Continue".
- Choose File: Navigate to and select your
.mboxfile. It will appear in a new "Import" folder under "On My Mac".
Microsoft Outlook & Webmail (Gmail)
These clients do not directly support mbox imports. The recommended method is to use Thunderbird as an intermediary:
- Import the mbox into Thunderbird's "Local Folders".
- Set up your Outlook/Gmail account in Thunderbird via IMAP.
- Drag and drop the messages from the local mbox folder to a folder in your Outlook/Gmail account. Thunderbird will upload them.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bibtex2mbox-1.0.1.tar.gz.
File metadata
- Download URL: bibtex2mbox-1.0.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f764e246bdca6689b1be56e290e9a78894a557d524425beb50719148f06e3bae
|
|
| MD5 |
4ec94aa974856f0734a5cb0060642693
|
|
| BLAKE2b-256 |
8470b6b77f165867d92627046a714c16489144ae6021fede06b178bdd2a9e105
|
Provenance
The following attestation bundles were made for bibtex2mbox-1.0.1.tar.gz:
Publisher:
publish.yml on omodei/bibtex2mbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bibtex2mbox-1.0.1.tar.gz -
Subject digest:
f764e246bdca6689b1be56e290e9a78894a557d524425beb50719148f06e3bae - Sigstore transparency entry: 1087659931
- Sigstore integration time:
-
Permalink:
omodei/bibtex2mbox@377e3f96e4c9881423cf778b89cae9c66dc4157d -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/omodei
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@377e3f96e4c9881423cf778b89cae9c66dc4157d -
Trigger Event:
push
-
Statement type:
File details
Details for the file bibtex2mbox-1.0.1-py3-none-any.whl.
File metadata
- Download URL: bibtex2mbox-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
695a49c420d82250acb02cf968ca32686bb65b16793a042d85bdb591f0643f59
|
|
| MD5 |
e07334aa6f79899b1ff1ee385a8d3288
|
|
| BLAKE2b-256 |
d6686be61075abfc15b81b46b2033a591841ee052ea91e04373b9514f6d24eb7
|
Provenance
The following attestation bundles were made for bibtex2mbox-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on omodei/bibtex2mbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bibtex2mbox-1.0.1-py3-none-any.whl -
Subject digest:
695a49c420d82250acb02cf968ca32686bb65b16793a042d85bdb591f0643f59 - Sigstore transparency entry: 1087660015
- Sigstore integration time:
-
Permalink:
omodei/bibtex2mbox@377e3f96e4c9881423cf778b89cae9c66dc4157d -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/omodei
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@377e3f96e4c9881423cf778b89cae9c66dc4157d -
Trigger Event:
push
-
Statement type: