Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
0
answers
25
views
Thunderbird no longer syncing Office 365 "Sent Items" folder
Late July 2025, I received a Thunderbird update which caused the UI to change and came with a couple of regressions (e.g. I can't tell from the quick filter buttons whether or not they are active anymore). Ever since that update, Thunderbird is no longer syncing my Office 365 "Sent Items" folder. I...
Late July 2025, I received a Thunderbird update which caused the UI to change and came with a couple of regressions (e.g. I can't tell from the quick filter buttons whether or not they are active anymore).
Ever since that update, Thunderbird is no longer syncing my Office 365 "Sent Items" folder.
I have configured my Office 365 account as follows:
- When I send an e-mail on the account, I configured Thunderbird to *not* place a copy in the account's "Sent Items" folder, because the SMTP server already does it. I can check in the Outlook Web Application (OWA) that this is actually still happening.
- This means that sent e-mails do not immediately show up in my unified inbox within Thunderbird (which includes the "Sent Items" folder), but normally they do after I open the "Sent Items" folder, triggering a synchronization.
Since the update, the "Sent Items" folder in Thunderbird shows as empty. No old sent messages and no new ones are visible. In OWA, all of them are still there.
In fact, the same seems to be true for other folders (except inbox and trash) on the Office 365 account.
Of course, what I want(ed) to know is: how do I fix this?
I am on Ubuntu 22.04 and currently Thunderbird 128.12 (but further updates may have happened since the regression occurred.)
**Baffling addition:** While typing this question and looking through all of these folders on both OWA and Thunderbird, suddenly they synced. All of them. I changed one thing, but only for the "Sent Items" folder (so not for the other folders that were not, but are now, syncing): I right-clicked it in Thunderbird, chose "Properties", and checked "When getting new messages for this account, always check this folder", and then restarted Thunderbird.
For now, I conclude that the interaction between Thunderbird and Office 365 is non-deterministic.
dremodaris
(141 rep)
Aug 4, 2025, 11:20 AM
• Last activity: Aug 4, 2025, 11:26 AM
2
votes
2
answers
790
views
does mbsync know i deleted folders?
Newly working with `neomutt` and `mbsync`. I did an initial grab of all my mail and folders which was fine. Then I started organizing my folders and mail. Some of the folders (or "mailboxes") within the account were cleaned up and DELETED. When I run `mbsync -a` it seems to want to find those delete...
Newly working with
neomutt
and mbsync
. I did an initial grab of all my mail and folders which was fine.
Then I started organizing my folders and mail. Some of the folders (or "mailboxes") within the account were cleaned up and DELETED.
When I run mbsync -a
it seems to want to find those deleted folders. The error message is as follows:
Error: channel example@gmail.com: far side box INBOX/subscribed cannot be opened.
The INBOX/subscribed
is a folder that no longer exists under INBOX
Yet, the mbsync
task is still trying to fetch it.
**Is there a config file somewhere that needs updating? What can I do to fix this error?**
Thank you for your help.
examplebear
(21 rep)
Dec 31, 2022, 07:42 PM
• Last activity: Jun 25, 2025, 04:54 PM
5
votes
1
answers
4259
views
SMTP Auth - SASL on Dovecot, Postfix and CentOS 6.2 (and Open-Xchange)
I am trying to get open SASL to work on CentOS 6.2. I followed this tutorial: http://wiki.centos.org/HowTos/postfix_sasl I suspect it works perfectly for CentOS 5.x so all I really need is an update for use on CentOS 6.2. I was feeling confident right up until I discovered half way through that dove...
I am trying to get open SASL to work on CentOS 6.2. I followed this tutorial:
http://wiki.centos.org/HowTos/postfix_sasl
I suspect it works perfectly for CentOS 5.x so all I really need is an update for use on CentOS 6.2. I was feeling confident right up until I discovered half way through that dovecot.conf goes mad with these settings.
This link recommends that people running CentOS 6 use a different method.
http://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL
Neither of the methods outlined in these links work.
Also I don't know how to get Open-Xchange to use SMTP authentication. It seems to be very poorly documented and their CE forum is not letting me post, nor is it showing much activity at all.
conners
(203 rep)
May 9, 2012, 01:04 PM
• Last activity: Jun 12, 2025, 12:05 AM
1
votes
2
answers
2405
views
IMAP Dovecot cannot connect
I am trying to set up my own mail server (for 'fun'). I followed [this tutorial][1] to the bone. But I get this error message: imap-login: Disconnected (auth failed, 2 attempts in 9 secs): user= , method=PLAIN, rip=203.210.7.43, lip=1.2.3.4, TLS: Disconnected, session= I am using the SSL certificate...
I am trying to set up my own mail server (for 'fun'). I followed this tutorial to the bone. But I get this error message:
imap-login: Disconnected (auth failed, 2 attempts in 9 secs): user=, method=PLAIN, rip=203.210.7.43, lip=1.2.3.4, TLS: Disconnected, session=
I am using the SSL certificate and key I have for my nginx web server, on the same machine.
I disabled plaintext authentication by adding these two lines (as per tutorial) to
/etc/dovecot/conf.d/10-auth.conf
:
disable_plaintext_auth = yes
auth_mechanisms = plain login
But the method
in the log entry still says PLAIN
, and TLS
is Disconnected
. Could that be an issue?
There're too many configurations to post them all here. if you think you need more information, please tell me which parts and I will update my question.
dayuloli
(537 rep)
Jan 28, 2015, 08:19 AM
• Last activity: May 21, 2025, 03:01 PM
26
votes
6
answers
28661
views
Backup and restore IMAP mail account with (open source) Linux tools
**Which Linux tools help to backup and restore a IMAP mail account including all mail and subfolders?** I expect disconnects for large IMAP accounts because of 1. ressource limitiations on the server 2. risk of an interruption increases with the duration. The software should be able to reconnect and...
**Which Linux tools help to backup and restore a IMAP mail account including all mail and subfolders?**
I expect disconnects for large IMAP accounts because of
1. ressource limitiations on the server
2. risk of an interruption increases with the duration.
The software should be able to reconnect and continue the job after any interruption. For repeating backups it might be very handy to use incremental backups and to run the backup script in a cron job.
Jonas Stein
(4298 rep)
Dec 14, 2014, 09:00 PM
• Last activity: May 6, 2025, 11:42 PM
0
votes
0
answers
43
views
does mbsync know I deleted a file?
May I just delete a file/ mail in the mbsync folder? Or should I * configure (`mbsync --config …`, `mu init --maildir=…`), or * index the database (`mu index`) after removing a file? Put differently, what is the correct way of removing specific emails when working with mbsync? – Thanks!
May I just delete a file/ mail in the mbsync folder?
Or should I
* configure (
mbsync --config …
, mu init --maildir=…
), or
* index the database (mu index
)
after removing a file?
Put differently, what is the correct way of removing specific emails when working with mbsync? – Thanks!
Alois Pichler
(1 rep)
Feb 25, 2025, 01:21 PM
• Last activity: Feb 25, 2025, 08:35 PM
0
votes
1
answers
1882
views
Mixing local and remote IMAP folders in Neo/Mutt and iSync?
I've currently got Neo/Mutt configured alongside iSync for a few different accounts. Everything syncs up and I've got the Mutt client configured roughly how I want it. However, I run into issues when using ` ` to move a message to an Archive folder. It's different depending on the type of account: *...
I've currently got Neo/Mutt configured alongside iSync for a few different accounts. Everything syncs up and I've got the Mutt client configured roughly how I want it. However, I run into issues when using `` to move a message to an Archive folder. It's different depending on the type of account:
* In my two Gmail accounts, if I read a message and then `
to my local "All Mail" folder, the message is moved as expected. Then, when I run
mbsync`, my All Mail folder in Mutt shows two copies of the same message, with one marked for deletion. They are also both marked as unread, even though I had read the message before moving it. My workaround has been to just delete messages from my inbox. On the following sync, the deleted messages appear in All Mail without duplicates (but still annoyingly marked as unread).
* In my ProtonMail account, I can read and then save a message to my Archive folder. On the next sync, I have a duplicate message in the Archive folder, one marked as unread and the other as read, and neither is marked for deletion. Unlike in the Gmail accounts, deleting a message from my inbox does not result in the message showing up in my Archive, so that half-measure doesn't work here.
So maybe it's two separate issues but they certainly seem related. I've read multiple blog posts and scoured many dotfiles. I've seen "solutions" to the duplicate message problem such as folder hooks which delete duplicates when you enter the folder. These are not real solutions, IMO.
So I'm wondering if it's possible to tell Mutt to save a message to a *remote* folder, and if this would give better results. At the same time, I haven't configured Mutt for IMAP and would prefer that Mutt does no IMAP syncing, leaving that job to mbsync
. I still want to use Mutt mainly to read mail that is stored locally, but I also want to teach it to move messages to remote IMAP folders.
Is this possible? Or is there a more obvious approach that I'm overlooking? In the meantime, I'm just manually marking archived messages as read, and deleting duplicates. If I could solve this problem, Mutt will be my favorite email reader by far.
Chris Vincent
(11 rep)
Aug 30, 2018, 06:38 PM
• Last activity: Feb 25, 2025, 02:59 PM
2
votes
0
answers
1704
views
Complete command line email retrieval for IMAP IDLE
I'm trying to retrieve my mail from command line, and they use mu4e to read them. However, it turns out to be a nightmare to find a program that can do the following stuff: - downloads the mail from an IMAP server into a maildir folder - uses SSL/TLS when the server provide it - can deal with IMAP I...
I'm trying to retrieve my mail from command line, and they use mu4e to read them. However, it turns out to be a nightmare to find a program that can do the following stuff:
- downloads the mail from an IMAP server into a maildir folder
- uses SSL/TLS when the server provide it
- can deal with IMAP IDLE in order to avoid dirty loop to get the messages, if possible efficiently
- provides a way to get the password from a GPG encrypted file for security reason (I don't want to need to trust the people that can get physical access to the computer)
- can deal with several accounts in parallel, if possible with just one execution to save ressources
Bonus:
- efficient (I would like to avoid to install a full IMAP server)
- reliable
- still maintained
- simple to configure
- packaged into regular linux distributions, as well as nix
I tried lots of solutions, but it seems that none of them can deal with these tasks...
- offlineimap : officially has beta for IDLE, but I was not able to configure it to use it (bug or maybe I just missed something important...), offlineimap just stop after one scan even with the idle options. Moreover, it seems to be quite slow and buggy according to the community
- mbsync : no IDLE
- mbsync + mswatch : need to have access on the server, so not possible
- mbsync + imapnotify : maybe the best solution so far... but imapnotify is not packaged in debian and nix
- imapsync : does not deal with mailbox format
- fetchmail : cannot deal with PGP encrypted password
Any solution?
tobiasBora
(4621 rep)
Mar 28, 2018, 06:32 PM
• Last activity: Feb 25, 2025, 02:58 PM
0
votes
1
answers
675
views
Is it possible to ignore "Inbox" folder when using IMAP (mbsync)?
I can't find a clear answer whether "Inbox" folder is necessary to sync when using IMAP protocol. I can't seem to uncheck it on gmail and mbsyncrc (mbsync's config file) seems to require an "Inbox" entry otherwise it creates one in default location. This is quite unfortunate, because when syncing gm...
I can't find a clear answer whether "Inbox" folder is necessary to sync when using IMAP protocol. I can't seem to uncheck it on gmail and mbsyncrc (mbsync's config file) seems to require an "Inbox" entry otherwise it creates one in default location.
This is quite unfortunate, because when syncing gmail Inbox contains both primary as well as "spam" categories (promotions and social), which you ideally would like to filter out (by using labels and syncing those instead).
Could anyone please confirm if "Inbox" is strictly necessary when using IMAP or if there are any workarounds to ignore it?
Daniel Krajnik
(371 rep)
Jun 5, 2023, 10:56 PM
• Last activity: Feb 25, 2025, 02:58 PM
1
votes
0
answers
472
views
Possible to make mbsync (isync) update multiple multiple IMAP folders at once?
When running `mbsync -a`, it goes over each folder, updating it. This gets slow if you have many folders (20+ for e.g.). Is there a way to update multiple folders at once?
When running
mbsync -a
, it goes over each folder, updating it.
This gets slow if you have many folders (20+ for e.g.).
Is there a way to update multiple folders at once?
ideasman42
(1461 rep)
Sep 23, 2019, 12:46 PM
• Last activity: Feb 25, 2025, 02:58 PM
2
votes
1
answers
2132
views
MBSync Maildir++ to IMAP with subfolder in INBOX
I am trying to use MBSync to sync a local Maildir++ folder (dovecot mail data) into a remote IMAP mailbox. While it works in general, subdirs of INBOX are ignored. Config looks like this: MaildirStore a-local Subfolders Maildir++ Inbox /var/kunden/mail/a/foo@bar.com IMAPAccount a Host *** User *** P...
I am trying to use MBSync to sync a local Maildir++ folder (dovecot mail data) into a remote IMAP mailbox. While it works in general, subdirs of INBOX are ignored.
Config looks like this:
MaildirStore a-local
Subfolders Maildir++
Inbox /var/kunden/mail/a/foo@bar.com
IMAPAccount a
Host ***
User ***
Pass ***
SSLType IMAPS
CertificateFile ~/mail/cert
IMAPStore a-remote
Account a
Channel a
Master :a-local:
Slave :a-remote:
Patterns *
SyncState ~/mail/a-imap-transfer
Ouput looks like this (why is INBOX ignored?!)
pattern '*' (effective '*'): Path, no INBOX Maildir warning: ignoring
INBOX in /var/kunden/mail/a/foo@bar.com/ Opening slave
store a-remote... Resolving ***... ok Connecting to
*** (***:993)... Connection is now encrypted Logging in... Authenticating with SASL mechanism PLAIN... pattern '*'
(effective '*'): Path, no INBOX Opening master box INBOX... Opening
slave box INBOX...
The folder structure in file system looks like this:
.Drafts
'.Entw&APw-rfe'
.Gesendet
.INBOX.abizeitung
.INBOX.Bachelorarbeit
.INBOX.bestellungen
.INBOX.dav
the last 4 of those are NOT synced.
Any hints?
Nitek
(121 rep)
Mar 29, 2020, 02:44 PM
• Last activity: Feb 25, 2025, 02:57 PM
1
votes
0
answers
313
views
make mbsync+IMAP behave like POP
My work insists on Outlook365 and I use it in the most minimal way possible. That is, I pull email to my local machine à la POP and manage it there. Because of recent migration to MFA I have had to change my setup to davmail+IMAP+mbsync. All (eventually!) is now working satisfactorily except I...
My work insists on Outlook365 and I use it in the most minimal way possible. That is, I pull email to my local machine à la POP and manage it there. Because of recent migration to MFA I have had to change my setup to davmail+IMAP+mbsync. All (eventually!) is now working satisfactorily except I would like my emails to be deleted on the Outlook365 server once successfully downloaded.
What options should I specify in my
~/.mbsyncrc
file to achieve auto-deletion? Currently I have these options set but they aren't working.
Channel work
Master :work-store:
Slave :local:
Patterns INBOX
Expunge Master
Sync Pull New Delete
SyncState *
Many thanks.
healyp
(111 rep)
Jul 20, 2020, 11:32 AM
• Last activity: Feb 25, 2025, 02:57 PM
5
votes
0
answers
2572
views
Sync gmail using mbsync (isync) on debian linux using XOAUTH2
I am trying to sync my mails from gmail to my local mail server using [mbsync][1]. But i keep getting an error `Error: SASL(-4): no mechanism available: No worthy mechs found` Here is my `.mbsyncrc` file: #IMAP server you wish to copy mails from. IMAPAccount original Host imap.gmail.com User usernam...
I am trying to sync my mails from gmail to my local mail server using mbsync . But i keep getting an error
Error: SASL(-4): no mechanism available: No worthy mechs found
Here is my .mbsyncrc
file:
#IMAP server you wish to copy mails from.
IMAPAccount original
Host imap.gmail.com
User username@gmail.com
AuthMechs XOAUTH2
Pass access_token_recieved_from_google
UseIMAPS yes
CertificateFile /etc/ssl/certs/ca-certificates.crt
# The IMAP server you wish to copy mails to.
IMAPAccount target
Host local.mail.server.host
User local_user
Pass somepass
AuthMechs LOGIN
UseIMAPS yes
CertificateFile /etc/ssl/certs/ca-certificates.crt
# Link IMAP server to remote used below. Note Account is set to 'original' now -- we'll be set it to 'target' later!
IMAPStore my-remote
Account original
# The local storage we'll be using. Note the trailing slash at the end of the Path!
MaildirStore my-local
Path ~/mail/
Inbox ~/mail/INBOX/
# This is where the magic happens. Note Sync is set to 'Pull' now -- we'll set it to 'Push' later!
Channel my-channel
Master :my-remote:
Slave :my-local:
Patterns *
Create Both
Sync Pull
SyncState *
system: Linux stretch 4.9.0-7-amd64 #1 SMP Debian 4.9.110-1 (2018-07-05) x86_64 GNU/Linux
mbsync --version isync 1.2.1
looks like mbsync isn't recognizing XOAUTH2
for keyword AuthMechs
. If i change the AuthMech type to LOGIN
, i get an invalid credentials
error. (makes sense, i put in an auth token in place of the password).
Any ideas?
SomeGuyFortune
(151 rep)
Sep 5, 2018, 03:45 AM
• Last activity: Feb 25, 2025, 02:56 PM
2
votes
0
answers
1288
views
mbsync/isync -> GUI mail client + mutt
I have been using mbsync+mutt for years successfully, managing a number of post boxes for accounts with different mailservers. Now there is reason for me (some business emails are so deep with html that not even lynx/w3c can display them near readable) and other people in my household (problems with...
I have been using mbsync+mutt for years successfully, managing a number of post boxes for accounts with different mailservers.
Now there is reason for me (some business emails are so deep with html that not even lynx/w3c can display them near readable) and other people in my household (problems with mail fetching speed in gui clients with lots of messages) to want to create the following setup:
1. sync mails via mbsync (or maybe offlineimap), sort them into a number of local maildir boxes (I have a working setup but may be willing to migrate)
2. read/write mails from those boxes with mutt (I have a working setup for that)
3. read/write mails from those boxes with some shiny gui-mailclient (-> just needs to be able to read maildir and support multiple senders on different servers)
- preferably thunderbird, though its maildir support seems to be fundamentally broken
- from my perspective: bonus points if the ui client is lightweight and QT :D
- if creating folders and moving messages into them from gui, then syncing that, is supported - brilliant!
I did some searching on the subject, though I could not find any suggestions that would lead to my goal.
Specifically searching for mail clients that would use a local maildir managed by another service would not turn anything up, although I'm pretty sure that won't be something unreachable.
EDIT: mbsync is configured to retrieve mails from all accounts into
~/.imapmail/
.
HellSchwarz
(23 rep)
Sep 24, 2020, 06:31 AM
• Last activity: Feb 25, 2025, 02:56 PM
4
votes
1
answers
7101
views
mbsync not fetching/pushing with [Gmail]/Folders
I've switched from offlineimap to mbsync, but I'm having a problem syncing certain directories from Gmail. Specifically, all of the [Gmail]/FolderName directories seem to be ignored by mbsync (when I run mbsync -l, it doesn't list any of these). I have a config like this **[edited to show full confi...
I've switched from offlineimap to mbsync, but I'm having a problem
syncing certain directories from Gmail. Specifically, all of the
[Gmail]/FolderName directories seem to be ignored by mbsync (when I run
mbsync -l, it doesn't list any of these).
I have a config like this **[edited to show full config]**:
Create Slave
# Account details necessary for logging into the remove server:
IMAPAccount GMAIL
Host imap.gmail.com
User user@gmail.com
Pass pass
UseIMAPS yes
# The certificate of the authority that verified the SSL
# certificate of your email provider:
CertificateFile /etc/ssl/certs/ca-certificates.crt
# The remote repository:
IMAPStore GMAIL-remote
Account GMAIL
# The local repository:
MaildirStore GMAIL-local
Path ~/Maildir/GMAIL/
Inbox ~/Maildir/GMAIL/INBOX
Trash ~/Maildir/GMAIL/[Gmail].Bin
# Channel connecting two repositories, describing the way the two
# are synchronized:
Channel GMAIL
Master :GMAIL-remote:
Slave :GMAIL-local:
Patterns "[Gmail]/Sent Mail" "[Gmail]/Drafts" "[Gmail]/Bin" "[Gmail]/Spam" INBOX ARCHIVED
Create Slave
Expunge Both
SyncState *
Which seems to conform to examples I've seen online.
Has something changed with mbsync or Gmail which causes mbsync to ignore [Gmail]/Folders?
emacsomancer
(509 rep)
Nov 8, 2013, 08:23 PM
• Last activity: Feb 25, 2025, 02:56 PM
0
votes
0
answers
98
views
How can I get libc-client.so.2007?
I downloaded the source code for UW-IMAP/imap-2007f_upstream from the URL below. [https://github.com/uw-imap/imap/archive/refs/tags/imap-2007f_upstream.tar.gz][1] I compiled it, but libc-client.so.2007 was not generated. I compiled it by executing the following command: make lnp PASSWDTYPE=pam SSLTY...
I downloaded the source code for UW-IMAP/imap-2007f_upstream from the URL below.
https://github.com/uw-imap/imap/archive/refs/tags/imap-2007f_upstream.tar.gz I compiled it, but libc-client.so.2007 was not generated.
I compiled it by executing the following command:
make lnp PASSWDTYPE=pam SSLTYPE=unix EXTRACFLAGS=-fPIC The OS environment is AlmaLinux8.10. I want libc-client.so.2007 that links to the latest OpenSSL3.4.0, not the libc-client.so.2007 that links to OpenSSL1.1.1. That's why I'm compiling it from source code. Is there any way to get libc-client.so.2007 by compiling?
https://github.com/uw-imap/imap/archive/refs/tags/imap-2007f_upstream.tar.gz I compiled it, but libc-client.so.2007 was not generated.
I compiled it by executing the following command:
make lnp PASSWDTYPE=pam SSLTYPE=unix EXTRACFLAGS=-fPIC The OS environment is AlmaLinux8.10. I want libc-client.so.2007 that links to the latest OpenSSL3.4.0, not the libc-client.so.2007 that links to OpenSSL1.1.1. That's why I'm compiling it from source code. Is there any way to get libc-client.so.2007 by compiling?
Zeotech
(1 rep)
Feb 1, 2025, 10:02 AM
• Last activity: Feb 2, 2025, 05:03 AM
0
votes
1
answers
2340
views
How to search for emails via IMAP in command line?
I want to search on an IMAP server for whether I have sent, cc, or received emails from certain email addresses, if so retrieve the title and snippets of message bodies. https://tewarid.github.io/2011/05/10/access-imap-server-from-the-command-line-using-openssl.html I see the above example using ope...
I want to search on an IMAP server for whether I have sent, cc, or received emails from certain email addresses, if so retrieve the title and snippets of message bodies.
https://tewarid.github.io/2011/05/10/access-imap-server-from-the-command-line-using-openssl.html
I see the above example using openssl to access imap. But it is not clear whether it is an appropriate tool to search IMAP?
How can I achieve this goal?
user1424739
(315 rep)
Mar 2, 2023, 03:37 AM
• Last activity: Jan 20, 2025, 04:00 PM
1
votes
2
answers
134
views
Mutt hides full headers and i cannot see how to get full header information for emails
i am running what seems to be Mutt 1.9.4 (2018-02-28). And the problem is that I cannot obtain full header information for incoming emails. the `h` just provides an additional Mime-Version: 1.0 and messageID (if it includes cc participants). I have tried to play around with the muttrc configurations...
i am running what seems to be Mutt 1.9.4 (2018-02-28). And the problem is that I cannot obtain full header information for incoming emails. the
h
just provides an additional Mime-Version: 1.0 and messageID (if it includes cc participants).
I have tried to play around with the muttrc configurations, but none of the obvious things works. any ideas?
PLee
(11 rep)
Dec 31, 2024, 10:01 AM
• Last activity: Dec 31, 2024, 03:45 PM
6
votes
5
answers
5977
views
Remove/Delete Attachments from email server (IMAP)
I have a rather large quantity of emails on my mail server (IMAP) which contain attachments (PDF's, etc.) These attachments waste space--my HDD space on server is limited by my hosting company--and I am trying to regain some of that space by removing the attachments from the emails. (These are redun...
I have a rather large quantity of emails on my mail server (IMAP) which contain attachments (PDF's, etc.) These attachments waste space--my HDD space on server is limited by my hosting company--and I am trying to regain some of that space by removing the attachments from the emails. (These are redundant on the mail server as they have pretty much all been downloaded or uploaded locally.)
When I used Windows (a long time ago) there was an app called "IMAPSize" which was a "client-type" email handler which could be used to login to mail server and manipulate the messages, remove attachments, etc. But I have not found (so far) anything comparable in terms of ease of use and getting the job done, for Unix/Linux (although we might have much better and more robust solutions--I just don't know which.)
I am aware of munpack (have installed and used it locally) and ripmime but it seems to me that those programs are meant to handle messages when they are stored locally, Mbox or MailDir. I do not sync my email messages locally, preferring to leave them on our server (have so many emails, over 100k, in aggregate.)
Moreover, Munpack seems to be great at extracting attachments but I have not seen a way to just delete the attachments, without destroying the message itself.
I do have Horde, Roundcube and SquirrelMail available as web GUI's but, again, have not seen a way to delete only the attachments.
Additionally, I am looking for a solution which does not involve complex setup and configuration, etc. (I may be dreaming/asking for too much.)
I thought of trying this approach: use offlineimap to download and sync all of my emails locally, then possibly use munpack or ripmime to delete attachments (provided I can find a way to do that, as opposed to only extracting them) and then re-sync with server and hopefully, emails would be back on server without attachments but a) not sure if this approach would work and 2) again, I am not really looking to download tens of thousands of emails, locally....
I am sure there is a solution out there for me (perhaps some type of client-type GUI app which would let me manipulate emails on servers/delete attachments; or some other not too complex approach.)
Note: I do not use Thunderbird and have no desire to install or use it; and same for Wine. I try to keep my box very 'minimal' with light footprint apps, wherever possible.
Thanks for a pointer in the right direction.
stef204
(61 rep)
Dec 17, 2014, 04:12 PM
• Last activity: Nov 10, 2024, 10:58 PM
5
votes
3
answers
10447
views
backup emails from IMAP in readable form
I have headless debian/raspbian linux machine and I would like to backup all my emails via IMAP including all mail and subfolders once daily (connection is secured with SSL/TLS. it should run automatically from cronjob every day). This backup should store the same emails as I have on my default mail...
I have headless debian/raspbian linux machine and I would like to backup all my emails via IMAP including all mail and subfolders once daily (connection is secured with SSL/TLS. it should run automatically from cronjob every day).
This backup should store the same emails as I have on my default mailserver - so it means when I am working from another computer whole day, it should be able to sync my work (that's why I want to use IMAP).
Ideally I would like to have all my emails in readable format on backup machine, if main mailserver fails.
Any idea how this can be done?
peter
(995 rep)
Sep 16, 2016, 07:45 AM
• Last activity: Oct 16, 2024, 09:13 AM
Showing page 1 of 20 total questions