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:
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
```bash
bibtex2mbox [INPUT_BIB_FILE] [OUTPUT_MBOX_FILE]
### Example
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:
```bash
bibtex-to-mbox my_library.bib my_archive.mbox
You will see the following output as the tool processes your file:
```bash
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)
1. **Install Add-on**: In Thunderbird, go to `Tools > Add-ons and Themes`, search for and install `ImportExportTools NG`, then restart.
2. **Import**: Right-click on **Local Folders**, navigate to `ImportExportTools NG > Import mbox file`, choose "Import directly one or more mbox files", and select your `.mbox` file.
### Apple Mail
1. **Open Import Wizard**: Go to `File > Import Mailboxes...`.
2. **Select Format**: Choose **"Files in mbox format"** and click "Continue".
3. **Choose File**: Navigate to and select your `.mbox` file. 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:
1. Import the mbox into Thunderbird's "Local Folders".
2. Set up your Outlook/Gmail account in Thunderbird via IMAP.
3. 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.0.tar.gz.
File metadata
- Download URL: bibtex2mbox-1.0.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6edf7d4341d77ed6d50a84f18a0ad75aa05a76e292cd09bfadff309ce80e471b
|
|
| MD5 |
876bef92fe3463ff7a77b0cd667d0e4b
|
|
| BLAKE2b-256 |
ebd09dd605fcd9334c58030fca71e00cd79f64502228f1b26f93873c5d3f1bce
|
File details
Details for the file bibtex2mbox-1.0.0-py3-none-any.whl.
File metadata
- Download URL: bibtex2mbox-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06ae6b535c4f5fda24cce5346986218837d822487696f2a9c65d4e858157f7de
|
|
| MD5 |
5386d647ede30a348273e6fc0508822f
|
|
| BLAKE2b-256 |
102fad05c051f8cf48e113ac8789b4b40b8cfc5b1bf1cc171ddf9231182163ba
|