Is there a way to edit the raw contents of a message with some API in Perl, Python, or even Ruby? A quick Google search showed me little. In short: someone sent me a message a long time ago with the wrong timestamp, and it shows up at the top of folder in Thunderbird. This has annoyed me for a while, and I want it to be sent from the proper year (2010), not from the future (2020). To be clear, headers show right date and times. The other's client clearly did this, so it should require minimal effort? Right?
The IMAP rfc - rfc3501 - doesn't seem to establish a way to change the date/time of a message.
What is you email client ? According to http://kb.mozillazine.org/Invalid_date_in_IMAP_messages, outlook uses the date of reception of the message by the mail server while thunderbird uses the date in the email header (set by the first smtp server, iirc).
If you use thunderbird, there is a bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=570355
mutt can do it. Anywhere you can get with it (and certainly IMAP support in mutt is not great, but you can open GMail, Exchange, dovecot, or any other widely used email store with it), you can run edit command on a message (per default bound to e key). The result of editing will be original message marked deleted and new edited message added to the current folder.
Related
This Odoo company we're working with basically sends a lot of e-mail. One e-mail thread can turn into 100+ e-mails with different people brought into the conversation (CC'd) at different times. Due to the complexity of their e-mail management, they want to use their Gmail interface (Google Hosted) and CC an e-mail into odoo and they want it to get tracked in a thread. I've basically already done that... they have an e-mail like odoo+res.partner-432#domain.com (although it's hashed to not be easily readable) - they CC this and the full body thread gets included in chatter (mail.message) under respective model / id.
The challenge with this: the chatter messages can get huge very fast, due to their e-mail messages (because each e-mail includes main reply, and all previous history on thread). I've looked into some systems that have a "reply above this line" - and it just takes the latest message. And in those systems, eg. ticketing systems such as Zendesk, help scout, I believe the teams are using the ticketing system (not a gmail) and thus there is much more control over the inbox and incoming email (not to mention, those e-mails are usually 1-to-1, not including groups).
My questions:
Is there any other workaround that you see here to have odoo pull in only the last e-mail reply and not the full e-mail thread? I could probably build something like this: https://github.com/zapier/email-reply-parser - and hook it into odoos e-mail parsing, but that works on text format e-mails only (not HTML)... only. So it's not bulletproof, and I'm not sure it's worth it.
Even if this client DID use odoo 100%, I still don't think it would be possible to get it to work the way they want without major customizations (eg. Odoo's default behavior is to include all past e-mail threads)
I'm curious if anyone here see's any other solutions, otherwise – I doubt there is something here I haven't seen. :) (But very open to be proven incorrect!)
I've used mu4e previously and really liked it, have had a new laptop for about a year during which I started with the default thunderbird application, and never got around to setting up mail in emacs. I'd like to rectify that.
Using Thunderbird, I have several (around 20) accounts (google, and non-), calendar (lightning), lots of attachments, and chat logs.
My question is:
What are all the things I should back up, migrate, and consider in moving from Thunderbird to mu4e with offlineimap so as not to drop anything thunderbird has done for me? Especially:
Are there ways to safely reduce duplication, such as a way to point my emacs email setup at the mailbox directory thunderbird uses?
I have some email accounts that I no longer have live access to, but have as backups. How can I transfer these?
(I'm running on ubuntu, if that helps.)
Thunderbird uses a modified mbox format to store its mails. Using the same mail in mu4e that was downloaded by thunderbird, will be difficult as it will require on-going conversion between modified mbox of Thunderbird and maildir of mu4e. I haven't come across any good tool for converting maildir to modified mbox of Thunderbird, last I checked 2 years ago.
Separately downloading mail for mu4e (offlineimap might work for this, but I like mbsync better) is safer IMHO, though it does cause duplicates like you say.
The backup mail you have is the easiest to deal with. One time conversion from Thunderbird's mbox to maildir works pretty well with https://www.gerg.ca/hacks/mb2md/.
This is very weird and am not able to find any source of information on the internet.
There is an application (in asp.net if that matters) with me which creates and sends emails.
These emails are seen correctly on email clients like gmail and Windows Live mail.
Only in case of MS Outlook the exact same mail (saved from Windows Live mail and opened in Outlook) is showing some undesirable characters.
Of course on generating from the application also shows the characters (and not just by saving it).
The following is the comparison screenshot .
At least some direction as to where should I look will be of great help!
Cheers,
I'm uploading messages into my IMAP mail server via IMAP store operation. However, I would like to add "comments" to these messages so that when I download these emails again I know the they are created by "store". Basically, I need to add text which will be ignored by the formal semantics of parsing RFC822.
The specification of http://www.ietf.org/rfc/rfc822.txt defines how to add comments but I cannot make it working :(
Does anybody has en example of a RFC822 message with a comment in it?
You are probably looking for IMAP's annotations. However, it's an extension which is far from being common -- quite a lot of IMAP servers do not support it.
It seems that having a special "flag" on each message you created is something which would be enough for you. If that is correct, then simply using IMAP flags (or keywords) is what you're looking for. Simply add one special flag, like thisIsProducedByFooSoftware to the APPEND operation. (You said you were doing that via STORE -- that's wrong, in IMAP, STORE manipulates just FLAGS, it doesn't add new messages. New messages are added by APPEND.)
for my group at the university I'd like to set up a server-sided email-to-rss service.
It should work like that, that different people can send emails to a certain address (nothing proprietary like gmail but a certain imap or pop server) which will the be translated into an rss feed. One main and important feature has to be that one can see the sender of the email in the feed. Furthermore it would be nice (to take the load off the server) if the emails get translated to a feed only once a day or so.
Does anyone has some input on this subject? Are there any scripts/services which will allow that?
Thanks a bunch.
Instead of "reinventing the wheel", you could use a mailing list that supports RSS. Your people can then write the mails to the mailing list and you can then use the mailing list's RSS feed however you intend to.
This should help you find a solution: https://encrypted.google.com/search?q=mailing%20list%20rss
Pick a programming language you're familiar with, then use either an imap library to fetch the E-mails (through cron, every hour or something like that), or if you have access to procmail on your mail server, launch your script as an email arrives (this shouldn't be too much work to handle for a server, unless you're talking a vast amount of E-mail).
The script would just insert the E-mails into a database, before extracting them and outputting the RSS-feed directly from that (this shouldn't be more than a handful of lines of code).
There's a couple of providers that does this for you, although it seems that the most popular ones have disappeared. Advanced Email2RSS seems to be an option, although I have no idea how good they are or if it'll even solve your issue.