Re: [prosody-dev] User-level sharding

2015-03-20 Thread Victor Seva
On 03/20/2015 06:54 AM, Robert Norris wrote: > Hi all, > > I've got a prototype for a Prosody feature that I want/need. I'm keen to > get your input on it. > > What I want to do is distribute users for a single domain across > multiple Prosody instances while having them look like a single serv

[prosody-dev] Problems adding vCard to support for email forwarding on v.10

2015-03-20 Thread Simon Hill
I promise to get better at Lua and Prosody - currently I am a noob and ask a lot of stupid questions. Here's my question: I am trying to add vCard support to mod_offline_email. Zash kindly suggested: local vcards = module:open_store("vcard"); > -- in a hook > local vcard = vcards:get(username

Re: [prosody-dev] Problems adding vCard to support for email forwarding on v.10

2015-03-20 Thread Matthew Wild
On 20 March 2015 at 00:56, Simon Hill wrote: > I promise to get better at Lua and Prosody - currently I am a noob and ask a > lot of stupid questions. Here's my question: > > I am trying to add vCard support to mod_offline_email. Zash kindly > suggested: > >> local vcards = module:open_store("vcar

Re: [prosody-dev] Problems adding vCard to support for email forwarding on v.10

2015-03-20 Thread Simon Hill
Thanks Matt! Chuffed to get a response from the author! Your caveats are agreed and understood - my modification is for a closed implementation. Prosody is backing a social network / game launching soon. On Friday, March 20, 2015 at 3:28:56 AM UTC-7, Matthew Wild wrote: > > On 20 March 2015 at 0

[prosody-dev] prosody v.0.10 docker does not log to logspout

2015-03-20 Thread Simon Hill
I'm trying to use https://github.com/gliderlabs/logspout to siphon remote prosody docker logs to Paper Trai l. I have the config "*console"; -- Log to the console, useful for debugging with daemonize=false For some unknown reason, logspout doesn't pick this up. I ha

Re: [prosody-dev] Problems adding vCard to support for email forwarding on v.10

2015-03-20 Thread Simon Hill
Hi Matthew, I have not exactly gotten it working and wondered if you had any further thoughts. Must be doing something stupid. In the logs: *info* vCard for u...@domain.com > [xmpp-1] 2015-03-20T21:59:51.813731734Z mod_bosh > *error* Traceback[bosh]: > ...sod

Re: [prosody-dev] Problems adding vCard to support for email forwarding on v.10

2015-03-20 Thread Waqas Hussain
Hey Simon, you have two problems. 1) jid_bare gives you usern...@example.com. You just want username, without the @hostname, so use jid_split 2) You don't check for the vCard being nil (i.e., the user has no vCard data stored) Here's what your code could look like: local username=jid_split(stanz