How to send message to specific channel regulary in irssi? [duplicate] - perl

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Need some info on IRC BOTS using PERL
How to write script/plugin to irssi which will be send specific text on some channel??
Maybe once a week.
Maybe is better way to send message to specific IRC channel in other script language.
I`s necessary to send message once a week.
I found only this question: Perl Irssi scripting: How to send msg to a specific channel?
And I wrote some code in ruby.
https://gist.github.com/1653215

I suggest you to just write a very small script in Perl using Bot::BasicBot.
See Need some info on IRC BOTS using PERL for details

Related

how to know gateway address of current connected wifi [duplicate]

This question already has answers here:
Get the Default Gateway
(9 answers)
Closed 9 years ago.
I want to know gateway address of current connected wifi through objective C programming.
I have gone through some online reference in stackoverflow but none of them is useful. Please know me the.
As for now I am able to get IP address, Mask but has been stuck in gateway.
You can programatically make a call to execute a terminal command using system(); and parse the output, or follow the advice in this question: Objective-C : How to fetch the router address?

How software like Return Path or SendGrid knows how many emails reached inbox? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am interested to know the technical background of how this services can determine if my email reached the inbox or not(as this is the key servicethis providers offer). If I send an email to somebody wh uses Yahoo messenger or Gmail or maybe just an enterprise email address, what does the ISP have to do with that? Isn't the email filtered after it reached the Yahoo or Enterprise server, and than moved to Inbox or Junk or whatever other folder?
(full disclosure: I currently work for SendGrid as a web developer, so I have some insight but maybe not the low-level technical answers you're seeking)
From a slightly simplistic view, when we go through the SMTP process of delivering a message to an ISP/ESP, we generally know that the message has been "delivered" and we track it as such in your statistics. We also set up feedback loops (FBL's) with ISP's/ESP's which can ping back to us if a user flags a message as spam, which we then subtract from the "delivered" total.
How they route the message and make the decision to move it an Inbox or Junk folder is based on whatever criteria they have, and as far as I know, there is no FBL that can be set up to alert us to that fact.
We do, however, work very hard with our customers to teach them how to "warm up" an IP address for sending good, non-spammy messages, which builds up a "reputation" for an IP address (search google for "sender score"). Obviously the closer to 100% the better. We also have automated systems in place which may alert us if outgoing messages seem "spammy" and we'll put them on hold and alert you so you can make corrections. After all, our reputation is also on the line.
Hope that helps a little.
Well, if I recall correctly, SendGrid uses embedded images in the email and tracks if the image gets loaded as a way to determine if the target user read the email. This, of course, is fairly unreliable.
I certainly never allow my email client to automatically show images by default, so the image won't be requested and SendGrid won't be able to count this email as opened.
See these links for more details... now comes the RTFM! :)
http://docs.sendgrid.com/documentation/apps/click-tracking/
http://en.wikipedia.org/wiki/Email_tracking

Sending an email in Lua

I'm wondering if it would be possible to send an email from a lua script. I am using linux so I do have the mail command, but I can't work out how to use it.
Any help would be much appreciated.
LuaSocket offers support for sending email:
http://w3.impa.br/~diego/software/luasocket/smtp.html
You've probably already found a solution, but since this question still shows up in google, here's another answer that works on linux:
mail = io.popen("mail -s 'SUBJECT' user#example.com", "w")
mail:write("testing some stuff\n\4")
-- tested with lua 5.2 on ubuntu server
io.popen opens the mail program as a file as explained in the lua reference manual.
It is important to open it in writing mode ("w") to be able to actually write the body of the email.
Then you just write your message with :write and when you're done, append a newline character "\n" followed by a EOT "\4" character to tell the program to send the message.
This method has the advantage that you do not need to handle the sending of the message yourself, as with the LuaSocket library and that you don't need to have SMTP support on your mail server enabled, which can be a lot of work to set up propperly and the disadvantage that you need to have access to mailx, so you can't send messages from anywhere.
Hope this helps :)

Making an e-mail buffer, do I use POP3? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Ok, I'm a bit confused with these mail protocols so I just have to ask.
I'm making an app for a very special use case we have at work. We have two e-mail servers sending mail to eachother (two seperate domains). The problem is that one of the servers is frequently moved (the server is in the field, and has to be mobile). When that server is moved, it can't be connected to our network and therefore mail cannot be sendt to this server.
What I'm making is an app that will be between our two e-mail servers, intercepting the e-mail trafic that goes between them and, if one of the servers cannot be reached, my app should store the e-mails in a buffer, so that when it detects that the e-mail server is back online, it can safely send the e-mails the other server did not recieve due to it being offline. The e-mails in the buffer should also be able to be sendt to an alternative e-mail so they can be acted upon immidietly should the recieving e-mail server be down for longer than normal...
So, I've figured out that I need to use the SMTP-protocoll to send e-mail, but what do I use to recieve them? All examples I've read so far in C# and Python are about connecting to an allready established POP3/Imap4 server and recieve mail from there, and I think setting up my own POP3/IMAP4 server for intercepting mail before sending it on is doing it the really hard way...
So how do i recieve/intercept e-mail without the use of POP3/IMAP4?
If I understand the question correctly you simply want to buffer your emails. You could be much better off either using a third party to act as a backup mail server or set up additional mail servers as lower priority servers to collect the mail should one of the servers not be reached. You can ask on ServerFault about setting something like this up. I can't see the real benefit of writing an app yourself.
If you do wish to write something yourself then you will most likely wish to write both an SMTP server and and SMTP client one to accept the emails and one to deliver the message.

Is there a Perl module to monitor an email queue?

I'm working on an issue tracking system and would like the application to handle email replies. That is, I would like a script that can monitor an email queue and perform some action based on the email contents. It should then be able to delete the email, etc.
I currently use MIME::Lite to send email, and I can handle writing the script etc. (read: I'm not new to Perl). However, I have no idea what modules are good for doing this particular task. I'd like to get started on this as quickly as possible so I hope to narrow my search space for possible modules.
In case you need to know, the application will be running on a standard linux, Perl, MySQL stack with Exchange as the mail server.
Can anyone suggest a Perl module to help me out? Any tutorials or best practices related to this would also be helpful.
Thanks!
Do you have access to the Exchange server via IMAP or WebDAV?
For IMAP:
Mail::IMAPClient
IMAP::Client
Net::IMAP::Client
Email::Folder::IMAP
For WebDAV:
Email::Folder::Exchange
POP3 would also be an option if it's enabled on the server. IMAP is probably the way to go if you've got it.
I've done something similar using Mail::POP3Client
The Perl Email Project # http://emailproject.perl.org/mediawiki/index.php/Main_Page has recommendations and other information on the mail oriented modules for perl.