I've recently started to use Emacs. I'm using mu4e for my mail which is downloaded via Mbsync and indexed using Mu.
Is there any way to import thousands of emails on my hard drive in the .eml format?
I'm on OSX El Capitan
I actually find that if you put the eml files in a cur folder and run mu index, it finds all the emails!
Related
I have a problem with unzipping files. Usually I use a PowerShell script, that I run through SQL Server database (procedure) and it will unzip my files how I want them (database shouldn't be any issue).
Main part of script:
exec '"for %i in ("'+#path+'\*.zip") do "C:\Program Files\7-Zip\7z.exe" x "%i" -o"'+#to+'""'
But for once in a while there is a .zip file that if run through this script will extract files with names of files encoded badly and to prevent that I need to manually open every .zip file and click to extract in 7-zip GUI and that will returns names of files correctly.
This manual way of doing things very, very slow. Because it needs to be done on a server, God forbids if I am on VPN at home. So let's say I have 5 zip files (3 GB), it will take me hours to unzip. If I do it, through server it takes like 2 minutes.
So I just trying to find out how to unzip it with script, what is the difference between my script and manual extraction?
The root-cause is likely to be files that were created with a setup that doesn't match the codepage of your windows environment. Are any of the zip file publicly available? If so, can you provide a link?
To deal with these problem files, you need to know what encoding was used for the filenames. If the 7z gui can handle these files automatically there must be an option to tell it what encoding to use.
Once you know the encoding you can use the -scs option in 7z to decode the filenames correctly.
Modern zip files don't have this issue because they store filenames in UTF-8.
I've been trying to get Crypt::OpenPGP to work with a new pubring.kbx file but it fails with 'No known recipients for encryption'.
If I export the keys in my pubring.kbx file to a pubring.gpg file then I can get the process to work successfully.
Is there any way to get Crypt::OpenPGP to work with new .kbx files?
Alternatively, what PGP implementation would you recommend for Perl scripts that need to be Operating System agnostic (specifically work on Windows, Linux, FreeBSD) in 2022?
Thanks
I created an installer with Installshield for my MATLAB GUI. Installer copies all files of my program to c:/Program files/Program_name. When I run it from shortcut, an error appears that can't overwrite some file. I think this is a permission error because my program is in OS partition. I have some functions like mget , mput and fprintf for some text files in that directory and some times my software download some files from FTP and copy them in discoursed directory.
When you copy some codes that have functions like these and run your code from C:/ (OS partition), you have this problem (without using any installer). I need an automatic solution because this program is going to install on some computers.
How can I solve this problem?
Thanks.
Write to MyDocuments instead (e.g. appdata) - that's the one place where the user is guaranteed to have write permissions.
(Jonas comment. Thank you for your answer)
I am installing Sublime Text 2 at my work on a Windows XP machine, which sets the package folder to %APPDATA%\Sublime Text 2\Packages.
I need to change this to a different folder because this exceeds my profile storage space. Can this be changed via Sublime or do I have to use symbolic link to a different directory?
Too bad this isn't supported (as of Sublime Text 2.1) through configuration, but creating a directory symbolic link works perfectly.
For this I used the junction tool from the sysinternals suite. Runs on Windows XP and higher or Windows Server 2003 and higher.
Symbolic link is your best bet, I haven't seen or heard of changing the location of the packages folder before.
I would like to create a powershell script generating a report showing all compressed files/folders on remote servers. By compressed files I mean files compressed using the buildin Windows Compression utility, not zip. But I have a hard time figuring out how to localize the compressed files. Should I go with WMI or?
Thanks
Frank
The FileInfo/DirectoryInfo classes from .NET (I assume all of this is easy available to PowerShell) will give you the file attributes that includes the compression attribute if compressed.