Programming :: How To Save Mail To Folder
Jul 18, 2011I am an avid user of gmail. Recently I have been receiving some important e-mails, and I want to download only those e-mails from that specific person to a folder.
View 1 RepliesI am an avid user of gmail. Recently I have been receiving some important e-mails, and I want to download only those e-mails from that specific person to a folder.
View 1 RepliesI'm working on a Perl script that handles e-mails and attachments using MIME::Tools.
This script saves the attachments on filesystem, but whenever it finds an "&" (ampersand) into the filename (the filename is given by the "path" method of the "MIME::Body" class), it is changed into "%26" and then stored on disk.
To make an example, if an attachment is named "You & me.pdf", it is saved on disk as "You %26 me.pdf".
I also tried to change that char with a regexp and setting again the path passing the new (and working) value as a parameter to the "path" method, and if I print the value it is right, but on the filesystem is *always* stored with the "%26" string.
Recently I setup a system for a non-technical user. He is only using Firefox, Pidgin and OpenOffice for about 2 hours a day. I have created a folder "/home/jim/myFiles" where he can save his document files. But Jim has accidentally deleted his myFiles folder on 2 occasions. He had intended to delete a file in that folder. Is there a way to lock the folder so that the user and create/read/write documents in that folder but not delete the folder itself?
View 14 Replies View RelatedUsing normal bash tools (ie, built-ins or commonly-available command-line tools), is it possible, and how to extract/save attachments on emails?
For example, say I have a nightly report which arrives via email but is a zip archive of several log files. I want to save all those zips into a backup directory. How would I accomplish that?
this is my code at the moment
PHP Code: <?php
if (isset($_REQUEST['email'])) && $_REQUEST['email']!='0'{
$to = "chrisathisemail";
[code]....
I have postfix setup right now and it's relying mail to our Exchange server fine. What i would like to do though is have postfix save the email that gets passed through so that if a manager deletes an email, it's easy to look through by date and find the email he's looking for. Well, I'm thinking it would be a lot easier then having to need to pull out the backup tape and try to recover one email. Does anyone know whether I would be able to accomplish this?
View 3 Replies View RelatedWas told that I need to use Javamail for a project to send mail rather than using "mail" or "mailx". Has anyone here done this?Any pointers or sites you've used and can recommend?
View 1 Replies View Relatedso running latest ubuntu 9.10 karmic koala. I installed from the terminal PHP and can browse to the localhost and everything looks cool.
I try to use gedit or quanta to save a file to /var/www/
Which is where the test index.php is located but I don't have the correct permissions! I am logged in as the same user I installed ubunutu under which should give me all the rights I need.
I need to give myself permission to write into this folder?
At windows, if I set any icon to folder, this creates desktop.ini, or .directory. At ubuntu, I noted that this information is only stored in metadata, which you can access typing "gvfs-metadata" I found this idea: http:[url].....but I don't know how to realize that.I'd like to do that. For specific folder for example, store the metadata info in hidden file, which could be read in windows or any OS.
View 2 Replies View Relatedhow I could save all of the mail sendmail processes to a named pipe?
View 5 Replies View RelatedI have a dual boot machine. I have changed "My Documents" in Windows 7 to my G partition to the folder "G/Windows data" I have just bought a Buffalo networked 1TB LinkStation backup drive for our two desktops and notebook, and the backup software is useless for Linux and Windows 7 - won't install with anything later than XP! So I will want a linux program to backup the two folders in Drive G to the LinkStation every day, automatically - if that is possible. I now want to change my /Home drive to another folder in the G drive called "G/Ubuntu data"
View 9 Replies View RelatedI want to copy location of every .avi , .jpg file present in a folder or in subfolder present in a direcotry and save in a textfile how to doex : /home/username/Desktop/bookofeli/video/book.aviit should give full locaiton of path how to do
View 2 Replies View RelatedI have a 9.04 server with postfix imap server. Clients (evolution 2) save sent items in local computer folder. How can I tell postfix to save sent mails in a sent items folder in users mailbox?
View 1 Replies View Relatedmy ubuntu machine disk is already full, i want to set the save location of of bittorrent to a network share in windows is this possible?
View 3 Replies View RelatedI've found these commands in [URL]:
Quote:
find -type f -print0 | sudo xargs -0 md5sum | grep -v isolinux/boot.cat | sudo tee md5sum.txt
But I don't understand these commands, even after reading their manuals.
My Ubuntu Remex Notebook had been install in windows7 by wubi, I want to reinstall it to solve some problems, but how to save my personal files in Downlads folder?
View 2 Replies View Relatedis there anyway to have mail go to a diffrent folder in evolution.. here is what i mean... i have my main email go to inbox.. i would like other accounts to go to another folder i have a seprate email address for facebook cause it gets bogged down, it would be nice to have this go to my Facebook folder by default instead of filling my inbox..
View 2 Replies View RelatedIs there any possibility to encrypt mail folder? So root user cannot access and read mails?
View 9 Replies View RelatedI have ubuntu 10.04.1 and a H.P.psc 1311 all-in-one printer scanner.Printer works ok but when trying to scan,with xsane,it goes through the scanning process and an image of the document comes up on the screen.
When I try to save this image to desktop or file/folder whatever I get the message; "Child Process Error. Failed to execute OCR command:GOCR:no such file or directory."
I been using linux for a while, but I havent had the time to really learn it. Something Id like to get more familiar with is bash so here is a simple example of something I would like to do:
I have a directory full of files. For each file in the directory create a new subdirectory with each files name.
I tried this:
#im already in this directory
aaa=./*
for a in $aaa
do mkdir $a
done
One of the problems is that there are spaces () and - in the filenames so I get many subfolders with names like "-" which i don't want.
I tried stuff like:
aaa=./*
for a in $aaa
do mkdir "'"$a"'"
done
This of course also did not work.
Additional I tried just creating a folder with the name of one of the files and I got this:
mkdir: cannot create directory `(audio) - R56339.EXE': File exists
Well yeah a file exsists with that name, but I want to create a folder- why is there a conflict?
Just to be clear here are the contents of this folder:
~/Desktop/LAB/Media/Drivers - (Image Deployment)/Optiplex_GX260/XP> ls
(audio) - R56339.EXE (NIC-Onboard-Intel) - R54402.EXE
(Modem-datafax-V92) - R54403.EXE OEM_Applications
[Code].....
Using Thunderbird 3.1.10 and no longer can see copies of my sent messages in the Sent Folder. I tried to tick the box in account settings to save a copy and it would not take the change. What I did notice is that the e-mails sent are being received on the other end, but I do not have a copy in the Sent folder. It seems as though my e-mail account has been hijacked, and I changed my e-mail account password as a precaution. I am also getting e-mail BACK in my in box that I sent to other people. My AT&T account uses yahoo and my account through AT&T was originally bellsouth.net What can I do to make sure I get a copy of all of my e-mail sent out?
View 5 Replies View RelatedI'm using Mozilla Thunderbird 3.0.4 with Ubuntu 10.04 but I find the default highlight colours extremely hard to read when new mail arrives in a folder.
The default colour is grey which is both difficult to read and greyed out items have tended to mean something is not available. How can I can i change the default colour to something much better or am I stuck with extremely poor choice ? Has it something to do with 10.04 .
I recently moved to Thunderbird 3, and liked the tab viewing, even the search module. I have problem though, that currently tried to solve, without success. When I search for mails from a sender (eg. coss@cat.com), a new tab is opened, and I can see them all, but I can't figure out how to copy all these mails into a desired folder of Inbox (eg. cat). So ... I use Ububtu 9.10.
View 4 Replies View Relatedneed a script to achieve saving multiple text files as 0001 0002 0003 etc.or moving files to a folder displayed this way..there prolly is an " if " statement involved also...if 0001 exist then %+1 and so on.
View 1 Replies View RelatedI need to read from a file called ranking.txt the name of the players and the respective score. The file is something like this:
Code:
24145 John Burt
12442 Kate Blair
[code]...
i tried stat and S_ISLNK(st.st_mode) but it always evaluates to false :/ is there anyway i can tell if a folder is a link to another folder?
View 6 Replies View RelatedI am new to linux scripting, but I have programming experience. I need to save the UUID for /dev/sda1 as a variable, lets call it id. I am sure there is a way to do this with the awk and blkid commands, but I do not know any of this well enough yet to figure it out and after a couple of hours of reading I am still lost as to exactly how I would put this together. I need to save the uuid as a variable so that I can run an if statement with it
if [ -f /media/$id/file ]
then
echo "copy successful"
else
echo "oh crap!"
honestly all I need the uuid for but I cant check this by doing the same if with /dev/sda1/file so I need to be able to save the uuid into a variable
i'm sniffing network packets with pcap in ubuntu, i need to save these packets somewhere in the memory and after a while read ans send them. how can i do this?
View 1 Replies View Relatedless doesn't save command history, i.e. file .lesshst isn't created. If I create it manually, nothing writes to it too.OS AIX 5.3 I think linux users can have the same issue, hardly this issue depends on OS.
View 9 Replies View RelatedI am creating an script with Xdialog.The checklist option is confusing me a litte. Can someone tell me how to save the checklist states so they can be used in a script? As an example:
Code:
Xdialog --checklist "Choose toppings:" 10 40 3
1 Cheese on
2 "Tomato Sauce" on
3 Anchovies off
I would then like to put these values through if/else statements to perform different things with respect to the user selection.