blob: 93571928e08cdfd1f628116fe6a2ed9daa36d43f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
mesms
=====
A ncurses based SMS manager
Powered by [gammu](https://wammu.eu/gammu/).
It's a third party application that manage Gammu folder.
![Record of mesms](https://ache.one/res/mesms.gif)
## Installation
First of all, you should have a working gammu setup.
Here is my Gammu setup:
/etc/gammurc:
~~~
[gammu]
port = /dev/ttyUSB0
connection = at
~~~
/etc/gammurc:
~~~
[gammu]
port = /dev/ttyUSB0
connection = at
~~~
/etc/gammu-smsdrc:
~~~
[gammu]
port = /dev/ttyUSB0
connection = at
synchronizetime = yes
logfile = /var/spool/sms/log
logformat = textalldate
[smsd]
Service = files
RetryTimeout=60
MaxRetries=2
OutboxPath = /directory/youwant/to/sms/outbox/
InboxPath = /directory/youwant/to/sms/inbox/
SentSMSPath = /directory/youwant/to/sms/sent/
ErrorSMSPath = /directory/youwant/to/sms/error/
InboxFormat=detail
OutboxFormat=detail
~~~
Note that **you must use the format `detail`** and service `file`**.
Now, you can test the setup using `gammu-smsd-inject`
~~~sh
$ gammu-smsd-inject TEXT +33NUMBER -text "This is a test !"
~~~
A file should be created in the outbox directory.
Soon it will be send and the file will be moved to the Sent directory.
If so, congratulation ! You have a working gammu setup.
Lets now install mesms to manage your SMS directory.
### Install mesms
Quite easy. It's a C software, you need gcc, make and git.
~~~sh
$ git clone https://git.ache.one/mesms
$ cd mesms
$ make
$ sudo make install
~~~
Note: Theire is a AUR package. `yay -S mesms-git` should work too on Arch Linux.
Now, you have to make a config directory. It should be `~/.mesmsrc`.
~/.mesmsrc:
~~~
SMS_INBOX=/????/sms/inbox/
SMS_SENTBOX=/????/sms/sent/
SMS_OUTBOX=/????/sms/outbox/
MMS_DIR=/tmp
CONTACT_FILENAME=/home/user/.contacts.csv
~~~
Now you can execute mesms !
Enjoy !
|