I want to remove attachments (files) from mails on the (exchange) server.
I currently use IMAP to access the accounts and mailboxes.
How do I remove the attachments on the server side without removing the message?
What you are asking for is not possible with IMAP. The only option is to download the desired message in full, alter it as needed, delete the original from the server, and then upload the modified copy.
Related
My feature was built before /createReply existed and relies on:
Set a custom header with Outlook/Office 365 REST
to add References and In-Reply-To to an email. This allows the app to send email replies w/o requiring Mail.ReadWrite, which is much more access than we need:
https://learn.microsoft.com/en-us/graph/permissions-reference#mail-permissions
Read and write access to user mail
Allows the app to create, read, update, and delete email in user mailboxes. Does not include permission to send mail.
Now those headers no longer get added. (I also tried Cannot pass "In-Reply-To" parameter to Microsoft Graph sendMail and arrived at the same result as the author.)
Is there a way for me to get around this regression without requesting additional user permission? Thanks!
https://learn.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=http
As of 2019-10-04, Microsoft published changes to their /reply endpoint which now allows for message:
https://learn.microsoft.com/en-us/graph/api/message-reply?view=graph-rest-1.0&tabs=http#request-body
https://github.com/microsoftgraph/microsoft-graph-docs/pull/5771
With the message field, I should be able to send replies w/o requesting additional permissions.
I need to send e mail's inside a larger company network. Sending mails via the INDY smtp component is no problem and works fine for me. The only draw back about the configuration as I need a company mailbox and password shared within the source code. If I use a google mail box also everybody with access to the source code may send e mails using this account.
I wonder now wheather a own E mail server (TIdSMTPserver) will solve my issues, as I can define the password for sending Email by myself and I can create a sending name like "ShortNewsUpdate.com"
I already found INDY SMTP SERVER#1 and INDY SMTP SERVER#2with a link to the demo file , but the demo zip file does not compile with latest INDY library (http://indy.fulgan.com/ZIP/Indy10demo.zip )
is the a new public sample code for a mail server with Indy 10 ?
My app creates an email that can have sensitive data in it (depending on the users perspective). Is there a way on the iphone's email client not save a copy in the Sent folder.
And in the same way, if the user choses they can send it via text..is there a way to not have it be in the Message streams.
I'm thinking there is not but I'd love confirmation of this if possible. I've been scouring but can't seem to tell if it's possible.
Thanks.
I'll break this into two parts:
Not putting a copy of a sent message in the sent folder:
There's no easy way to do this since you don't have access to a user's mail. You could have the user enter their email service's IMAP details and write your own mail sending implementation that then goes and deletes the sent message from the server, but it's possible that mail clients would keep a local copy regardless of what happens on the server if they grab the message before you delete it. Regardless, this is a really terrible user experience (having the user enter IMAP details, not using the built in mail composer) and it'd be difficult to write (and you would need to be insanely careful about deleting something from a user's mailbox, and you'd have to ask them if it's okay to do so).
Not showing a text message in a Messages app conversation stream:
There's actually a way to do this. Text messages can be sent to users via a specially formatted email address that's different for every cell service provider. For example, to send a text to a Verizon subscriber it'd be 5551239876#vtext.com. For this solution to work you'd need to send the message using some sort of automatically generated email address that you retrieve from a mail server you've created, and then you'd need to implement your own SMTP mailer on the device. Of course, a user can always request text message transcripts from their cell service provider (and some have easy access online) and there's no way around that.
How sensitive is this information? Email and text message aren't very secure protocols. You may want to consider alternative methods that provide encryption and authentication mechanisms.
No its not possible if you are using the built in mailer in iOS. Something you could do if you wanted to get around this would be to make a customer mailer, send the information to a server and send off the mail through code but this is quite a bit more work.
I am pulling email into my app via imap using Net::IMAP and copying the mail into an All Mail folder then marking it in inbox as deleted.
This then enables a backup of all emails for the user in All email folder and my app only pulls in emails from the inbox not flagged as deleted.
This works fine for gmail but i am trying to do it for horde webmail.
I successfully pull in the emails but cant seem to flag them as deleted and copy them to another folder.
Here is my code for doing this in gmail :
imap.uid_copy(uid, "[Gmail]/All Mail")
imap.uid_store(uid, "+FLAGS", [:Deleted])
Any one help with this? What should the "[Gmail]/All Mail") be changed to for horde webmail? Is this different for all email like hotmail / yahoo etc?
Any help on this would be great.
thanks
rick
can you try this?
connection.store( uid , "+FLAGS", [:DELETED])
...
connection.expunge()
e.g. "store" instead of "uid_store" ?
I'm not using Horde, but the above line is working for me for several IMAP servers.
Also make sure that you call connection.expunge on the mailbox where you flagged the messages for deletion..!
e.g. look at the net/imap API for #expunge:
http://www.ruby-doc.org/stdlib/libdoc/net/imap/rdoc/classes/Net/IMAP.html#M001441
How can I put my downloaded emails back to my POP3 server? I want it to appear like how it was sent originally. I made a mistake of setting thunderbird to delete my server-side emails and keep only the local one. Now I need to re-upload it back to my web mail. How do I go about doing such?
NOTE:
The Mailredirect Extension is not compatible with my current ThunderBird so I don't think that trick will be possible.
The POP3 protocol has no provisions for uploading messages. You could use IMAP to upload them, if the server supports it, or just re-submit the messages to the mailserver via SMTP (this will add more Received: lines, and pass through any spam filtering or the like again, however)