How do I send an email and save a copy to my local Microsoft Outlook “Sent Items” folder using POP3 mail server? - jakarta-mail

I am using JavaMail API to send emails from my Microsoft Outlook account. The mail server in use is POP3. How can I program JavaMail to save a copy of the sent email in my local “Sent Items” folder?

You can't, unless you can come up with a Store implementation for Outlook, but even then it won't work because Outlook will probably be running and have the PST file locked. See here for Javamail third-party products.
A much better answer to this sort of thing is to use IMAP and save the email in the IMAP Sent folder. Outlook can see those.

Related

How can I configure the SFTP-SSH Connector for Azure Logic Apps to transfer files in "Windows" format?

I have a logic app that retrieves PGP files from some client's SFTP server and stores them in one of our storage accounts. The logic app worked flawlessly until we start receiving files over 50 Mb. Due to the limitation build into the (decprecated) SFTP Connector we had to replace it with the SFTP-SSH Connector. The problem is that this new connector doesn't transfer files in the same manner at the previous one or the FileZilla Client does. I don't know the magic sauce that FileZilla or the old SFTP Connector was adding to the file to make them adequate for decryption in Windows.
For example, using FileZilla a file shows as having 36,693 bytes on the client's server but when I download it using FileZilla or the old connector I am getting a file with 37,017 bytes and that goes through the rest of the process without a hitch.
With the new connector I get a file with exactly 36,693 bytes that cannot be used.
So, my question is what are those 324 extra bytes and how can I get the SFTP-SSH connector to add them? (my guess is that it has something to do with the line endings, unix vs. Windows but I don't know).
Here is the connector I'm talking about: https://learn.microsoft.com/en-us/azure/connectors/connectors-sftp-ssh

How can I Connect google sheets to SQL Server via SSL via appscript

How can you securely transfer data from SQL Server (Intranet) to google appscript?
I have made the connection to the SQL Server Instance, but im afraid of someone pickup the raw data when traveling to google servers.
Any recomendation how to accomplish this.
Basically the appscript is querying our internal database successfully, we just need a kind of encrytion. we have tried to upload .csv files and gdrive and import data to sheets, but some how data always get corrupted.
There is no direct guide from Apps Script to do this. Try the How to Encrypt your Gmail Messages with Google Docs from Armit Agarwal. See if you can also use SJCL encryption library in your situation.

How to copy file to remote server in Lotusscript

I want to create a Lotus Notes agent that will run on the server to generate a text file. Once the file is created, I need to send it to a remote server.
What is the best/easiest way to send the file to a remote server?
Thanks
If your "remote" server is on a local windows network, you can simply copy the file from the server file system to a UNC path (\myserver\folder\file.txt) using the FileCopy statement. If not, you may want to look at using a Java agent, which would make more file transfer protocols easily accessible.
In either case, be sure to understand the security restrictions on Notes agents - for your agent to run on the server and create a file on the server's file system, the agent will need to be flagged with a runtime security level of 2 or 3, and signed by an appropriately authorized ID.
Sending or copying files using O/S like commands to a remote server require that destination servers be also mapped as drives on your source server. As Ed rightly said, security needs to allow you to save files down onto the server and then try and copy them.
You can generate the file locally on the server and then use FTP commands in a script to send the file. Or if you're a java guru, you can try using Java.FTP to send the file as well. I had some trouble with it, but it should be possible providing an FTP account is setup on the destination server. FTP related stuff by a well known notes guy can be found here and here
I have done it using a script, and it's clumsy but effective in simply pushing files around. Ideally, if the server at the other end is a Domino server as well, you could actually attach the file in an email and send it to a mailin account on the destination server. I have done that before, and it's great as you can just pass the whole problem of getting files off to the SMTP process.

File sync or replication

What is the easiest way to sync or replicate files over a network? I am running a few servers in a rack for load balancing and wish to mirror content.
For example, I have Server 1 where I do my FTP uploads to. Server 2 is another node. The manual way is for me to also do FTP uploads to Server 2 but I am sure it can be done automatically without my presence or without the user logged in.
I have tried SyncToy but it just doesn't run when the user is not logged in. I have to manually run it.
Are there better ways? I saw Microsoft DFS but it is just too complicated for me to set up.
Try SyncBack.
There's a light-weight version (SE) which is free and a Pro version.

How to transfer databases and site contents

I own a website with 20 GB data on it Now I decided to change the Hosting compnay .
I'm Moving to Russian VPS so is there a way to transfer the contents of my website to the Russian VPS without uploading them again .
Is there a service that does this.
I heard that there is a way to do this using shell access (BUT what is shell access and how it works)
thanx in advance guys
You can log in to one of your old host using an SSH connection, then connect from there to your new host, again using an SSH connection, and then upload all files from your first server to the second. For databases, do a data dump on your first server, and through the SSH connection, run the data dump against a database on your new server.
Depending on the hosts, how you connect via SSH will differ, but there should be instruction available from the providers. If you can't find the directions, just e-mail the provider's support and ask.
If you have access to the server itself, you can ftp into your old site from the new server, and download all the data from the new server, without having to download to a personal computer.
If your current provider supports FTP, you can issue FTP commands from your new VPS to the current FTP site. If your data is in DB - backup and transfer backup.
You can't avoid 40Gb of transfer (20 out from old site and 20 in new one).
This is one of the reasons that makes Amazon S3 a good thing.

Resources