Re: How can i run shell script after mail arrive ?



Jabka Atu wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello ,...

how can i run a script when mail arrive ? (kmail and icedove).
create a .forward file in your home directory, and put a line in it of the form:
|"|$HOME/bin/your.program -and some arguments"

look at http://linuxgazette.net/issue14/procmail.html for some details

if you want to do something fancier, install procmail (Google it)

do a little research - you want to get permissions set properly, to avoid opening up a really big security hole in your system, and you want to be careful not to set up any mail loops


|


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • kmail wont send attachments.
    ... Using Kmail in Sarge and it won't send attachments, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Dates and times in Icedove
    ... I am beginning to think the same way, especially if I can import all my IceDove files to either Mutt or Kmail. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: A-posteriori use of another HDD for the /home/username
    ... but my wallpaper is the Debian's one, menus are mere menus, without ... I have no idea what sdb is, but as long as one of its partitions isn't mounted on /home/merciadriluca, it can be ignored for now. ... You want its partition, sdc5, to be your home directory, /home/merciadriluca. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • securing desktop
    ... and I would like to secure the desktop. ... permissions on the home directory (ie, ... making booting into that user on the computer impossible ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: copying files from home directory on one machine to directory on another machine
    ... copy files from a home directory on one machine to a directory on ... subject of "unsubscribe". ... If you can ssh from One to Two ... If you don't have rsync, you can use scp -r to recursively copy almost identically - but the nice thing about ...
    (Debian-User)