Modify Bash script that names and files e-mail messages from Mutt
$10-30 USD
Peruutettu
Julkaistu noin 7 vuotta sitten
$10-30 USD
Maksettu toimituksen yhteydessä
I use the attached script to file e-mail from Mutt. Right now, it simply names the file and saves it in a directory.
I want to modify the script so that destination directories are defined. Every time the script is run, the user will be prompted to enter the Destination:
> Destination?
The user will start typing the name of a directory, which will be a subdirectory of one of the defined directories.
For example, if the defined directories are
active-matters/
|- apple/
|- brown/
|- cozy/
inactive-matters/
|- jimmy smith/
|- maria/
|- Burns/
> Destination? B[tab]
Burns
brown
Here, the user has typed B and hit Tab and been offered the two options.
> Destination? Bu[Tab]
Hitting tab autocompletes Burns
>Destination? Burns
Hitting enter now will save the file to the Burns Directory.
Before saving, though, one more prompt should be added.
Time entry [Default 0.1 minutes]> _______
The default is 0.1, representing 0.1 minutes.
Then append a line to the end of '[login to view URL]', a file that exists within the directory selected to save the file. Append the following:
| YYYY-MM-DD | t | Review e-mail from $from | Correspondence
Where t is the amount of time entered (and 0.1 if no time entered).
If the [login to view URL] file does not exist, create it in this format:
| Date | Time | Activity | Category |
| YYYY-MM-DD | t | Review e-mail from $from | Correspondence
Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to serve.
Here is the reason. Why you should pick me?
a) I am a very expert and have the same kind of experience of 5 years.
b) I work very hard (16+ hours a day and 7 days a week) and also very fast so... it will be done very soon than most of the other providers
c) And most important part is my policy:
"I will give you (to my client) life time support (as long as you keep relation with me). And fix any bugs/problem without any cost. So, don't ever worry about me”
Please sir, leave a reply ASAP, as I am waiting for your kind reply