From: Brent D. <br...@de...> - 2000-11-30 02:31:18
|
Is there any way to include a subject line in jabber messages? I've looked at the code a little in lib/handy_net_utilities.pl, and it looks like it would just be a matter of adding the appropriate parameter, such as: my ($from, $password, $to, $text, $file, $subject); and then calling the MessageSend method like: $jabber_connection -> MessageSend(to => $to, body => $text, subject => $subject); is it this simple? Brent |
From: Brent D. <br...@de...> - 2000-11-30 03:07:41
|
Okay, I didn't have the patience to discuss this, so I just dug in and did it. Heres what I did: lib/handy_net_utilities.pl, changed the first part of the net_jabber_send function as follows: sub main::net_jabber_send { my %parms = @_; my ($from, $password, $to, $text, $file, $subject); $from = $parms{from}; $password = $parms{password}; $to = $parms{to}; $subject = $parms{subject}; $from = $main::config_parms{net_jabber_name} unless $from; $password = $main::config_parms{net_jabber_password} unless $password; $to = $main::config_parms{net_jabber_name_send} unless $to; $subject = "Misterhouse" unless $subject; and changed the actual send call to: $jabber_connection -> MessageSend(to => $to, body => $text, subject => $subject => $subject); Then, to use this functionality, just add a subject param to your call to net_jabber_send, like this: net_jabber_send(text => "A weather alert has been issued!", subject => "Weather Alert!"); Any chance this is useful enough to make it into the actual dist, Bruce? > -----Original Message----- > From: mis...@li... > [mailto:mis...@li...]On Behalf Of Brent > DeShazer > Sent: Wednesday, November 29, 2000 8:31 PM > To: Misterhouse > Subject: [misterhouse-users] Jabber > > > Is there any way to include a subject line in jabber messages? I've looked > at the code a little in lib/handy_net_utilities.pl, and it looks like it > would just be a matter of adding the appropriate parameter, such as: > > my ($from, $password, $to, $text, $file, $subject); > > and then calling the MessageSend method like: > > $jabber_connection -> MessageSend(to => $to, body => $text, subject => > $subject); > > is it this simple? > > Brent > > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > |
From: Bruce W. <br...@mi...> - 2000-11-30 03:07:58
|
> Is there any way to include a subject line in jabber messages? I've looked > at the code a little in lib/handy_net_utilities.pl, and it looks like it > would just be a matter of adding the appropriate parameter, such as: > > my ($from, $password, $to, $text, $file, $subject); > > and then calling the MessageSend method like: > > $jabber_connection -> MessageSend(to => $to, body => $text, subject => > $subject); Yep, looks like a good addition. We also need this: $subject = $parms{subject}; I added these changes, but the Jabber client I'm using does not display subject. Have you used net_jaber_send much? I put it in a few months ago, but have not used it much. Any good jabber clients you might recommend? Bruce |
From: Brent D. <br...@de...> - 2000-11-30 04:33:24
|
> > Yep, looks like a good addition. We also need this: > > $subject = $parms{subject}; Yup, realized this after my first post. > > I added these changes, but the Jabber client I'm using does not display > subject. > > Have you used net_jaber_send much? I put it in a few months ago, but have > not used it much. Any good jabber clients you might recommend? I use Winjab on windows, Gabber on Linux, and Jabbernaut on my wifes Mac. Winjab is pretty resource-hungry (as in the two little 64K hunks of RAM Win9x uses for icons, cursors, etc.) and several of my coworkers have had problems with it. I run it on '95 and '98se and it hasn't caused me any problems, but I tend to run lean-and-clean, when I have to run windows at all. While we're on the Jabber subject, I couldn't get MH to pass my server name properly. It was always defaulting to jabber.com for some reason. I just ended up changing the default server in the lib/handy_net_utils.pl file and it seemed to work. I run a private jabber server for friends and family only, and wanted to connect to it instead of a public server. Maybe this was me ,I've only been using MH for a little less than a week, and still coming up to speed. I may try again and let you know for sure. Anyone interested in starting a MH documentation project? Or I should say, if I started a documentation project, anyone interested in participating? Great software but there is a definite learning curve that could be greatly alleviated with some docs. Brent |
From: Bruce W. <br...@mi...> - 2000-11-30 14:14:27
|
> While we're on the Jabber subject, I couldn't get MH to pass my > server name > properly. It was always defaulting to jabber.com for some reason. I just > ended up changing the default server in the > lib/handy_net_utils.pl file and it seemed to work. This was an error. I was ignoring the net_jabber_server and net_jabber_resource parms altogether. I fixed that (along with your subject addition) here: http://misterhouse.net/mh/lib/handy_net_utilities.pl As a side topic, do you understand or have an example of how or why you would specify different resource names? > Anyone interested in starting a MH documentation project? Or I should say, > if I started a documentation project, anyone interested in participating? > Great software but there is a definite learning curve that could > be greatly alleviated with some docs. Yes indeed, the docs could use some help. I would gladly re-distribute or point to anything anyone would be willing to contribute. If you would rather modify existing docs, let me know so I can get you the latest (http://misterhouse.net/mh/docs usually has the new latest unreleased stuff .pod files ... the .txt and .html files may not have been re-generated from the .pod files yet). Bruce |
From: Brent D. <br...@de...> - 2000-11-30 23:02:23
|
> As a side topic, do you understand or have an example of how or why you > would specify different resource names? The different resource names allow you to log into the same server from different clients/locations. If you specify a resource name you can make it easier to differentiate between "instances" of yourself. I usually leave my home pc logged in all the time as my user, with a resource name of "home". When I'm at work, I log in with the same username/password, but use a resource name of "work". Then if my family connects and see two "brent" users, it is obvious that one login is at work and one at home. Easier than "brent_266"...helps if I forget to set my home session to "away" and both Brents show up as "online". Not sure theres a need to set the MH jabber users manually. I can't see any advantage. > > > Anyone interested in starting a MH documentation project? Or I > should say, > > if I started a documentation project, anyone interested in > participating? > > Great software but there is a definite learning curve that could > > be greatly alleviated with some docs. > > Yes indeed, the docs could use some help. I would gladly re-distribute or > point to anything anyone would be willing to contribute. If you would > rather modify existing docs, let me know so I can get you the latest > (http://misterhouse.net/mh/docs usually has the new latest > unreleased stuff > .pod files ... the .txt and .html files may not have been > re-generated from > the .pod files yet). Great! I'll get some ideas together this weekend and see what you think. Brent |
From: Ray D. <rd...@so...> - 2000-11-30 16:29:06
|
Since you all brought it up... I am currently creating an up-to-date area code list. It should be done this evening some time at which point I will forward it to Bruce. I think updated documentation is a great idea. > > While we're on the Jabber subject, I couldn't get MH to pass my > > server name > > properly. It was always defaulting to jabber.com for some reason. I just > > ended up changing the default server in the lib/handy_net_utils.pl file > > and it seemed to work. > > This was an error. I was ignoring the net_jabber_server and > net_jabber_resource parms altogether. I fixed that (along with your > subject addition) here: > > http://misterhouse.net/mh/lib/handy_net_utilities.pl > > As a side topic, do you understand or have an example of how or why you > would specify different resource names? > > > Anyone interested in starting a MH documentation project? Or I should > > say, if I started a documentation project, anyone interested in > > participating? Great software but there is a definite learning curve > > that could be greatly alleviated with some docs. > > Yes indeed, the docs could use some help. I would gladly re-distribute or > point to anything anyone would be willing to contribute. If you would > rather modify existing docs, let me know so I can get you the latest > (http://misterhouse.net/mh/docs usually has the new latest unreleased > stuff .pod files ... the .txt and .html files may not have been > re-generated from the .pod files yet). > > Bruce > > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > > > Ray Dzek --- <Insert Silly Signature Graphics Here> --- |