Find Jobs
Hire Freelancers

Email parsing PHP script

$30-50 USD

Folyamatban
Kiadva ekkor: majdnem 16 évvel ezelőtt

$30-50 USD

Teljesítéskor fizetve
We need a PHP script that is able to read one or more mailboxes in a Mandriva Linux server (running Postfix), parse each email, extract the sender, recipient and subject, and then perform certain actions depending on conditions. The script needs to run constantly (we have full access to cron) and once it processes an email, it can safely delete it. We do not need the actions coded. We will insert those ourselves. Typical email example: From: <server1@[login to view URL]> To: <alerts@[login to view URL]> Subject: Almost out of disk space Emergency. Server1 is almost out of disk space on drive C: Typical conditions pseudo-code: if $subject CONTAINS "disk space" send_email_to( "admin@[login to view URL]", $subject, $sender, $body); ## Deliverables The mailboxes are designed particularly for the use of alerts. I am not particular as to how the script will get the email. It could use POP to download the mail, or it could parse /var/spool/mail/mailbox1 for all I care. What I do care about is that each email is parsed only once. I would like the PHP script to be as modular as possible so that we can reuse the functions easily. At the moment we only have a couple of mailboxes we'd like parsed, but I would like it to be very easy to add more in the future. I envision cron running a script like this: include /someplace/[login to view URL] parse_mailbox( "alerts"); parse_mailbox( "backups" ); Also, I would like the script to have an easy way to compare those things parsed. In particular Sender, Recipient and Subject should be able to be compared whether it CONTAINS a matching string, or EQUALS a matching string, while the Body of the email should only be compared to whether is CONTAINS a string or not. How the script will be used is basically we'll make string comparisons to sort all the email alerts. If they are critical, they are emailed to somebody's phone, if they are not, they will create a ticket in our PHP/MySQL database. These actions, though, emailing and creating tickets, etc. are beyond the scope of what I expect from this particular project. Thanks!
Projektazonosító: 3959078

A projektről

9 ajánlat
Távolról teljesíthető projekt
Aktiválva: 16 évvel ezelőtt

Szeretne pénzt keresni?

A Freelancer oldalán történő árajánlatadás előnyei

Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Vázolja ajánlatát
Ingyen regisztrálhat és adhat árajánlatot munkákra
Neki odaítélve:
Felhasználó avatár
See private message.
$33,15 USD 21 napon belül
4,8 (109 értékelés)
5,3
5,3
9 szabadúszó adott átlagosan $36 USD összegű árajánlatot erre a munkára
Felhasználó avatár
See private message.
$42,50 USD 21 napon belül
4,9 (47 értékelés)
5,5
5,5
Felhasználó avatár
See private message.
$42,50 USD 21 napon belül
4,8 (43 értékelés)
5,1
5,1
Felhasználó avatár
See private message.
$42,50 USD 21 napon belül
4,5 (25 értékelés)
4,9
4,9
Felhasználó avatár
See private message.
$40,80 USD 21 napon belül
5,0 (24 értékelés)
4,0
4,0
Felhasználó avatár
See private message.
$25,50 USD 21 napon belül
4,9 (21 értékelés)
2,8
2,8
Felhasználó avatár
See private message.
$12,75 USD 21 napon belül
5,0 (3 értékelés)
2,1
2,1
Felhasználó avatár
See private message.
$42,50 USD 21 napon belül
5,0 (2 értékelés)
0,5
0,5
Felhasználó avatár
See private message.
$42,50 USD 21 napon belül
0,0 (1 értékelés)
0,0
0,0

Az ügyfélről

UNITED STATES zászlója
San Antonio, United States
5,0
42
Fizetési mód hitelesítve
Tagság kezdete: márc. 15, 2005

Ügyfél-hitelesítés

Köszönjük! E-mailben elküldtük a linket, melyen átveheti ajándék egyenlegét.
E-mailje elküldése során valami hiba történt. Kérjük, próbálja újra.
Regisztrált Felhasználók Összes Közzétett Munka
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Előnézet betöltése
Hozzáférést adott a helymeghatározáshoz.
Belépési munkamenete lejárt, és kijelentkeztettük. Kérjük, lépjen be újra.